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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to