• 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: NSRectFillListWithColors question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRectFillListWithColors question


  • Subject: Re: NSRectFillListWithColors question
  • From: "Hamish Allan" <email@hidden>
  • Date: Wed, 14 May 2008 22:53:01 +0100

On Wed, May 14, 2008 at 6:47 PM, Nick Zitzmann <email@hidden> wrote:

> On May 14, 2008, at 11:19 AM, Davide Scheriani wrote:
>
>> okkei,good,this is working,but I wanted to use NSArray instead a simple
>> C-style array.
>> In many case I have NSArray it hold NSValue for each NSRect.
>
> You could write a category that does this.

Don't lose sight of what you were originally trying to do, though. I'd
recommend that for now, you just iterate over the array and draw each
rect using NSRectFill(). If, later, when you run your app through
Shark, that turns out to be a performance bottleneck, then is the time
to try other approaches.

Hamish
_______________________________________________

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

References: 
 >Re: NSRectFillListWithColors question (From: Heinrich Giesen <email@hidden>)
 >Fwd: NSRectFillListWithColors question (From: Davide Scheriani <email@hidden>)
 >Re: NSRectFillListWithColors question (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Launching Cocoa Application externally (Yann Disser)
  • Next by Date: Re: Capture screenshot
  • Previous by thread: Re: NSRectFillListWithColors question
  • Next by thread: Capture screenshot
  • Index(es):
    • Date
    • Thread