On 09 Mar 2014, at 22:42, Jens Alfke <[email protected]> wrote:
>
> On Mar 9, 2014, at 11:11 AM, Michael Starke
> <[email protected]> wrote:
>
>> I'm creating ToolbarItems for myself in code and use NSButton, NSPopupButton
>> and NSSegemtedControl. They look like this just by setting the view on the
>> NSToolbarItem:
> ...
>> I do nothing special, so I'm wondering why yours don't line up.
>
> I tried adding some NSButtons to my toolbar, using IB, and they definitely
> don’t look right: they’re using the normal button appearance, not the toolbar
> button. What does the code you’re using look like? (Also, are you on 10.9?)
>
> —Jens
My solutions has custom code for the Icon size handling on control size change,
since this didn't work so well with code-generated views and PDF-Based Icons
templates.
I just did a test creating a toolbar with IB and it works exactly as you wish
it to. Be aware you need to add "Rounded Textured Button" for a PushButton to
have the correct apearance. If you drag in a NSSegmentedControl it
automatically gets changed to the correct style, as do Popup Buttons. I'm using
the 10.8 SDKs.
___m i c h a e l s t a r k e____
geschäftsführer
HicknHack Software GmbH
www.hicknhack-software.com
___k o n t a k t____
+49 (170) 3686136
[email protected]
___H i c k n H a c k S o f t w a r e G m b H____
geschäftsführer - maik lathan | andreas reischuck | michael starke
bayreuther straße 32
01187 dresden
amtsgericht dresden HRB 30351
sitz - dresden
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]