• 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
Re: NSSegmentControl Image Scaling Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSegmentControl Image Scaling Problem (From: Peter Zegelin <email@hidden>)
 >Re: NSSegmentControl Image Scaling Problem (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: NSSegmentControl Image Scaling Problem
  • Next by Date: best way to skin a QTMovie Player
  • Previous by thread: Re: NSSegmentControl Image Scaling Problem
  • Next by thread: best way to skin a QTMovie Player
  • Index(es):
    • Date
    • Thread