Mailing Lists: Apple Mailing Lists

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

How to tell whether an executable supports GC?



Hi all, is there a reasonably easy way to programmatically determine whether a particular executable on-disk supports garbage collection? Cocoa methods aren't necessary; all C functions are welcome. Poking around in an executable's Mach-O headers is fine too, but I'm not sure what to look for.

My usage scenario is that we're intending to ship an experimental GC version of our app to some customers, but we have a lot of plugins for our app, and they won't work under the GC version unless they're compiled GC-supported. I'd like to display a sheet in the regular, non-GC version of the app that tells the user which plugins aren't GC- supported, so I can't simply attempt to preflight the bundle and see if that fails, since the preflight check would be running on the non- GC version. Any hints?

Thanks!


-- % Andre Pang : trust.in.love.to.save <http://www.algorithm.com.au/>

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.