• 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
Width of NSSegmentedControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Width of NSSegmentedControl


  • Subject: Width of NSSegmentedControl
  • From: "Peter Karlsson" <email@hidden>
  • Date: Fri, 17 Sep 2004 07:52:51 +0000

Dear list!

I have a NSSegmentedControl that the user add segments to with a button. I need to know the width of the segmented control but... I can't use this code:

targetRect = [mySegmentedControl frame];
float width = targetRect.size.width;

This will only give me the width of the control, not the width of all segments together. It seems that the width of the control has nothing to do with the width of all segments added together. Must I use a loop and add individual segment width's together to get the final width?

Best regards Peter

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: [Somewhat-OT] Unexpected behaviour of varia ble argument lists
  • Next by Date: Re: Subclassing NSSliderCell
  • Previous by thread: Re: Bindings: how to deal with canRemove ?
  • Next by thread: RE: Width of NSSegmentedControl
  • Index(es):
    • Date
    • Thread