• 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: Help in grouping set of objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help in grouping set of objects


  • Subject: Re: Help in grouping set of objects
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 15 Mar 2006 01:07:53 -0500


On Mar 14, 2006, at 12:54 PM, Fritz Anderson wrote:

On 14 Mar 2006, at 7:57 AM, Anoop wrote:

I would like to explain my issue:--I can draw many lines on a view and I can
select each and every one.I need to store these selected objects under a
single umbrella called group.How is it possible.How will I do further
operations on this particular group.
Advises appreciated .

See NSSet and NSMutableSet. See the objectEnumerator, makeObjectsPerformSelector:, and makeObjectsPerformSelector:withObject: methods of NSSet.


If the collection is ordered, use NSArray and NSMutableArray.


drawing objects are almost always ordered

I'd actually consider using a double linked list for this. that makes walking the object graph easy, and grouping and ungrouping objects (as well as hit testing and drawing, etc..) nice and easy.


_______________________________________________ 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: 
 >Help in grouping set of objects (From: Anoop <email@hidden>)
 >Re: Help in grouping set of objects (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Something like "[ NSDictionary dictionaryWithContentsOfFile:]" for situation when there is no file (and no URL either)
  • Next by Date: Re: article about my group at intuit
  • Previous by thread: Re: Help in grouping set of objects
  • Next by thread: NSToolbarItem validation
  • Index(es):
    • Date
    • Thread