Re: Help in grouping set of objects
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