• 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: Hillegass, Third Edition, Chapter 18
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hillegass, Third Edition, Chapter 18


  • Subject: Re: Hillegass, Third Edition, Chapter 18
  • From: "Kyle Sluder" <email@hidden>
  • Date: Tue, 15 Jul 2008 16:04:59 -0400

On Tue, Jul 15, 2008 at 2:54 PM, Tommy Nordgren
<email@hidden> wrote:
> Don't even think about storing the NSRects in an NSArray.
> NSRect is a struct -- not a class

NSRect can be wrapped up in an NSValue, as I mentioned above, and
stored in an array.  KVC will automatically do the same for properties
typed as NSRect.  It's an important and frequently-used type, so it
gets special support from the framework.

In other words, go ahead and think about putting NSRects in an
NSArray.  As a matter of fact, do it!  Just wrap them up first.

--Kyle Sluder
_______________________________________________

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: 
 >Hillegass, Third Edition, Chapter 18 (From: "Jon Buys" <email@hidden>)
 >Re: Hillegass, Third Edition, Chapter 18 (From: Antonio Nunes <email@hidden>)
 >Re: Hillegass, Third Edition, Chapter 18 (From: "Jon Buys" <email@hidden>)
 >Re: Hillegass, Third Edition, Chapter 18 (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: KVV and the missing Discard Changes button
  • Next by Date: Re: Keypaths
  • Previous by thread: Re: Hillegass, Third Edition, Chapter 18
  • Next by thread: Re: Hillegass, Third Edition, Chapter 18
  • Index(es):
    • Date
    • Thread