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: Michael Starke <email@hidden>
- Date: Wed, 27 Feb 2013 02:48:21 +0100
On 27.02.2013, at 01:06, Graham Cox <email@hidden> wrote:
>
> On 27/02/2013, at 2:28 AM, Michael Starke <email@hidden> wrote:
>
>> 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?
>
>
> Well, I have to ask the obvious question: why are you doing this programmatically? Avoiding IB is often a signature failing of the "no experienced developer".
>
> I've created even quite non-standard toolbar items and have never had to avoid IB to do so.
Valid point. Maybe it's the wrong way to do so. It seemed right to work this way in the delegate. I get to use my internal string constants for the identifiers, I can directly set actions without having to connect them in IB and do not have to keep the IB file and my code in sync since this comes free with using the constants. Localizations is equally easy done in code this way. Icons for the Items are easily maintainable in one spot.
But you're right, maybe I should give the IB focused way another chance.
> --Graham
>
>
___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@hidden
___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@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