• 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
Quartz.framework Catch-22 on Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quartz.framework Catch-22 on Panther


  • Subject: Quartz.framework Catch-22 on Panther
  • From: Nick Nallick <email@hidden>
  • Date: Fri, 11 Apr 2008 17:27:03 -0600

I'm using the Cocoa class QCRenderer after testing for Tiger or later. This means I have to link to Quartz.framework which I do as a weak link so I can still start under Panther and test the system version before trying to instantiate QCRenderer. This worked fine when building on Tiger.

Unfortunately I've found that when building on Leopard all I have to do to crash Cocoa on Panther is add "-weak_framework Quartz" to Xcode's "Other Linker Flags". It's not even necessary to add Quartz.framework to my project. When this linker flag is added the following code will crash on Panther on the second line, although it seems just about any reference into Cocoa will crash (e.g., @try will do it).

	NSApplicationLoad();
	[NSAutoreleasePool alloc];

Therefore I can't link or weak link my application to Quartz.framework. Is there any way to instantiate QCRenderer without doing that?

I guess I could create a private framework to instantiate QCRenderer and only load it on Tiger and later, but it seems like there ought to be an easier way in Obj-C.

Thanks
Nick Nallick
_______________________________________________

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: Quartz.framework Catch-22 on Panther
      • From: Nick Nallick <email@hidden>
  • Prev by Date: Re: how should I go about downloading files
  • Next by Date: Accessing Directory.app shared contacts
  • Previous by thread: Panther and Cocoa/Carbon mix; unclickable windows
  • Next by thread: Re: Quartz.framework Catch-22 on Panther
  • Index(es):
    • Date
    • Thread