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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to