Re: Hello!
David LeBer <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.newbies |
|---|---|
| Message-ID | <[email protected]> |
On Nov 26, 2004, at 11:42 AM, Rook wrote:
>
> Hello,
>
> I have questions about NSDictionary (NSMutableDictionary).
> 1. How to get all values from NSDictionary?
> Sample: NSDictionary {site = {name = "a"; host = "b"; text =
> {description = "site"; comments = "none";}}}
Could I get a little clarification here?
It looks like you have nested NSDictionaies, is that the case, or is
site an object?
NSDictionary {
key = "site", value = NSDictionary {
key="name", value = "a"
key="host", value="b"
key ="text", value = NSDictionary {
key="description", value="site"
key="comments", value="none"
}
}
}
> I need:
> siteName = site ["name"]
> host = site ["name"]["host"]
> etc.
> Before I work with Python and it's wasn't a problem, but in
> WO I don't know how to solve it.
>
>
> 2. How to use WORepetion with NSDictionary for output
> infromation?
> Sample:
> [table]
> [tr]
> [td]site[/td] [td]a[/td]
> [/tr]
> [tr]
> [td]  host[/td] [td]b[/td]
> [/tr]
> etc.
>
> I tries to use NSDictionary.allKeys() and use NSArray as a
> first argument and a String as a second argument, but
> WORepetition shows next:
> ("site1", "site2", "site3")
> ("site1", "site2", "site3")
> ("site1", "site2", "site3")
>
> I understand, that WORepetition gets a length of NSArray
> right (3 elements), but I don't understand why i see string
> ("site1", "site2", "site3"), and not
> ("site1")
> ("site2")
> ("site3")
>
>
> Sorry for my terrible english :(
>
> --
> Best regards,
> Rook [uinC Group] http://www.uinc.ru
> mailto:[email protected]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
smime.p7s
(application/pkcs7-signature, 2.3 KB) - not displayed