Trying to create an sdef
Trying to create an sdef
- Subject: Trying to create an sdef
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 07 Aug 2014 13:55:55 +0700
I have an app (called App) which is NOT document based and has an app delegate called AppDelegate.
Now AppDelegate has a property:
@property (readonly) NSString *babbel;
implemented as:
- (NSString *)babbel { return @"Bibbel"; }
How to write an apple script (to be used in Apple Script Editor) to get this magic Bibbel-string?
And how to write the sdef to make this possible?
And what else does my AppDelegate has to implement?
This just seems to be no good:
[...]
<suite name="App Suite" code="Apps" description="Classes just for the App application.">
<class name="delegate" code="Dell" description="App's top level scripting object">
<cocoa class="AppDelegate"/>
<property name="babbel" code="babB" access="r" type="text" description="magic string" />
</property>
</class>
</suite>
[...]
tell application "App"
get babbel of delegate
end tell
returns:
error "Can’t get babbel of delegate." number -1728 from «class babB» of «class Dell»
MacErrors.h says:
errAENoSuchObject = -1728, /* e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. */
You see, I am absolutely clueless.
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden