Re: Quick (?) NSCell question: getting the drawing (inner) rectangle
Re: Quick (?) NSCell question: getting the drawing (inner) rectangle
- Subject: Re: Quick (?) NSCell question: getting the drawing (inner) rectangle
- From: Benjamin Stiglitz <email@hidden>
- Date: Thu, 15 Jan 2009 10:17:06 -0500
Perhaps this method is only intended to provide information to the
system by the NSCell implementation and is not intended for the
purpose I need. In which case, is there a way to achieve what I
want without having to ask for the NSTableColumn width and working
out what proportion of this width is used for non-'interior'
furniture (if any)?
-[NSTableView frameOfCellAtColumn:row:] is what you’re looking for.
The frame that’s passed to the interior drawing method is really
dependent on the cell subclass you’re using, but it’s based on the
frame passed to -[NSCell drawWithFrame:inView:].
Now the standard question: what are you trying to do?
-Ben_______________________________________________
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