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

Re: WWDC


  • Subject: Re: WWDC
  • From: Conrad Shultz <email@hidden>
  • Date: Wed, 25 Apr 2012 16:08:34 -0700

On 4/25/12 3:44 PM, koko wrote:
>
> On Apr 25, 2012, at 2:06 PM, Mikkel Islay wrote:
>
>> the NSConference
>
> Violation … only Apple can use the NS prefix !

Do you understand *why* everyone was making a big deal about your choice
of prefix?  It's not because people here derive satisfaction from
enforcing Apple's guidelines or documentation notes.

Apple actually reserves ALL two letter prefixes (don't have the doc link
handy, but trust me that this is the case).  In addition to NS, some
others that they use:  UI, CT, SK, MF, CI, CT, CM come to mind.

The main reason for this reservation is to prevent collision of a class
that might be furnished in a future SDK with your classes.  By choosing
to use a two-letter prefix you are creating the possibility that some OS
update, for example, will suddenly break your application.

The same logic applies to prefixing method names in categories.  Doubly
so for root classes.  For example, in a category on NSObject, instead of
writing

-performBlock:afterDelay:

I opted to use:

-SQS_performBlock:afterDelay:

(Because of course Apple would *never* add a -performBlock:afterDelay:
method.)

--
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________

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: WWDC
      • From: koko <email@hidden>
    • Re: WWDC
      • From: Kyle Sluder <email@hidden>
References: 
 >WWDC (From: Rick Mann <email@hidden>)
 >Re: WWDC (From: Nathan Sims <email@hidden>)
 >Re: WWDC (From: Rick Mann <email@hidden>)
 >Re: WWDC (From: Ravi Singh <email@hidden>)
 >Re: WWDC (From: Mikkel Islay <email@hidden>)
 >Re: WWDC (From: Vincent Habchi <email@hidden>)
 >Re: WWDC (From: Mikkel Islay <email@hidden>)
 >Re: WWDC (From: koko <email@hidden>)

  • Prev by Date: Re: WWDC
  • Next by Date: Re: WWDC
  • Previous by thread: Re: WWDC
  • Next by thread: Re: WWDC
  • Index(es):
    • Date
    • Thread