> 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?
Your midY calculation is ignoring the origin of the cellFrame, so everything is being positioned relative to the origin. Try NSMidY(<rect>). -Ben _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com