Accessing Text fields my cocoa app through AppleScripts
Accessing Text fields my cocoa app through AppleScripts
- Subject: Accessing Text fields my cocoa app through AppleScripts
- From: aashish tiwari <email@hidden>
- Date: Tue, 8 May 2007 07:44:05 +0100 (BST)
Hi All,
i want to add scriptability to my existing cocoa app,
at least i want my cocoa UI outlets to be accessible
to AppleScripts.
Buttons of My app's UI are accessible to AppleScripts
without doing any changes in my application, but
textfields are not accessible.
I gone through some documentation, and modified my nib
file by setting Name attribute of AppleScript tab for
all textfields, this caused "AppleScript Info" to be
added into my nib files.
When i build my app next time i get an exception:
Uncaught exception:
<NSInvalidUnarchiveOperationException> ***
-[NSKeyedUnarchiver decodeObjectForKey:]: cannot
decode object of class (ASKNibConnector)
Then i added AppKitScripting.framework to my xcode
project, but it dint help i m still facing this
exception.
If any one of you can guide me how to solve this
problem, currently i am only concerned about accessing
my UI element through AppleScripts.
I feel this is possible without creating any .sdef
dictionary or so, am I right?
if buttons are accessible without any changes in my
app then why not the textfields?
Please help me.
Thanks,
Aashish
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
_______________________________________________
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