Re: List of NSPoints/NSRect etc...
Re: List of NSPoints/NSRect etc...
- Subject: Re: List of NSPoints/NSRect etc...
- From: Roarke Lynch <email@hidden>
- Date: Mon, 17 Jan 2005 01:54:36 -0500
On Jan 17, 2005, at 1:08 AM, Simon alias Trax wrote:
I need to define a list of NSPoints and a list of NSRects.
But since they are not objects, they can't be added to a NSArray.
The number of items in the list is variable.
What can I do about that ?
This gets asked a lot, you should really search the list before asking
a question. But in any case you have two simple options: you can either
use a CFMutableArray (see the core foundation documentation) or you can
use an NSValue object with an NSMutableArray. NSValue has class methods
such as valueWithPoint:, valueWithRange:, valueWithRect:, etc...
Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden