• 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 - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser and cell size - SOLVED


  • Subject: NSBrowser and cell size - SOLVED
  • From: Greg Hoover <email@hidden>
  • Date: Wed, 31 Jan 2007 00:41:32 -0800

I found a tip from an old post that led me to manually add columns to the browser when certain types are selected. It's not the cleanest way to do this, but it works.

Greg

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: Re: Trouble centering window after mode switch (solved)
  • Next by Date: Re: Trouble centering window after mode switch (solved)
  • Previous by thread: Invalid value range for NSTrackingRectTag
  • Next by thread: CoreData bindings issues
  • Index(es):
    • Date
    • Thread