Re: n00b Q re: AppController
On 25/12/2009, at 10:00 AM, David Duncan wrote: In Objective-C all classes share a namespace, so if two binary images are loaded into the same address space, and use the same class name, then one of the two classes will be used. If all of these AppControllers share the same functionality, then you probably won't have any issues (for now) but if all of your plugins do implement this class to the same function, then you should probably abstract them all into a common framework that all of these plugins load instead. ...or at the very least, change the class names of the AppController classes in each plug-in so they don't have the same name. AppController is a poor name for the main class of a plug-in anyway, as it is nothing of the sort. BurnerController and ProducerController would be possibilities in this case. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
n00b Q re: AppController
my carbon app loads a couple plugins, which use Cocoa. each plugin implements AppController. should they? i get this in my log upon launch: objc[17568]: Class AppController is implemented in both /Library/Application Support/kJams/Burner.bundle/Contents/MacOS/Burner and /Library/Application Support/kJams/Producer.bundle/Contents/MacOS/Producer. One of the two will be used. Which one is undefined. seems like something ain't right there...___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com
Re: n00b Q re: AppController
On Dec 23, 2009, at 6:37 PM, David M. Cotter wrote: my carbon app loads a couple plugins, which use Cocoa. each plugin implements AppController. should they? i get this in my log upon launch: objc[17568]: Class AppController is implemented in both /Library/Application Support/kJams/Burner.bundle/Contents/MacOS/Burner and /Library/Application Support/kJams/Producer.bundle/Contents/MacOS/Producer. One of the two will be used. Which one is undefined. seems like something ain't right there... In Objective-C all classes share a namespace, so if two binary images are loaded into the same address space, and use the same class name, then one of the two classes will be used. If all of these AppControllers share the same functionality, then you probably won't have any issues (for now) but if all of your plugins do implement this class to the same function, then you should probably abstract them all into a common framework that all of these plugins load instead. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com