• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: n00b Q re: AppController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: n00b Q re: AppController


  • Subject: Re: n00b Q re: AppController
  • From: David Duncan <email@hidden>
  • Date: Thu, 24 Dec 2009 16:00:03 -0800

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: n00b Q re: AppController
      • From: Rob Keniger <email@hidden>
References: 
 >n00b Q re: AppController (From: "David M. Cotter" <email@hidden>)

  • Prev by Date: Re: Releasing Objects
  • Next by Date: Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?
  • Previous by thread: n00b Q re: AppController
  • Next by thread: Re: n00b Q re: AppController
  • Index(es):
    • Date
    • Thread