[Cocoa-sharp] Cocoa namespace
Chuck Esterbrook
chuck.esterbrook at gmail.com
Thu Jan 24 14:36:43 EST 2008
On Jan 24, 2008 11:13 AM, Andrew Brehm <ajbrehm at gmail.com> wrote:
> I don't like "NS.String".
>
> I find it easier to talk about NSString and be sure that it will be
> called the same in C# and Objective C.
>
> What about a Cocoa namespace containing AppKit etc.?
>
> Like:
>
> Using Cocoa;
>
> AppKit.whatever...
Eh, I'd rather not have to type "AppKit." in addition to "NS". That's
pretty heavy.
Also is AddressBook considered a part of Cocoa? What about WebKit? I
don't think they are. And there will be future APIs from Apple. If we
go with the Objective-C names such as "NSString" then I would prefer:
using FoundationKit;
using AppKit;
NSArray.arrayFrom...
or:
using FoundationKit;
using AddressBook;
ABPerson.whatever
This is analogous to .NET where you might say:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
And it respects that not all things Objective-C are Cocoa.
-Chuck
More information about the Cocoa-sharp
mailing list