RE: newbie pointer dilemma...
RE: newbie pointer dilemma...
- Subject: RE: newbie pointer dilemma...
- From: "Jeff Evans" <email@hidden>
- Date: Sat, 31 Aug 2002 03:26:10 -0500
only the former is a pointer. NSRect is a normal c struct. I believe most
if not all cocoa functions that deal with NSRects don't need the star.
Brush up on general pointer usage to decide when to use the *. (e.g.
NSRect* for modifying the rect, NSRect without the star to copy the
structure without modifying the original.
-Jeff
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Jonas Roel
>
Sent: Friday, August 30, 2002 9:54 PM
>
To: email@hidden
>
Subject: newbie pointer dilemma...
>
>
>
Can someone cogently differentiate between these two types of pointers:
>
>
NSRect *xyz;
>
&
>
NSRect xyz;
>
>
in others words when and why should one use/omit the * ?
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.