Re: (no subject)
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