I would like to create a button similiar to NSRuleEditor’s minus
(remove) button.
This is what I have tried:
NSButton* remove = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 16,
16)];
[[remove cell] setControlSize:NSSmallControlSize];
remove.bezelStyle = NSRoundRectBezelStyle;
remove.buttonType = NSMomentaryPushInButton;
remove.image = [NSImage imageNamed:NSImageNameRemoveTemplate];
Unfortunately this creates too much padding, here is a remove button
from Finder followed by the result from the above code:


Does anyone know how I can create a button identical to the system’s?
_______________________________________________
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]