• 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: Tommy Nordgren <email@hidden>
  • Date: Tue, 15 Jul 2008 20:54:51 +0200


On 15 jul 2008, at 13.25, Jon Buys wrote:

...snip
Drawing a new rect on every mouseDown is the main problem I'm having now,
but I think it's because I'm not adding the rect to an NSMutableArray. I'm
working on that now, but I've run out of time this morning. How can I add a
rect to an array? Do I have to convert it first?


...
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.
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from outer space.
On congratulations for a fantastic parody, the producer replies : "What parody?"


Tommy Nordgren
email@hidden



_______________________________________________

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: Jason Stephenson <email@hidden>
    • Re: Hillegass, Third Edition, Chapter 18
      • From: "Kyle Sluder" <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>)

  • Prev by Date: Re: Problem on reload data source of a table view
  • Next by Date: Re: Detect/Disable Font Fallbacks in NSLayoutManager
  • Previous by thread: Re: Hillegass, Third Edition, Chapter 18
  • Next by thread: Re: Hillegass, Third Edition, Chapter 18
  • Index(es):
    • Date
    • Thread