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

Objective C class prefix


  • Subject: Objective C class prefix
  • From: Marco Scheurer <email@hidden>
  • Date: Tue, 8 Feb 2005 23:40:02 +0100

Hello,

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


  • Follow-Ups:
    • Re: Objective C class prefix
      • From: Joseph Heck <email@hidden>
    • Re: Objective C class prefix
      • From: "John C. Warner" <email@hidden>
    • Re: Objective C class prefix
      • From: Guy English <email@hidden>
    • Re: Objective C class prefix
      • From: PA <email@hidden>
  • Prev by Date: WTF, my application is writing *directly* into Xcode log?
  • Next by Date: Re: WTF, my application is writing *directly* into Xcode log?
  • Previous by thread: Re: WTF, my application is writing *directly* into Xcode log?
  • Next by thread: Re: Objective C class prefix
  • Index(es):
    • Date
    • Thread