On 27.02.2013, at 01:06, Graham Cox <graham....@bigpond.com> wrote: > > On 27/02/2013, at 2:28 AM, Michael Starke > <michael.sta...@hicknhack-software.com> 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 cont...@hicknhack.com ___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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com