Re: Checkbox in NSTableView
Re: Checkbox in NSTableView
- Subject: Re: Checkbox in NSTableView
- From: Chuck Pisula <email@hidden>
- Date: Wed, 23 Jan 2002 11:40:34 -0800
Sounds like this could be considered a bug. I'm sure you can accomplish
what you want by using a subclass of NSButtonCell, and overriding the
some appropriate methods. In fact, I was able to do this by simply
overriding drawWithFrame:inView:, and drawingRectForBounds:.
-c
On Tuesday, January 22, 2002, at 05:07 PM, Lisa Zorn wrote:
Hello,
There have been some posts on this topic already which are pretty
useful, but I still have one remaining problem. I have an NSTableView
with checkboxes in one of the columns but I cannot get the checkboxes
to be centered. This seems like it should be trivial but as far as I
can tell, the NSButtonCell sizes itself to be the width of the column,
and does so by sizing the button title area to take up all the
remaining space. This is my guess for why the checkbox always appears
aligned with the column's left-hand edge. System preferences' Network
panel centers them; how can I?
Thanks,
-lisa
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.