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

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


  • Follow-Ups:
    • Re: Struct Data Types
      • From: Uli Kusterer <email@hidden>
    • Re: Struct Data Types
      • From: Nick Zitzmann <email@hidden>
    • Re: Struct Data Types
      • From: Charles Steinman <email@hidden>
    • Re: Struct Data Types
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Dictionaries
  • Next by Date: "Esc" doesn't work as a menu item key equivalent
  • Previous by thread: Re: Dictionaries
  • Next by thread: Re: Struct Data Types
  • Index(es):
    • Date
    • Thread