• 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: Bindings Basics: selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings Basics: selections


  • Subject: Re: Bindings Basics: selections
  • From: Niko Matsakis <email@hidden>
  • Date: Wed, 1 Jun 2005 22:07:11 +0200

If you replaced your popup with an NSTableView you'd see that everything was working fine. Bindings with popup controls is a little different than with other view objects. In your case, you bound the contents of the popup to be the arranged objects from your mailboxes array, which was fine. You also bound your columns in the tableview to the emails array of the selection from the popup, which was fine. The last piece, which connects the other two together, is that you need to bind the *index* of the popup as well.

This works great, now, next question: ;)

So in the case of an NSTableView the selection is set automatically to the selected row(s), but in a pop up it must be made explicitely?

If I wanted to make the selection be set explicitely for an NSTableView, would I bind the "selectionIndices" for the NSTableView to the equivalent item on the controller?


thanks, Niko

_______________________________________________
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: 
 >Re: Bindings Basics: selections (From: Michael Carter <email@hidden>)

  • Prev by Date: Re: Handling observing CoreData undo's [SOLVED]
  • Next by Date: Re: glyphWithName: broken on Tiger ?
  • Previous by thread: Re: Bindings Basics: selections
  • Next by thread: [ANN] Blocks Plugin Framework
  • Index(es):
    • Date
    • Thread