• 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: Struct Data Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Struct Data Types (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Struct Data Types
  • Next by Date: Re: Struct Data Types
  • Previous by thread: Re: Struct Data Types
  • Next by thread: Re: Struct Data Types
  • Index(es):
    • Date
    • Thread