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

binding selection in tableview to model


  • Subject: binding selection in tableview to model
  • From: Alan Donsky <email@hidden>
  • Date: Tue, 17 Feb 2004 21:06:30 -0600

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.

I hope this makes sense.

I think the problem lies in the fact that tablevirews represent to-many relationships while popup buttons represent to-one relationships, but i am not sure.

I have tried creating a new object controller which i can bind to the selectedObject instance variable but i am not sure how to bind it to the array controller for the tableview.

thanks

alan
_______________________________________________
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.

  • Follow-Ups:
    • Re: binding selection in tableview to model
      • From: Ryan Bates <email@hidden>
    • Re: binding selection in tableview to model
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: ANN: Doxygen for MacOS X with Objective-C support
  • Next by Date: Re: display an image in a button
  • Previous by thread: Re: kqueue on OS X
  • Next by thread: Re: binding selection in tableview to model
  • Index(es):
    • Date
    • Thread