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 (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 [EMAIL PROTECTED]

Reply via email to