Re: NSButton in NSToolbarItem does not use "small size"
Re: NSButton in NSToolbarItem does not use "small size"
- Subject: Re: NSButton in NSToolbarItem does not use "small size"
- From: Keary Suska <email@hidden>
- Date: Tue, 26 Feb 2013 09:04:47 -0700
On Feb 26, 2013, at 8:28 AM, Michael Starke wrote:
> Sorry for digging this up again.
>
> As I'm no experienced developer I'm somewhat lost how to address the situation.
> Is there a way to compare an NSToolbarItem with a NSButton created in IB to a one created programmatically?
>
> If so, this might shine some light as to what is really going on.
> While trying to figure out what happens I wrapped NSToolbarItem in a Proxy object to get all it's calls but it seems that I cannot get a hold of any resizing that is sent to the button's cell
Working with the NSToolbarItem is not likely useful. Did you try my suggestion of subclassing NSButtonCell? You can certainly configure the button in IB then inspect its configuration for settings. Basically just size and font, I imagine. Then as long as you can capture the setControlSize: call either to the button or cell, you can resize the button appropriately.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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