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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to