Re: NSSegmentControl Image Scaling Problem
Re: NSSegmentControl Image Scaling Problem
- Subject: Re: NSSegmentControl Image Scaling Problem
- From: Peter Zegelin <email@hidden>
- Date: Fri, 10 Apr 2009 19:28:26 +1000
Ah yes thank you. Works great.
Peter
On 10/04/2009, at 7:16 PM, Dave Keck wrote:
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 (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