• 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: 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
References: 
 >List of NSPoints/NSRect etc... (From: "Simon alias Trax" <email@hidden>)
 >Re: List of NSPoints/NSRect etc... (From: Roarke Lynch <email@hidden>)

  • Prev by Date: Re: NSMatrix Subclassed NSScrollView viewable area width?
  • Next by Date: Re: Assigning a custom formatter to a tablecolum in IB
  • Previous by thread: Re: List of NSPoints/NSRect etc...
  • Next by thread: 1.45 x 1 = 1.450000047683716 ? :: CurrencyConverter
  • Index(es):
    • Date
    • Thread