FROM : Hamish Allan
DATE : Wed May 14 23:53:01 2008
On Wed, May 14, 2008 at 6:47 PM, Nick Zitzmann <<email_removed>> 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
DATE : Wed May 14 23:53:01 2008
On Wed, May 14, 2008 at 6:47 PM, Nick Zitzmann <<email_removed>> 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
| Related mails | Author | Date |
|---|---|---|
| Davide Scheriani | May 14, 14:42 | |
| Graham Cox | May 14, 14:52 | |
| Heinrich Giesen | May 14, 16:30 | |
| Davide Scheriani | May 14, 19:19 | |
| Nick Zitzmann | May 14, 19:47 | |
| Hamish Allan | May 14, 23:53 |






Cocoa mail archive

