Talk:Cocoa Programming/Objective-C basics
From Wikibooks, the open-content textbooks collection
This topic seems unnecessary; just a link to Programming:Objective-C would propably suffice?
I think this module is meant to explain the differences between common Objective-C and the Cocoa one. Therefore, this module is needed. --81.197.77.195 10:43, 30 Oct 2004 (UTC)
I'm a little concerned about the OpenStep (?) influences on the book. For example on this page, it talks about using the "new" class method to create an object, when in Cocoa you'd usually use a method the same as the actual class name. For example, to create an array you'd either use [[NSArray alloc] init] or [NSArray array] (or more often, something like [NSArray arrayWithContentsOfURL:url]).
[NObject new] is rarely used in Cocoa. I'm not sure, but I think they do something slightly different (am I right that the object returned by new isn't autoreleased? [NSArray array] returns an autoreleased object). --Abhi Beckert 03:47, 22 Jun 2005 (UTC)