• 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: Creating a subclass of an *unknown* object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a subclass of an *unknown* object


  • Subject: Re: Creating a subclass of an *unknown* object
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 15 Jun 2005 10:26:08 -0700

On Jun 15, 2005, at 7:44 AM, Stefan Schüßler wrote:
Normally, this is done by having a common framework that both the application and the plug in link against 

If you don't have a framework to link against you can add "-flat_namespace -undefined suppress" to "Other Linker Flags" in you build settings.

However, your plugin will crash if the symbols are not defined in the host application.

You generally want to avoid using -undefined suppress as it will leave error conditions (unresolved non-weak-linked symbols) undetected.

If you're building a bundle that needs access to symbols from its host application, you should specify the host application's executable as the bundle's loader via the -bundle_loader linker flag.  In Xcode 2.1, this is exposed via the "Bundle Loader" build setting, prior to Xcode 2.1 you'll have to set this in "Other Linker Flags".

This way you'll still get errors for symbols that are truly undefined, while also being able to resolve symbols from the host application in your bundle.

  -- Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating a subclass of an *unknown* object
      • From: Ofri Wolfus <email@hidden>
References: 
 >Creating a subclass of an *unknown* object (From: Ofri Wolfus <email@hidden>)
 >Re: Creating a subclass of an *unknown* object (From: Damien Bobillot <email@hidden>)
 >Re: Creating a subclass of an *unknown* object (From: Ofri Wolfus <email@hidden>)
 >Re: Creating a subclass of an *unknown* object (From: glenn andreas <email@hidden>)
 >Re: Creating a subclass of an *unknown* object (From: Stefan Schüßler <email@hidden>)

  • Prev by Date: Re: WebKit and XSLT
  • Next by Date: Need help with my first Cocoa app
  • Previous by thread: Re: Creating a subclass of an *unknown* object
  • Next by thread: Re: Creating a subclass of an *unknown* object
  • Index(es):
    • Date
    • Thread