Sean, Bill, I'm having an issue with using objc_registerThreadWithCollector() under earlier versions of OS X. 10.4 cancels my app load because it can't resolve that symbol at dynamic link time, so I'm trying to figure out how to fetch the symbol address by name. Of course, if the symbol isn't present then it won't be called. I have to be able to build and ship a binary that works under 10.4 so I can't just make the min OS version 10.6 at build time.
Can you suggest or point me toward a snippet that demonstrates a Cocoa-resident symbol lookup? Thanks, Andy On Oct 26, 2010, at 2:42 PM, Sean McBride wrote: > On Mon, 25 Oct 2010 15:19:45 -0700, Bill Bumgarner said: > >> Yes. Call objc_registerThreadWithCollector() from the thread. > > > Andy, also beware that those two functions are not properly marked as > weak, and so if your deployment target is < 10.6 and even if you test > them against NULL, you will crash. :( <rdar://8508911> > > -- > ____________________________________________________________ > Sean McBride, B. Eng [email protected] > Rogue Research www.rogue-research.com > Mac Software Developer Montréal, Québec, Canada > > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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]
