• 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: Searching a controller's content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching a controller's content


  • Subject: Re: Searching a controller's content
  • From: Nik Youdale <email@hidden>
  • Date: Mon, 23 Jan 2006 09:02:14 +1100

Are you using an NSDictionary??

if so, you can just call [dictoinary objectForKey:@"a key"] to get that object. If you are using an NSArray the process is similar.

Hope this helps,

- Nik

On 23/01/2006, at 12:17 AM, goessly wrote:

I'm looking for a method to obtain an object from a controllers' content programmatically, like this:

id found = [someController getTheObjectThatHas: thisValue forKey:@"theKeyInQuestion"]

Is there such a method or do I have to iterate over the whole content and compare each entry to my search-term?

Thanks in advance & best regards,
goessly
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Searching a controller's content (From: goessly <email@hidden>)

  • Prev by Date: Re: PCH not being used
  • Next by Date: Re: Searching a controller's content
  • Previous by thread: Searching a controller's content
  • Next by thread: Re: Searching a controller's content
  • Index(es):
    • Date
    • Thread