NSSegmentControl Image Scaling Problem
NSSegmentControl Image Scaling Problem
- Subject: NSSegmentControl Image Scaling Problem
- From: Peter Zegelin <email@hidden>
- Date: Fri, 10 Apr 2009 18:53:34 +1000
I have an NSSegmentControl that is customizable by the user. They can
add, delete, rename and set an image for a segment. The control is set
up with a single segment in IB. Unfortunately when I add an image (via
an NSImageView) only the first segment shows the image scaled
correctly. If I add an image to any other segment it is not scaled at
all. If I change the initial number of segments in IB to say 3
segments then the image is correctly scaled in these 3 segments but
not any others. It is looking like any new segments created in code
don't scale the image correctly. Can anyone think of what I may be
doing wrong ( I am new to Cocoa ).
I tried adding [[myControl cell] setControlSize: NSSmallControlSize];
before adding new segments but that doesn't help.
Thanks for any help!
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden