Re: Order of instantiation within a NIB
Re: Order of instantiation within a NIB
- Subject: Re: Order of instantiation within a NIB
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 12 Apr 2005 16:42:55 -0700
On Apr 12, 2005, at 3:48 PM, John Brownlow wrote:
Sorry, I don't understand. [selectedObjects is] there in the
documentation for NSArrayController which is advertised as
'bindings compatible', and it uses KVO/KVC compliant method
signatures. It may not be exposed in Interface Builder, but why on
earth can't I bind to it?
For whatever reason it hasn't been exposed as a binding. You may
well be able to bind to it, and things may work correctly but it's
not "officially supported" -- for the "official" bindings see:
<http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/BindingsText/NSArrayController.html>
In your case I suspect that you don't really want to "bind" anyway
(i.e. you're not wanting to keep two variables synchronised -- not
the sole purpose of bindings, certainly, but the typical goal)? You
just want to be informed if selectedObjects changes? It might be
more appropriate simply to observe the selectedObjects property of
the array controller (I believe it's KVO compliant)...
mmalc
_______________________________________________
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