Binding to first object in a controller
Binding to first object in a controller
- Subject: Binding to first object in a controller
- From: Colin Cornaby <email@hidden>
- Date: Tue, 27 Mar 2007 14:11:45 -0700
Hi,
I have an NSArrayController, and a search field that is bound to the
NSArrayController. The search field is searching the
NSArrayController for one unique object, which itself is an NSArray.
The predicate for the controller is searching for an exact match on
an attribute that is unique within the NSArrayController's objects,
so I know for any given predicate I'm only going to get one arranged.
Therefore I'd like to bind a table view to the NSArray that itself is
the first object in the NSArrayController.
What would be the controller key for the first (and only) object in
my NSArrayController's arranged objects?
Thanks,
Colin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden