Re: Hillegass, Third Edition, Chapter 18
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