Re: Printing and Segmented Control state [Solved]
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