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

NSArrayController and table view : how to bind selection ?


  • Subject: NSArrayController and table view : how to bind selection ?
  • From: Eric Morand <email@hidden>
  • Date: Tue, 6 Sep 2005 16:01:14 +0200

Hi List !


I've been searching around the web for an answer to this question and I didn't find anything so I assume I'm the only person having problem understanding it, so please excuse me if this question looks silly : how can I bind the current selected object of a table view ?


Let me explain : I have a table view that allow the user to select a Book by its name. I want the selected book to be automatically bound to a variable named selectedBook. I just can't find how to achieve this.

This is very easy to achieve with a pop up button, but I can't find a way to achieve this with a table view. Since both can be bound to the content of an array controller, I suppose the problem comes from the table view and not from the array controller.

Of course, I could use the selectionDidChange delegate method and it will be perfect but before this, I'd like to know if there is a way to do this using only bindings.



Thanks,


Eric. _______________________________________________ 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
  • Follow-Ups:
    • Re: NSArrayController and table view : how to bind selection ?
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: Message Forwarding for + Methods
  • Next by Date: Core Data and NSTreeController Editing Problem.
  • Previous by thread: Re: iTunes playlist icons
  • Next by thread: Re: NSArrayController and table view : how to bind selection ?
  • Index(es):
    • Date
    • Thread