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- poin...@__objc@__cls_r...@adobephotoshopcs3jpegsaveoptions in AMBatchEditMonitor.old: 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com