• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 24 Apr 2007 18:58:02 -0400

On Apr 24, 2007, at 6:47 PM, email@hidden wrote:

I am trying to set the size of a button (Regular, small, mini) programatically. I can not see any calls in NSButton or NSControl.
Any suggestions.

When you want to adjust the visual appearance of a control that uses an NSCell for its drawing, it's a good idea to look at the NSCell methods too - not all of them are "covered" by like-named methods in the control class.


In this case, NSCell's -setControlSize: method is what you're looking for:

	[[theButton cell] setControlSize:NSMiniControlSize];

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >(no subject) (From: email@hidden)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread