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

NSSegmentControl Image Scaling Problem


  • Subject: NSSegmentControl Image Scaling Problem
  • From: Peter Zegelin <email@hidden>
  • Date: Fri, 10 Apr 2009 18:53:34 +1000

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 (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: Dave Keck <email@hidden>
  • Prev by Date: Re: Undocumented flags in LSCopyItemInfoForRef
  • Next by Date: Re: NSSegmentControl Image Scaling Problem
  • Previous by thread: Re: Undocumented flags in LSCopyItemInfoForRef
  • Next by thread: Re: NSSegmentControl Image Scaling Problem
  • Index(es):
    • Date
    • Thread