• 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: Creating small controls programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating small controls programmatically


  • Subject: Re: Creating small controls programmatically
  • From: Tim Hewett <email@hidden>
  • Date: Wed, 3 Dec 2003 17:43:34 +0000

Andrew,

Check out this method in NSCell:

- (void)setControlSize:(NSControlSize)size

NSButtonCell is derived from NSActionCell, which in turn is derived
from NSCell, so your button cell will have this method. Agreed it is a
bit hard to find (it took me a while) but it is there, just further up the
class hierarchy.

Tim.

P.S. How come iTunes manages to have mini sized checkboxes in
playlists, under Jaguar, when Jaguar doesn't support them? If I
write Panther software with checkboxes of this size, Jaguar displays
them as full size checkboxes... Huh?!

On 3 Dec 2003, at 17:00, email@hidden wrote:

Greetings!

I am creating NSButtonCells programmatically and adding them to a
NSTableView. Is there a way to set these to small or mini style as
one would via IB?

I can't seem to find reference anywhere to this in the docs.

Thanks!
-Andrew
_______________________________________________
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: Creating small controls programmatically
      • From: Clark Cox <email@hidden>
    • Re: Creating small controls programmatically
      • From: Shawn Erickson <email@hidden>
    • Re: Creating small controls programmatically
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Re: Problems with Affine Transform
  • Next by Date: Re: Creating small controls programmatically
  • Previous by thread: Re: Creating small controls programmatically
  • Next by thread: Re: Creating small controls programmatically
  • Index(es):
    • Date
    • Thread