Hacker News new | ask | show | jobs
by rafram 64 days ago
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.

2 comments

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