• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: store the NSPoint in an dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: store the NSPoint in an dictionary (From: Brendan Younger <email@hidden>)

  • Prev by Date: Re: NSStringAdditions drawAtPoint
  • Next by Date: [ann] Assistant code available
  • Previous by thread: Re: store the NSPoint in an dictionary
  • Next by thread: [ann] Assistant code available
  • Index(es):
    • Date
    • Thread