[Cocoa-sharp] Cocoa namespace

Russell Hind rhind at mac.com
Thu Jan 24 13:01:56 EST 2008


In that case, shouldn't it be in

CocoaSharp.AB

or

Cocoa.AB and
Cocoa.WebKit
Cocoa.FoundationKit

I think it ought to be prefixed with a common namespace to avoid  
collision possibilities with other libraries.

Cheers

Russell

On 24 Jan 2008, at 17:59, Chuck Esterbrook wrote:

> 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
> _______________________________________________
> Cocoa-sharp mailing list
> Cocoa-sharp at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/cocoa-sharp



More information about the Cocoa-sharp mailing list