Re: Storing NSRect in an NSMutableArray...
Re: Storing NSRect in an NSMutableArray...
- Subject: Re: Storing NSRect in an NSMutableArray...
- From: Andrew Duncan <email@hidden>
- Date: Tue, 3 Sep 2002 19:03:07 +1200
At 10:54 PM -0700 02/09/2002, Kenneth C. Dyke wrote:
>
You could use NSValue to wrap the NSRect data for you, or write your
>
own dedicated wrapper class.
>
You can write your own wrapper, but using NSValue also works handily enough.
I know because I ran into the same thing myself a few days ago. :o)
>
-Ken
>
>
On Monday, September 2, 2002, at 10:43 PM, Jiva DeVoe wrote:
>
>
> Here's a problem I seem to hit more often than I'd like. I want to
>
> create
>
> an NSMutableArray of NSRects. The problem is, an NSRect is a struct,
>
> It's
>
> not a real class. So if I do this, NSMutableArray will blow up. How
>
> do I
>
> get around this?
Cheers,
--
Andrew Duncan
----------------------------------------------------------------------
voice: +64 9 623 2926
mobile: 021 297 3174
web:
http://web.webwerks.co.nz/
----------------------------------------------------------------------
Programmers do it while (1)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.