Re: style question: when to use 'id' as return value?
Re: style question: when to use 'id' as return value?
- Subject: Re: style question: when to use 'id' as return value?
- From: Chris Suter <email@hidden>
- Date: Tue, 18 Dec 2007 09:41:59 +1100
On 18/12/2007, at 9:36 AM, Sean McBride wrote:
Likewise, why does NSWindow's -windowController return 'id' and not
'NSWindowController*'?
I imagine that NSWindow's windowController returns id for the same
reason that stringFromString: does—because it often returns a subclass
of NSWindowController and therefore it returns id so that you don't
have to cast.
- Chris
_______________________________________________
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