• 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: -outlineView:heightOfRowByItem: gets an item of NULL??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -outlineView:heightOfRowByItem: gets an item of NULL??


  • Subject: Re: -outlineView:heightOfRowByItem: gets an item of NULL??
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 22 Feb 2008 08:18:55 -0800

It shouldn't ask you for the height of a NULL item.

This is either:
1. a bug in nsoutlineview
2. your code may be reloading the nsoutlineview in one of the delegate methods, putting it into a "strange" state. If you see this happening consistently, you may want to break on NSOutlineView reloadData and see if it is getting called when it shouldn't be.


corbin

On Feb 21, 2008, at 12:06 PM, John Stiles wrote:

Fair enough, but the root item is never represented graphically in a table, so there wouldn't be a need to ask for its row height…?
Anyway, I filed a radar… we'll see what happens.



Mike Abdullah wrote:
Although the docs don't mention it for this method, quite often an item of nil is used to represent the tree's root object. I would suggest therefore returning the default height of a table cell.

Mike.

_______________________________________________

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


  • Follow-Ups:
    • Re: -outlineView:heightOfRowByItem: gets an item of NULL??
      • From: John Stiles <email@hidden>
References: 
 >-outlineView:heightOfRowByItem: gets an item of NULL?? (From: John Stiles <email@hidden>)
 >Re: -outlineView:heightOfRowByItem: gets an item of NULL?? (From: Mike Abdullah <email@hidden>)
 >Re: -outlineView:heightOfRowByItem: gets an item of NULL?? (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Private Methods
  • Next by Date: Re: MPTask equivalent?
  • Previous by thread: Re: -outlineView:heightOfRowByItem: gets an item of NULL??
  • Next by thread: Re: -outlineView:heightOfRowByItem: gets an item of NULL??
  • Index(es):
    • Date
    • Thread