style question: when to use 'id' as return value?
style question: when to use 'id' as return value?
- Subject: style question: when to use 'id' as return value?
- From: "Sean McBride" <email@hidden>
- Date: Mon, 17 Dec 2007 17:14:30 -0500
- Organization: Rogue Research
Hi all,
NSString has the method:
+ (id)stringWithString:(NSString *)aString
Why is the return value not an 'NSString*' instead of an 'id'? Is this
just a stylistic preference, or...?
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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