[Cocoa-sharp] Cocoa namespace

Chuck Esterbrook chuck.esterbrook at gmail.com
Thu Jan 24 12:59:03 EST 2008


On Jan 24, 2008 9:48 AM, Chuck Esterbrook <chuck.esterbrook at gmail.com> wrote:
> ...
> Another valid alternative would be to use the name prefix as the
> namespace since that's the point of the name prefix in Objective-C:
> it's a poor man's namespace. So NS.String, NS.TextField, etc. In .NET,
> namespaces can span assemblies so there's not even a problem if we end
> up with multiple .dll's.
>
> "NS.String" still reads close to the Objective-C and is reasonably
> short-and-sweet such that you wouldn't need to say "using NS;".

As another example, the namespace for AddressBook would be AB as in
AB.Group, AB.Person, etc. See
http://www.cocoadev.com/index.pl?AddressBook

-Chuck


More information about the Cocoa-sharp mailing list