NSBrowser and cell size - SOLVED
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