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 (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