• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checkbox in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Checkbox in NSTableView
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: NSTableView edit text-field help please?
  • Next by Date: Exceptions never reach my uncaught exception handler
  • Previous by thread: Re: Checkbox in NSTableView
  • Next by thread: Re: Checkbox in NSTableView
  • Index(es):
    • Date
    • Thread