Re: Hillegass, Third Edition, Chapter 18
Re: Hillegass, Third Edition, Chapter 18
- Subject: Re: Hillegass, Third Edition, Chapter 18
- From: Jason Stephenson <email@hidden>
- Date: Tue, 15 Jul 2008 22:32:56 -0400
Tommy Nordgren wrote:
...
Don't even think about storing the NSRects in an NSArray.
NSRect is a struct -- not a class
Instead store NSBezierPath instances, or create an oval class.
If you're feeling ambitious, you'd make your own class to hold the oval
information, such as its NSRect, NSColor, and a BOOL to indicate whether
or not it should be drawn filled.
If you're truly ambitious, you'd include a fill pattern or fill graphic....
'Course, it was my second time doing the exercise. ;)
Cheers,
Jason
_______________________________________________
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