FROM : mmalcolm crawford
DATE : Wed Apr 13 01:42:55 2005
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
DATE : Wed Apr 13 01:42:55 2005
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
| Related mails | Author | Date |
|---|---|---|
| John Brownlow | Apr 11, 19:36 | |
| Scott Stevenson | Apr 11, 20:02 | |
| John C. Randolph | Apr 11, 22:48 | |
| John Brownlow | Apr 12, 00:20 | |
| John Brownlow | Apr 12, 16:11 | |
| mmalcolm crawford | Apr 12, 16:46 | |
| John Brownlow | Apr 12, 20:46 | |
| mmalcolm crawford | Apr 12, 23:51 | |
| John Brownlow | Apr 13, 00:02 | |
| mmalcolm crawford | Apr 13, 00:11 | |
| John Brownlow | Apr 13, 00:48 | |
| mmalcolm crawford | Apr 13, 01:42 |






Cocoa mail archive

