• 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 to Self Update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding to Self Update


  • Subject: Binding to Self Update
  • From: Jeff LaMarche <email@hidden>
  • Date: Tue, 3 Jan 2006 16:19:10 -0500

Just wanted to post the resolution to my question earlier, which got resolved off-list, so that the resolution can be found when searching the list archives. Thanks to Matt & Scott for their patience in helping me work through this.

If you need to bind directly to an object instance in your nib, you can specify a model key path of 'self' (without the quotes). I'm assuming that you can do the same thing with Controller Key when it's required, but I haven't tested that.

If you do this for the doubleClickTarget binding, however, or any binding that also takes a selector, be careful to make sure you get the selector right, including the colons, because if you get the selector wrong, your program will crash at runtime when the user double-clicks the row. It does not just politely ignore the incorrect selector as happens when you get a selector wrong in your code.

Jeff


_______________________________________________ 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
  • Prev by Date: Using newer APIs and deprecated APIs for older releases...
  • Next by Date: How does NSFontPanel work?
  • Previous by thread: Re: Using newer APIs and deprecated APIs for older releases...
  • Next by thread: How does NSFontPanel work?
  • Index(es):
    • Date
    • Thread