• 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: Reg: outlineView dataSource method outlineView:child:ofItem:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reg: outlineView dataSource method outlineView:child:ofItem:


  • Subject: Re: Reg: outlineView dataSource method outlineView:child:ofItem:
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 17 Sep 2009 14:35:30 -0700

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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >Reg: outlineView dataSource method outlineView:child:ofItem: (From: Sravanthi <email@hidden>)

  • Prev by Date: Optimizing Enormous lists in NSBrowser
  • Next by Date: Re: Menu item correct size
  • Previous by thread: Reg: outlineView dataSource method outlineView:child:ofItem:
  • Next by thread: Menu item correct size
  • Index(es):
    • Date
    • Thread