• 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: binding selection in tableview to model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding selection in tableview to model


  • Subject: Re: binding selection in tableview to model
  • From: Ryan Bates <email@hidden>
  • Date: Wed, 18 Feb 2004 09:23:58 -0800

On Feb 17, 2004, at 7:06 PM, Alan Donsky wrote:
Is there a way to bind the selection of a table view to a model? I know this can be done with a popup menu using the selectedObject binding, but i want an instance variable in my model (i.e. selectedGroup) to be set to the object represented by the tableview.

Can't you add support for bindings to your model class and just bind an instance to the array controller that's bound to the table view? Also, I'm a little confused, are you trying to bind to all the selected objects in a table view or just a single selected object in a table view?

Ryan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >binding selection in tableview to model (From: Alan Donsky <email@hidden>)

  • Prev by Date: OCUnit on Xcode .. I'm lost.
  • Next by Date: Re: mmalc's Controller examples
  • Previous by thread: Re: binding selection in tableview to model
  • Next by thread: launching browser from NSText Field
  • Index(es):
    • Date
    • Thread