• 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: goessly <email@hidden>
  • Date: Tue, 24 Jan 2006 12:18:59 +0100

I'm looking for a method to obtain an object from a controllers' content programmatically, like this:
id found = [someController getTheObjectThatHas: thisValue forKey:@"theKeyInQuestion"]

Assuming the controller's content is an array,
Oh, I guess I should have mentioned that I'm talking about a NSTreeController. Sorry.

use filteredArrayUsingPredicate
I just found some postings stating that this won't work for these. Oh my - I should have stuck to arrays, I guess. Less elegant, yet far less trouble than the trees... Well, I'll keep trying :)

@nik: I'm not using NSDicitonary (yet), but thanks for the suggestion anyway! I'll look into that alternatively.

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:
This email sent to email@hidden


References: 
 >Searching a controller's content (From: goessly <email@hidden>)
 >Re: Searching a controller's content (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Can bindings be set to ignore certain values?
  • Next by Date: Re: Using NSAppleEventDescriptor with NSDates
  • Previous by thread: Re: Searching a controller's content
  • Next by thread: Re: Searching a controller's content
  • Index(es):
    • Date
    • Thread