Struct Data Types
Struct Data Types
- Subject: Struct Data Types
- From: Richard Somers <email@hidden>
- Date: Thu, 16 Aug 2007 18:57:37 -0600
Consider the following methods of NSView.
- (NSRect)frame
- (NSWindow *)window
And consider the parameter types.
(NSRect) is a pointer to a structure
(NSWindow *) is a pointer to an object
Why didn't Apple design struct data types like this?
- (NSRect *)frame
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?
Regards, Richard Somers
_______________________________________________
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