Mailing Lists: Apple Mailing Lists

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

call method of an NIB object



Dear List.

Is it possible to call methods of an object created from a NIB file?

I thought this should be possible, so I did the following:
- I created a custom class in Interface Builder
- I created an instance of this class in Interface Builder
- In the inspector pane I gave this glass an AppleScript name

If you do these steps for some NSButton, NSTextField, etc. of an NSWindow you have access to the object through the
call method [...] of [...]
command via the AppleScript name, e.g.
call method [...] of button "OKButton"
However, if I try to call a method of my object via
call method [...] of object "MyObject",
it does not work.

The object is instanceated and I can communicate with with the object in Objective-C.

Note: It worked for me to use "call method" on class methods. My problem here is to use "call method" on an object.

Christian

____________________________________
Christian Fries
Web: http://www.christian-fries.de
Email: email@hidden
Public Key: http://www.christian-fries.de/publickey
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.