Loading nib in a dynamically loaded bundle
Loading nib in a dynamically loaded bundle
- Subject: Loading nib in a dynamically loaded bundle
- From: "Anthony Cheung" <email@hidden>
- Date: Mon, 28 Jul 2003 18:14:30 +0800
Dear all,
I am writing application which may have a chance to load / unload many
different bundles during the process time. In addition, I would like to
provide a customized NSView corresponding to the plugin that I load to the
main application. I have two choices to implement a bundle, either Cocoa
bundle or Carbon bundle. However, I suffer problems in both cases.
If I choose to implement a Cocoa bundle, according to doc, there is no way to
unload Cocoa loadable bundle. As my application may load / unload many
different plugin during its process time. Memory locking is headache to me.
Please advise if there is method to completely unload Cocoa bundle now?
If I choose to implement a Carbon bundle, I can use NSUnlinkModule,
NSDestoryObjectFileImage to unload the bundle completely. However, I don't
know how to pop up my dialog in my application. Though I have tried as
suggested in
http://developer.apple.com/documentation/Cocoa/Conceptual/CarbonCocoaDoc/carb
oncocoa.pdf
CreateNibReferenceWithCFBundle returns kIBCarbonRuntimeCantFindNibFile. My
source is as follow:
bundleRef = CFBundleGetMainBundle();
err = CreateNibReferenceWithCFBundle(bundleRef, CFSTR("test"), &nibRef);
the nib file is called "test.nib". Please advise if I have anything wrong.
Many thanks in advance.
Regards,
Anthony Cheung
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.