• 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: List of NSPoints/NSRect etc...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: List of NSPoints/NSRect etc...
      • From: Jonathan Jackel <email@hidden>
References: 
 >List of NSPoints/NSRect etc... (From: "Simon alias Trax" <email@hidden>)

  • Prev by Date: Re: List of NSPoints/NSRect etc...
  • Next by Date: Re: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
  • Previous by thread: Re: List of NSPoints/NSRect etc...
  • Next by thread: Re: List of NSPoints/NSRect etc...
  • Index(es):
    • Date
    • Thread