• 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
NSTableColumn 'enabled' binding not in 10.3? Any others?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableColumn 'enabled' binding not in 10.3? Any others?


  • Subject: NSTableColumn 'enabled' binding not in 10.3? Any others?
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 28 May 2007 11:38:48 -0700

Well, after after getting my first window to work using bindings in Tiger, I get the following error when the window loads in Panther:

[<NSTableColumn 0xXXXXXXXX> valueForUndefinedKey:]: this class is not key value coding compliant for the key enabled.

Yes, I have bound the "enabled" attribute of some NSTableColumns of NSButtonCells (checkboxes, etc.).

So, I surmise from this error that such a binding was not supported in Panther. But I looked in the API documentation of NSTableColumn, its superclass and protocols, and find that the 'enabled' attribute is not documented. So, I further surmise that NSTableColumn 'enabled' is one of those magical "bindings-only" attributes invoking some Apple-private API.

But I'm not sure because I searched the release notes,

http://developer.apple.com/releasenotes/Cocoa/AppKit.html

and did not find any mention of this. Neither do I see it in the Bindings Options documentation,

http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/Concepts/BindingsOptions.html

(Although I suppose that 'enabled' is an attribute, not an ^option^.)

I'd appreciate any answers to:

1. Am I correct, that the 'enabled' NSTableColumn attribute is not supported in Panther bindings?

2. Is there a simple workaround? It seems I'd have to manually implement KVO and send messages to the NSButtonCells; seems like a real mess. I wouldn't mind just leaving the stupid checkboxes enabled all the time for my few Panther users, but I suppose there is no equivalent to "-respondsToSelector" in bindings?

3. If answer 1 is YES, is there any documentation or unofficial list of other little surprises that are not supported in Panther bindings? I sure hope I don't have to "guess, try, fix, retest, repeat,..., release, respond to bug reports."

Thanks,

Jerry Krinock

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSTableColumn 'enabled' binding not in 10.3? Any others?
      • From: mmalc Crawford <email@hidden>
  • Prev by Date: Re: observing dealloc
  • Next by Date: Re: observing dealloc
  • Previous by thread: Re: observing dealloc
  • Next by thread: Re: NSTableColumn 'enabled' binding not in 10.3? Any others?
  • Index(es):
    • Date
    • Thread