• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSSegmentedControl with images configured in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Anyone used iTableColumnHeader?
  • Next by Date: Re: Dependent Keys
  • Previous by thread: Re: NSApplicationMain() doesn't set NSApp to my subclass
  • Next by thread: Setting default font for NSTextView in IB?
  • Index(es):
    • Date
    • Thread