Linked by Jared White on Thu 24th Apr 2003 17:49 UTC
General Development There are two major varieties of Cocoa available. The first variety, possibly the more well known of the two, is the kind that you can use to make a nice warm cup of chocolate milk. While tasty, it's hardly proper subject matter for an operating systems information site. The second variety is far more on-topic: a programming environment for Apple Mac OS X that is the modern evolution of of the original NeXTSTEP frameworks. That's what I'm here to talk about today.
Permalink for comment
To read all comments associated with this story, please click here.
Objective C doesn't use named arguments dammit!
by keiname on Sat 26th Apr 2003 08:48 UTC

The ordering of the parameters is not arbitrary. [object method: 1 With: 2 And: 3]; will call a different method than [object method: 1 And: 2 With: 3];. The parameters have no names, it's just the name of the method that has been "spread out". If you look at the name of the selector you will see that it will be method:With:And: in the first case and method:And:With: in the second case. This would be no different than having a C++ method called methodWithAnd and have the same "ability" to tell the intent of the parameters.

Oh and mmalc, garbage collectors have proven to be at least as effective as manual memory management and often even better. With todays powerful computers there is really no reason NOT to use garbage collection.