• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Bridge link error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripting Bridge link error
      • From: Randall Meadows <email@hidden>
References: 
 >Scripting Bridge link error (From: Randall Meadows <email@hidden>)

  • Prev by Date: Framing a UIImageView
  • Next by Date: Re: Framing a UIImageView
  • Previous by thread: Scripting Bridge link error
  • Next by thread: Re: Scripting Bridge link error
  • Index(es):
    • Date
    • Thread