Re: Struct Data Types
Re: Struct Data Types
- Subject: Re: Struct Data Types
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 16 Aug 2007 19:10:19 -0600
On Aug 16, 2007, at 6:57 PM, Richard Somers wrote:
Why didn't Apple design struct data types like this?
The better question is why would they do that?
Is it because when ever you see the parameter type (NSFoo *) you
should think object and when ever you see the parameter type
(NSBar) you should think struct?
No, since * here means the return type is a pointer. It would make no
sense for NSView to return a pointer to an internal memory structure.
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