Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CocoaScripting/key-value-coding question



On 1 Sep 2006, at 12:15 PM, Mark Alldritt wrote:

Hi All,

I have a class that stands in for another class in my scripting interface.
In my sdef, I define a series of properties, and I need to forward the
valueForKey: calls to the real class.


The problem is that Cocoa Scripting is not calling valueForKey: or
valueForUndefinedKey: for these properties. Interestingly, when I set one
of the property values, setValue:forKey: is called by Cocoa Scripting and I
can forward the set operation to the true class.

Cocoa Scripting uses handleTakeValue:forUnboundKey: instead of setValue:forUndefinedKey:. valueForUndefinedKey: works for me, though.


I've got automaticallyNotifiesObserversForKey: and accessInstanceVariableDirectly both returning NO. Maybe that makes a difference?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden


This email sent to email@hidden
References: 
 >CocoaScripting/key-value-coding question (From: Mark Alldritt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.