• 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: 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


  • Follow-Ups:
    • Re: Hillegass, Third Edition, Chapter 18
      • From: "Jon Buys" <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: [[NSDate alloc] initWithString] crashes with valid string
  • Next by Date: Re: Mystery Thread - how to debug
  • Previous by thread: Re: Hillegass, Third Edition, Chapter 18
  • Next by thread: Re: Hillegass, Third Edition, Chapter 18
  • Index(es):
    • Date
    • Thread