• 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
NSBrowser and cell size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser and cell size


  • Subject: NSBrowser and cell size
  • From: Greg Hoover <email@hidden>
  • Date: Tue, 30 Jan 2007 02:04:57 -0800

I'd like to use two different cell types in an NSBrowser. I've successfully subclassed one implementation and it works great. The problem comes with the second cell type. The 2nd cell type is much larger in size and meant to be similar in function to the preview in Finder. In the createRowsForColumn: delegate I'm setting the cell class and cell size of the matrix to the appropriate subclass -- this is confirmed by the fact that the correct subclass draw routine is being called and I've also verified that the cellSize of the matrix is correct. The issue is that whenever drawInteriorWithFrame is called, the frame that is passed is of height 18, rather than the expected, larger height. My subclass also overrides the cellSize method and returns the desired size. I'm obviously missing something.

Any help would be appreciated. Thanks.
Greg
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: How to clear text of an NSTextView
  • Next by Date: RE: How to clear text of an NSTextView
  • Previous by thread: Re: How to clear text of an NSTextView
  • Next by thread: NSCalendar bug.
  • Index(es):
    • Date
    • Thread