User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
Adam Nohejl wrote:
Category syntax is a bit odd from my point of view. Their name doesn't
always appear together with the respective class name (in ObjC:
Class(Category)). This fact and the EXTENDS keyword makes me think of
inheritace (that's also what it means in Java - another Cocoa/GNUstep
language) rather than categories.
...
I suppose that this is a better way to go if you want your extensions
to be as close to ObjC as possible. The current syntax would be
confusing for both ObjC and Java developers.
According to Cocoa/OpenStep practice, init* should be an instance
method. The corresponding class method would be newWithFoo:andBar:, or
fooBarWithFoo:andBar: if it autorelease the return value. Also, the
return type should be OBJECT to allow clean overriding of superclass
initialisers with the same name.
--
Jens Ayton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden