• 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: Printing and Segmented Control state [Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing and Segmented Control state [Solved]


  • Subject: Re: Printing and Segmented Control state [Solved]
  • From: James Merkel <email@hidden>
  • Date: Tue, 08 Jun 2010 09:22:35 -0700

Ok, should have known this -- the print version of the view is a separate instance of the view from the screen version, and the print version doesn't have the segmented control. So I have to get the state of the control from the screen version and set it into the print version so I can print out the correct string.

Jim Merkel

On Jun 7, 2010, at 10:28 PM, James Merkel wrote:

I have a view that has among other things a segmented control. In the printing code I want to print a string that represents the current state of the segmented control. However, whenever I query the segmented control with -selectedSegment in the print code, I get a value of 0. On the other hand, if I'm drawing the same view to the screen I get the correct index when I query for the selected segment. Has anyone run into this problem and found a work-around?

Thanks in advance.

Jim Merkel

_______________________________________________

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: 
 >Printing and Segmented Control state (From: James Merkel <email@hidden>)

  • Prev by Date: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Next by Date: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Previous by thread: Printing and Segmented Control state
  • Next by thread: OK, break it down for me... (question about gzip)
  • Index(es):
    • Date
    • Thread