On Feb 4, 2010, at 2:47 AM, Poonam Virupaxi Shigihalli wrote:

parentObject = [outlineview parentObject:item]; //Here it always returns Groups2 even though i want to remove from Group1 one, since cocoa is a duplicate entry(Same memory location).

You can't have the same item in two places in an NSOutlineView.

You're going to need to use separate item objects for the two appearances of 'Cocoa', even though they both refer to the same object in your model. You can do this by making an 'OutlineItem' class that has a single property that points to your model object. Then your data- source methods will wrap each model object in an OutlineItem before returning it to NSOutlineView.

—Jens_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to