You probably need to set the image scaling on the segments added at
runtime. Use NSSegmentedControl's -setImageScaling: forSegment:.

The values you can use are listed in NSCell.h:

    NSImageScaleProportionallyDown = 0, // Scale image down if it is
too large for destination. Preserve aspect ratio.
    NSImageScaleAxesIndependently,      // Scale each dimension to
exactly fit destination. Do not preserve aspect ratio.
    NSImageScaleNone,                   // Do not scale.
    NSImageScaleProportionallyUpOrDown  // Scale image to maximum
possible dimensions while (1) staying within destination area (2)
preserving aspect ratio

David
_______________________________________________

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