Binding to Self Update
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