Re: Help getting custom cell layout in NSOutlineView column
Re: Help getting custom cell layout in NSOutlineView column
- Subject: Re: Help getting custom cell layout in NSOutlineView column
- From: Sebastian Nowicki <email@hidden>
- Date: Sat, 28 Jun 2008 15:40:11 +0800
On 28/06/2008, at 1:39 PM, Sebastian Nowicki wrote:
On 28/06/2008, at 2:57 AM, Sebastian Nowicki wrote:
On 28/06/2008, at 12:05 AM, j o a r wrote:
This is a good piece of sample code to show how to create a complex
custom cell subclass:
<http://developer.apple.com/samplecode/PhotoSearch/>
j o a r
Thanks, that helped a lot. I've got a problem changing the height
of the cell. Whatever I try to do it doesn't seem to want to get
larger. Do I have to set something in the table or somewhere else
to make it change?
cellSizeForBounds: returns a height value of 74, while
drawInteriorWithFrame:inView: recieves an NSRect with a height value
of 17. How do I get drawInteriorWithFrame:inView: to receive the
proper value? cellSizeForBounds: doesn't even get called until I
hover over a cell for a few seconds. What method am I supposed to
override to tell the table the real height value? I don't see
anything from the example that would do that. As far as I can tell I
have everything implemented that the sample does.
Boy do I feel dumb, I didn't set the delegate of the NSOutlineView.
All works fine now, thanks a bunch!Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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