Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding to first object in a controller



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.