Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting "bad" code fragments in OS X...



On Thursday, February 28, 2002, at 02:26 AM, Bryan Pietrzak wrote:

Can you just have the plug-in developers changed the creator or file type of the plug-in? Or add an empty resource to indicate carbon compatibility?

BBEdit did something similar with its plug-in API (a fragment naming convention) since we support multi-fragment CFM plug-ins in which you can build the classic version and the carbon version into the same binary.

On Thursday, February 28, 2002, at 12:32 AM, Phillip A. Kavan wrote:

i would like to add a feature on OS X to detect plug-in modules that cannot be used with our app in OS X; in other words, have the application detect whether or not a plug-in module has been linked against InterfaceLib at runtime or something like that and then choose not to load it. however, since the Carbonized version of our app is not linked against InterfaceLib, i don't think i can just check for an InterfaceLib function == "unresolved code fragment symbol" in OS X...?

You *should* be able to just try opening a connection to the plug-in. If CFM can't close because InterfaceLib isn't present, you'll get an error, and you know you can't load the plug-in. Is this an unacceptable solution?
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: detecting "bad" code fragments in OS X... (From: Bryan Pietrzak <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.