• 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: Key value binding to "class" of object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key value binding to "class" of object


  • Subject: Re: Key value binding to "class" of object
  • From: Daniel Jalkut <email@hidden>
  • Date: Thu, 27 Apr 2006 15:36:04 -0400

Thanks, Bill. I found other problems as I proceeded down the path of attempting to bind to class objects, so I guess I should just run away from that idea as quickly as I can! For context, I was trying to populate a pop up button with class objects and then display the value as a class method keyed value. Interestingly, this mostly worked, but I started running into weird exceptions that I can only assume are the system telling me "don't do that!"

But your generic solution looks very handy for some other instances where stuff like this might come up. Thanks for pointing it out!

Daniel

On Apr 27, 2006, at 1:55 PM, Bill Bumgarner wrote:

I don't believe it is an oversight. -class isn't really intended to be used in a KVC context and the runtime is erring on the side of conservative.

I wrote a generic solution for this a while ago:

http://www.friday.com/bbum/2004/01/18/keyvalue-coding-classes/

It allows one to use a path like:

keyValueClassCoding.NSBundle.allFrameworks

It is particularly useful for being able to bind through to various default attributes on things like NSFont or NSColor.

b.bum

_______________________________________________ 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
References: 
 >Key value binding to "class" of object (From: Daniel Jalkut <email@hidden>)
 >Re: Key value binding to "class" of object (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: [SOLVED] System Services and Mail.app
  • Next by Date: call C application
  • Previous by thread: Re: Key value binding to "class" of object
  • Next by thread: First day of the week? Which one?
  • Index(es):
    • Date
    • Thread