Re: Custom NSCell issues
Re: Custom NSCell issues
- Subject: Re: Custom NSCell issues
- From: Corbin Dunn <email@hidden>
- Date: Wed, 25 Mar 2009 15:54:19 -0700
On Mar 25, 2009, at 2:47 PM, malcom wrote:
hello I'm using a custom NSCell in order to draw some elements in an
NSTableView. I've created a simple tableview with 2 row. However my
draws is always put on first row while the second one is empty.
This my code for NSOutlineView delegate http://pastebin.com/m7f5f8a0f
while this is for my NSCell http://pastebin.com/m4166a9c8.
What's wrong?
•
- (NSRect) torrentIconRectForBounds:(NSRect)cellRect {
•
NSRect imgFrame = cellRect;
•
imgFrame.size = NSMakeSize(32, 32);
•
CGFloat midY = cellRect.size.height/2;
midY += NSMinY(cellRect);
.corbin
•
imgFrame.origin = NSMakePoint(imgFrame.origin.x+10, midY-
(imgFrame.size.width/2));
•
return imgFrame;
_______________________________________________
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