• 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: Question about Style wrt "private" methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about Style wrt "private" methods


  • Subject: Re: Question about Style wrt "private" methods
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 18 Nov 2009 11:32:37 -0800

On Nov 18, 2009, at 11:15 AM, Jim Correia wrote:

> This problem is just not restricted to private methods, or additions through categories. You can also run afoul of a namespace conflict with a public method in your subclass.

Yes; but this is less likely because Apple engineers add public methods less often (almost never in minor updates) and more carefully.

(It would be nice if Obj-C had some sort of namespaces for methods, and it's been discussed, but it sort of conflicts with the dynamic nature of the language. Every message has to have a single canonical name at runtime; if you think about the implications for selector names in source code and in IB, you can see how it would get messy.)

—Jens_______________________________________________

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: Question about Style wrt "private" methods
      • From: Jim Correia <email@hidden>
References: 
 >Question about Style wrt "private" methods (From: Michael de Haan <email@hidden>)
 >Re: Question about Style wrt "private" methods (From: Jens Alfke <email@hidden>)
 >Re: Question about Style wrt "private" methods (From: Jim Correia <email@hidden>)

  • Prev by Date: Help with Background Tasks
  • Next by Date: Re: Help with Background Tasks
  • Previous by thread: Re: Question about Style wrt "private" methods
  • Next by thread: Re: Question about Style wrt "private" methods
  • Index(es):
    • Date
    • Thread