Trivia: actually "NS" stands for "NeXT & Sun". Old NeXT classes had an NX* prefix. (There are still a few of those lingering in Cocoa.)
The NS prefix was adopted as part of the NextStep -> OpenStep transition around 1993, when Sun was planning to use OpenStep as their main desktop environment. That never happened because soon Sun got Java religion and dumped OpenStep.