• 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: What does "NS" means ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does "NS" means ?


  • Subject: Re: What does "NS" means ?
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 22 May 2005 20:52:44 -0700

On May 22, 2005, at 12:26 PM, John Stiles wrote:
I was under the impression, from talking to other developers, that the "NS" switch occurred before Sun entered the picture (to mean "NeXTStep"). And then when Sun began collaborating with NeXT, the "NeXT-Sun" nomenclature just kind of worked out conveniently. I am not sure if it's true, though.

That pretty much nails it. Sun entered the picture a bit after the NS prefix had come into play.


The NS prefix came about in public APIs during the move from NeXTSTEP 3.0 to NeXTSTEP 4.0 (also known as OpenStep). Prior to 4.0, a handful of symbols used the NX prefix, but most classes provided by the system libraries were not prefixed at all -- List, Hashtable, View, etc...

The NS prefix also happened at the same time that the system provided a String class -- NSString -- was introduced and [almost] all APIs were moved over to using strings objects instead of char*. The move to string classes was strongly motivated by the desire to support many languages out of the box, something that most operating systems did poorly at the time. In other words, NSString was not just to avoid the silliness of char* buffers and the potential crashers therein, but primarily to allow multi-byte characters to be easily handled without requiring much in the way of special cased code in the clients of the APIs.

b.bum
(who chatted w/some folks that did the NS* engineering work in the first place)
_______________________________________________
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
  • Prev by Date: Re: NSArrayController usage
  • Next by Date: How to get NSPersistentDocument to use a subclassed NSManagedContext?
  • Previous by thread: Re: What does "NS" means ?
  • Next by thread: Waiting for Event
  • Index(es):
    • Date
    • Thread