• 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: Namespace clash problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Namespace clash problem


  • Subject: Re: Namespace clash problem
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 13 Oct 2011 23:15:10 -0700

On Oct 13, 2011, at 18:55 , Graham Cox wrote:

> Looks like I have no choice but to change the method name for the class method at least :(

Incidentally, I've been trying to remember for months why using a class object (plus static variables) wasn't a satisfactory implementation of a singleton, and I think this was the reason. In some cases, such as what you're doing, or passing the object as an 'id' or 'void*' context parameter, you basically lose the ability to send messages to the object.

You'd probably be better off redesigning the class so that the behavior is given to a singleton instance of the class, rather than to the class itself._______________________________________________

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

References: 
 >Namespace clash problem (From: Graham Cox <email@hidden>)
 >Re: Namespace clash problem (From: Jens Alfke <email@hidden>)
 >Re: Namespace clash problem (From: Graham Cox <email@hidden>)
 >Re: Namespace clash problem (From: Kyle Sluder <email@hidden>)
 >Re: Namespace clash problem (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: -viewDidUnload not always called?
  • Next by Date: Re: urlFromString creating bad URLs with string containing []
  • Previous by thread: Re: Namespace clash problem
  • Next by thread: Re: Namespace clash problem
  • Index(es):
    • Date
    • Thread