Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What does the NS prefix mean?
 help



NeXTSTEP. Grandparent is wrong.

Search this document for "Historical Note" for the canonical explanation:

https://developer.apple.com/library/archive/documentation/Co...


That it's a symbol in a Cocoa framework :)

NS hasn't had anything to do with NeXTSTEP since, well, NeXTSTEP. The author's wording makes it sound like this is some crazy remnant of forgotten 30-year-old code poking through, but it's really not. It's Swift (most likely) string concatenation being passed a view instance instead of a string by mistake.


What would you say the letters NS stand for? Perhaps "Not Standforanything"?

That’s kind of a weird take. It’s perfectly reasonable that Apple has not attempted to yank all the “NS” references out, but they are absolutely a holdover from NeXTSTEP. That NeXTSTEP no longer exists does not change that.

The convention is a holdover. It does not mean that the code is the same. There’s plenty of NS classes that did not exist before OS X.

I didn’t say the code is the same. I said it’s incorrect to say that “ns” has nothing to do with NeXTSTEP.

Even funnier, there's new ones added for Liquid Glass that still reference NS: NSGlassEffectView



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: