Mailing Lists: Apple Mailing Lists

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

Can't CFBundleUnloadExecutable on a Cocoa bundle



I was perplexed about why CFBundleUnloadExecutable was crashing. The bundle
in question was a Cocoa bundle which I loaded into my Carbon/CFM application
and used successfully. Upon searching Apple's documentation a second time,
I stumbled upon this page:
http://developer.apple.com/documentation/Cocoa/Conceptual/
LoadingCode/Concepts/CFNSBundle.html
wherein it is stated:

"In Cocoa applications, you should not use CFBundle routines to load and
unload executable code, because CFBundle does not natively support the
Objective-C runtime. NSBundle correctly loads Objective-C symbols into the
runtime system, but there is no way to unload Cocoa bundles once loaded due
to a runtime limitation. You can, however, create a CFBundle object for a
Cocoa bundle and use the other CFBundle routines without trouble."

If I understand correctly, the above explains the crash I was seeing. Am I
correct? If so, it might be a good idea to include this note in the
CFBundle reference documentation for the CFBundleUnloadExecutable API?

--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
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.



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.