• 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
Cocoa Bundle and weak-linking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa Bundle and weak-linking


  • Subject: Cocoa Bundle and weak-linking
  • From: Jerome Foucher <email@hidden>
  • Date: Fri, 28 Jan 2005 17:24:06 +0100

Hi list,

I'm running into a strange problem:
My app is carbon-based, but uses Cocoa bundles to display some windows.
In one of these Cocoa windows, I have implemented s search field. But because my app is 10.2 compatible, the search field is created at runtime. I check if the OS version : if it's 10.3 I create a NSSearchField and if it's 10.2, a NSTextField

But that doesn't seem to be sufficient, as when loading the Cocoa bundle on 10.2, the app crashes telling the bundle tried to create a NSSearchField ! It just looks like the bundle was not weak-linked....

So, do I have to do anything special in XCode or in my code so that the bundle is "weak-linked" ?

Thanks,
Jérome
 _______________________________________________
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: Cocoa Bundle and weak-linking
      • From: The Karl Adam <email@hidden>
  • Prev by Date: using 'cp' with NSTask
  • Next by Date: Re: using 'cp' with NSTask
  • Previous by thread: Re: using 'cp' with NSTask
  • Next by thread: Re: Cocoa Bundle and weak-linking
  • Index(es):
    • Date
    • Thread