• 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: How to choose different implementations of an object method at runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to choose different implementations of an object method at runtime?


  • Subject: Re: How to choose different implementations of an object method at runtime?
  • From: Michael Crawford <email@hidden>
  • Date: Thu, 23 Jan 2014 15:38:14 -0500

Relax.

I'm sorry but this is simply not where I want to go.  I'm not interested in writing code that does something that the system already does.  At the same time, I want to provide that missing functionality on older versions of Mac OS X without having two versions of source code, if at all possible.  Consider it an academic exercise.  It is not the end of the world and I am not the devil.

I do appreciate everyones responses, though.  This is a nice place to learn new things.  I reserve the right, however, to set my own policy with regard to what I will create and how I make use of our combined expertise in doing so.

Have a great day, fellas.

-Michael

On Jan 23, 2014, at 2:45 PM, Jens Alfke <email@hidden> wrote:

>
> On Jan 20, 2014, at 12:27 PM, Michael Crawford <email@hidden> wrote:
>
>> As I'm sure you are aware, 10.8 now defines a method that does the same thing using the same name.
>
> That's exactly why you should unambiguously prefix the names of category methods you add to system classes. Collisions are dangerous. Change your method name to "mc_CGColor" or whatever, and this won't be an issue.
>
> —Jens
>
> PS: And let's not turn this into another thread about the need for namespacing in Obj-C. If anyone's interested in the topic they can search for the many, many previous messages on this topic here and in xcode-users and objc-language. And if anyone really needs to post new stuff about it, please use objc-language as the forum.
>

_______________________________________________

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: How to choose different implementations of an object method at runtime?
      • From: Ken Thomases <email@hidden>
References: 
 >How to choose different implementations of an object method at runtime? (From: Michael Crawford <email@hidden>)
 >Re: How to choose different implementations of an object method at runtime? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: How to choose different implementations of an object method at runtime?
  • Next by Date: Re: How to choose different implementations of an object method at runtime?
  • Previous by thread: Re: How to choose different implementations of an object method at runtime?
  • Next by thread: Re: How to choose different implementations of an object method at runtime?
  • Index(es):
    • Date
    • Thread