Mailing Lists: Apple Mailing Lists

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

CocoaScripting/key-value-coding question



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.

Does anyone know how Cocoa Scripting reads properties since its not relying
on valueForKey: or valueForUndefinedKey: ?

(I'm testing on 10.4.7/Intel)

Cheers
-Mark

------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 4.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  FaceSpan 4.3 - AppleScript RAD
                                   Affrus 1.0 - Perl Debugging


 _______________________________________________
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



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.