Re: store the NSPoint in an dictionary
Re: store the NSPoint in an dictionary
- Subject: Re: store the NSPoint in an dictionary
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 29 Jun 2001 02:38:00 -0700
On Thursday, June 28, 2001, at 11:55 PM, Brendan Younger wrote:
In reply to:
Now I have got two points, which I store in NSPoint.
Now I want to store these points in an dictionary for reference.
Best way is to create a little wrapper class with the two NSPoints as
instance variables, provide one or two accessor methods and put your
wrapper class in the dictionary.
That wrapper class already exists. It's called NSValue.
-jcr
"This is not a book to be tossed aside lightly. Rather, it should be
hurled with great force." -Dorothy Parker