NSSegmentedControl with images configured in IB?
NSSegmentedControl with images configured in IB?
- Subject: NSSegmentedControl with images configured in IB?
- From: Jim Correia <email@hidden>
- Date: Wed, 17 Aug 2005 16:07:38 -0400
I've got an NSSegmentedControl in a nib. If I set the images in the
nib, and clear out the string, it looks like it is still leaving
space for the empty string.
Configuring it programatically works:
- (void)awakeFromNib
{
[segmentedControl setImage: [NSImage imageNamed: @"Back"]
forSegment: 0];
[segmentedControl setLabel: nil forSegment: 0];
[segmentedControl setImage: [NSImage imageNamed: @"Forward"]
forSegment: 1];
[segmentedControl setLabel: nil forSegment: 1];
[segmentedControl sizeToFit];
}
Am I missing something obvious? (If not, I'll file a bug against IB
and wire things up programatically if I have to.)
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden