• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Access NSDictionary-Keys in Repetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access NSDictionary-Keys in Repetition


  • Subject: Re: Access NSDictionary-Keys in Repetition
  • From: David LeBer <email@hidden>
  • Date: Tue, 10 Aug 2004 10:44:49 -0400

On 10-Aug-04, at 10:16 AM, Ute Hoffmann wrote:

Hallo,
this is probably a very basic question, but nevertheless I'm stuck....

I have a number of NSDictionaries, all with identical keys, all inserted in a NSMutableArray.

How can I access those values in a repetition? The Array could be bound to the repetition list key, but what should I bind to the Repetition item key to get access to the values? If I bind it to a variable of type object it will know nothing about the keys contained. I could write a class with the keys in, but is there no way to do it with less code?

If your NSArray is full of NSDictionaries, create and ivar dictEnumerator of type NSDictionary and use that for the item binding on the repetition.


I'm assuming you know what the keys in your NSDictionaries are before hand, so you just bind to "dictEnumerator.key1", "dictEnumerator.key2"... etc in WOBuilder

;david

--
David LeBer
Codebase Software Systems
site:   http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Access NSDictionary-Keys in Repetition (From: Ute Hoffmann <email@hidden>)

  • Prev by Date: Re: FrontBase Dead ???
  • Next by Date: Re: Access NSDictionary-Keys in Repetition
  • Previous by thread: Access NSDictionary-Keys in Repetition
  • Next by thread: Re: Access NSDictionary-Keys in Repetition
  • Index(es):
    • Date
    • Thread