Re: List of NSPoints/NSRect etc...
Re: List of NSPoints/NSRect etc...
- Subject: Re: List of NSPoints/NSRect etc...
- From: Jonathan Jackel <email@hidden>
- Date: Tue, 18 Jan 2005 17:02:20 -0500
There's also NSStringFromPoint() and NSStringFromRect().
Jonathan
On Jan 17, 2005, at 1:54 AM, Roarke Lynch wrote:
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
_______________________________________________
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