• 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: Dave Keck <email@hidden>
  • Date: Thu, 9 Apr 2009 23:16:02 -1000

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

  • Follow-Ups:
    • Re: NSSegmentControl Image Scaling Problem
      • From: Peter Zegelin <email@hidden>
References: 
 >NSSegmentControl Image Scaling Problem (From: Peter Zegelin <email@hidden>)

  • Prev by Date: NSSegmentControl Image Scaling Problem
  • Next by Date: Re: NSSegmentControl Image Scaling Problem
  • Previous by thread: NSSegmentControl Image Scaling Problem
  • Next by thread: Re: NSSegmentControl Image Scaling Problem
  • Index(es):
    • Date
    • Thread