Binding to displayName
Binding to displayName
- Subject: Binding to displayName
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 5 Oct 2008 10:55:41 +0200
In a document based Tiger (10.4.11) app I have an Inspector.nib which
has an NSObjectController with content = current MyDocument.
It has an NSTextField (not editable) with value bound to
selection.displayName
When the Inspector gets loaded I get:
... KVO autonotifying only supports -set<Key>: methods that return
void. Autonotifying will not be done for invocations of -[MyDocument
_setDisplayName:].
It works ok: the text field does display the current display name.
But the error message in console.log irritates me.
Workaround:
implement in MyDocument:
- (NSString *) dysplayName { return [ self displayName ] }
and bind NSTextField to selection.dysplayName.
Why does displayName complain? What am I doing wrong?
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden