• 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
Binding to first object in a controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: making a custom view not grab the keyboard
  • Next by Date: RE: where in the world is Kyle Hammond?
  • Previous by thread: Core data store's as a document file format
  • Next by thread: Interface Builder, custom palettes, old nib files, and problems
  • Index(es):
    • Date
    • Thread