How to tell whether an executable supports GC?
How to tell whether an executable supports GC?
- Subject: How to tell whether an executable supports GC?
- From: André Pang <email@hidden>
- Date: Fri, 8 Aug 2008 14:48:12 +1000
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:
This email sent to email@hidden