Re: Scripting Bridge link error
Re: Scripting Bridge link error
- Subject: Re: Scripting Bridge link error
- From: Jason Foreman <email@hidden>
- Date: Wed, 9 Sep 2009 21:12:05 -0500
On Sep 9, 2009, at 8:52 PM, Randall Meadows wrote:
AdobePhotoshopCS3JPEGSaveOptions *options =
[AdobePhotoshopCS3JPEGSaveOptions new];
[...]
It compiles fine, but I get this link error:
Undefined symbols:
".objc_class_name_AdobePhotoshopCS3JPEGSaveOptions", referenced from:
literal-
pointer@__OBJC@__cls_refs@AdobePhotoshopCS3JPEGSaveOptions in
AMBatchEditMonitor.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
You don't actually instantiate ScriptingBridge objects directly like
that. The interface header is generated so you can get type checking
when you call methods, but the actual class is acquired dynamically at
runtime. See the documentation for -classForScriptingClass: in
SBApplication. You'll need to do something more like:
AdobePhotoshopCS3JPEGSaveOptions *options = [[psApp
classForScriptingClass:@"AdobePhotoshopCS3JPEGSaveOptions"] new];
Jason
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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