Post

Replies

Boosts

Views

Activity

Can I unload a bundle in a Cocoa application?
According to Guides and sample codes ...1. Cocoa loading Programming Topics > Multi-Bundle ApplicationAdditionally, Cocoa applications cannot unload bundles. If you want to be able to load and unload large separately built application components, you can build your application as a number of smaller executable components, and the main application can fork child processes. You can enable communication between the processes with the Cocoa distributed objects architecture. For more information, see Distributed Objects.2. Cocoa loading Programming Topics > Document Revision HistoryRemoved limitations item claiming that Cocoa bundles cannot be unloaded.Which is right?I want to unload the dynamic bundle in a cocoa application. The bundle uses the NSWindowController to pop up and exit the Window.However, when I unload the bundle, an EXC_BAD_ACCESS (objc_loadweakretained) error occurs.If not, please give me another way to do the same thing.Thank you.
4
0
1.2k
Apr ’18