• 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: Objective C class prefix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective C class prefix


  • Subject: Re: Objective C class prefix
  • From: Joseph Heck <email@hidden>
  • Date: Tue, 8 Feb 2005 20:14:17 -0800

I haven't encountered any conflicts, but I've been using 3 letter prefix's just by convention.

-joe

On Feb 8, 2005, at 2:40 PM, Marco Scheurer wrote:
For a long time we've been happy with the 2 letter class prefix convention. But now Apple is more and more using prefixes other than the venerable "NS": "CF" for CoreFoundation, "AB" for AddressBook, "CG" for CoreGraphics, "AM" for Automator, "MD" for metadata etc. and the risk of collision is growing.

It's not just that the probability of two classes having the same name and prefix is higher, but that it bothers me to share a "prefix space" with unrelated classes (it just happened with "AM").

I've never been a huge fan of Java's namespace, and it's not available anyway. I was wondering how others are coping with this: 3 letter prefixes? no prefix? ignoring the issue?


Marco Scheurer Sen:te, Lausanne, Switzerland http://www.sente.ch

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Objective C class prefix (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: IB subviews?
  • Next by Date: Re: Disclosure triangles?
  • Previous by thread: Re: Objective C class prefix
  • Next by thread: Re: Objective C class prefix
  • Index(es):
    • Date
    • Thread