NSConditionallySetsEditable
NSConditionallySetsEditable
- Subject: NSConditionallySetsEditable
- From: Hamish Allan <email@hidden>
- Date: Wed, 15 Feb 2006 02:37:27 +0000
It's not clear to me how to set certain nodes in a tree (using
NSTreeController with an NSBrowser or NSOutlineView) to be editable
or uneditable according to some property of the data model.
There seem to be various places I can set
NSConditionallySetsEditable: the NSTreeController, the NSBrowser
value binding (apparently not supported in 10.4) and the
NSTableColumn value binding. I can also bind the "editable" binding
in either the NSTreeController or the NSTableColumn, but apparently
not the NSBrowser.
I have an NSBrowser and an NSOutlineView connected to the same
NSTreeController (available at http://igor.gold.ac.uk/~map01ra/
BindTest.zip). With default settings, everything is editable through
the NSOutlineView and nothing is editable through the NSBrowser. I
have been unable to change this behaviour although I have tried
various combinations of bindings, settings and properties.
Has anyone else used "editable" bindings and/or
NSConditionallySetsEditable successfully with an NSTreeController?
Thanks,
Hamish
_______________________________________________
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