Re: Convenience Methods
Re: Convenience Methods
- Subject: Re: Convenience Methods
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 25 Sep 2007 19:51:44 -0600
On Sep 25, 2007, at 7:46 PM, Jeff Laing wrote:
Sorry, I don't understand this.
There is no way the class method is going to return subclasses.
Really? Don't tell that to whoever designed NSString (for example)
and its subclasses. Because they return id and not a specific
instance of the class, you can call [NSMutableString
stringWithString:@"hello world"] and get a mutable string instead of
a regular string.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden