• 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: NSArrayController and table view : how to bind selection ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController and table view : how to bind selection ?


  • Subject: Re: NSArrayController and table view : how to bind selection ?
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 6 Sep 2005 17:13:16 -0700


On Sep 6, 2005, at 9:39 AM, Eric Morand wrote:

The problem is that NSArrayController doesn't seem to have useful bindings to get the selected object. I've tried to create an outlet to my array controller and call "selection" method on it but it returns a proxy object that is useless to me (I want the managed object).

As Ryan stated, there isn't a binding for a single selected object. You can bind 'selectionIndexes' or 'selectedObjects' -- there's an example of using the latter in the Combatants sample at <http:// homepage.mac.com/mmalc/CocoaExamples/controllers.html>. You can readily get a single selected object from the selectedObjects array if you need to do so...


mmalc

_______________________________________________
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: 
 >NSArrayController and table view : how to bind selection ? (From: Eric Morand <email@hidden>)
 >Re: NSArrayController and table view : how to bind selection ? (From: Ryan Britton <email@hidden>)
 >Re: NSArrayController and table view : how to bind selection ? (From: Eric Morand <email@hidden>)

  • Prev by Date: Re: Strange bug (?) with NSArrayController sortDescriptors and SQLite !
  • Next by Date: Re: NSValidationNumberTooSmallError with incomplete error message
  • Previous by thread: Re: NSArrayController and table view : how to bind selection ?
  • Next by thread: Core Data and NSTreeController Editing Problem.
  • Index(es):
    • Date
    • Thread