Talk:Copy a string

From Rosetta Code
Revision as of 05:34, 18 November 2009 by 164.67.199.150 (talk) (→‎Objective-C Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Objective-C Example[edit]

Well I don't know Objective-C, but looking at the examples isn't there an error on this line: <lang objc>NSString *newMutable = [original mutableCopy];</lang> shoudn't it be this below ? <lang objc>NSMutableString *newMutable = [original mutableCopy];</lang>

Well, it's not wrong -- since NSMutableString is a subclass of NSString -- it just makes it less useful. --164.67.199.150 05:34, 18 November 2009 (UTC)