• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Binding to displayName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Binding to displayName
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Binding to @count
  • Next by Date: Re: Cocoa Programming for Mac OsX Third Edition eBook search
  • Previous by thread: Binding to @count
  • Next by thread: Re: Binding to displayName
  • Index(es):
    • Date
    • Thread