• 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
Re: Odd binding issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd binding issue


  • Subject: Re: Odd binding issue
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 12 Mar 2004 21:02:46 -0500

On Mar 12, 2004, at 9:46 AM, Allan Odgaard wrote:

On 12. Mar 2004, at 16:13, Timothy Reaves wrote:

description] would return. As to using @"value", I think you might
need to check your sources. 'Uncaught exception:
<NSUnknownKeyException>[<NSTextView 0x346f40> valueForUndefinedKey:]:
this class is not key value coding-compliant for the key value.'

The properties exposed by the view classes are not key-value-coding compliant, so you cannot observe them nor set/get their value -- but you can use them as the "binding" argument when sending the view class a "bind:..." message.


That's not the issue here.

value is not exposed unless the NSTextView is configured so as to have only a single font.

Please, do not use 'bindings' that are not actually exposed as 'bindings' and expect them to work correctly.

This is especially important in the case of NSTextView and NSTextField and other items that use the NSEditor/Registration protocols.

Use the exposed bindings for bindings. That's what they're there for.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Odd binding issue (From: T Reaves <email@hidden>)
 >Re: Odd binding issue (From: Scott Anguish <email@hidden>)
 >Re: Odd binding issue (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Odd binding issue
  • Next by Date: Re: Odd binding issue
  • Previous by thread: Re: Odd binding issue
  • Next by thread: Re: Odd binding issue
  • Index(es):
    • Date
    • Thread