• 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
Class is implemented in both
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Class is implemented in both


  • Subject: Class is implemented in both
  • From: Trygve Inda <email@hidden>
  • Date: Sun, 14 Aug 2016 18:29:35 -0700
  • Thread-topic: Class is implemented in both

I have a Pref Pane and a Screen Saver module. They both share a common
helper class (MyDisplayManager).

When the pref pane has been loaded and I go into the screen saver (or vis
versa), because the host app is System preferences, I get:

Class MyDisplayManager is implemented in both.... One of the two will be
used. Which one is undefined.

The class comes from the same source file. What is the best way to handle
this? I could ignore it because the classes are the same (same source file)
so it should not matter which one is used.

Is there a better way without duplicating and renaming the class?

Thoughts?



_______________________________________________

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: Class is implemented in both
      • From: Uli Kusterer <email@hidden>
    • Re: Class is implemented in both
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: [NSXPCConnection] Getting the effective user/group ids of the listener
  • Next by Date: Re: Class is implemented in both
  • Previous by thread: [NSXPCConnection] Getting the effective user/group ids of the listener
  • Next by thread: Re: Class is implemented in both
  • Index(es):
    • Date
    • Thread