• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: newbie pointer dilemma...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >newbie pointer dilemma... (From: Jonas Roel <email@hidden>)

  • Prev by Date: NSPopUpButton disabled items won't stay disabled
  • Next by Date: Re: how to get a file's long name?
  • Previous by thread: newbie pointer dilemma...
  • Next by thread: Re: newbie pointer dilemma...
  • Index(es):
    • Date
    • Thread