It should ask for a particular child just once, but that is an implementation detail. You should always return the same item, and not a new item. It sounds like you expect the outlineview to retain the objects; however, it does not. You have to manage them in an array (or dictionary).

corbin

On Sep 17, 2009, at 12:26 AM, Sravanthi wrote:

Hi,

I am using outline view to display a set of entities, here my problem is outlineView:child:ofItem: method is getting called more than once for an item of index X of a particular parent.

As each call to outlineView:child:ofItem: is returns a new child with different address, in further calls to the outlineView:objectValueForTableColumn:byItem: is still referring to the old address of the child, the app is crashing.

Here i am very much unclear why data source is asking for the same item (i.e. the child of index X of a particular parent) more than once?


Any help will be greatly appreciated.



Thanks,
Sravanthi.E



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to