Re: Searching a controller's content
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