Re: Printing from an NSSplitView
Re: Printing from an NSSplitView
- Subject: Re: Printing from an NSSplitView
- From: John Goodman <email@hidden>
- Date: Fri, 2 Feb 2007 10:17:50 -0500
Thanks Uli,
What you say makes perfect sense, and in fact, by calling
makeFirstResponder for my preferred view, I can make it print. Thanks
for putting me on the right track.
John
On Feb 2, 2007, at 3:42 AM, Uli Kusterer wrote:
Am 02.02.2007 um 02:37 schrieb John Goodman:
I've been able to get the app to print, pretty much Auto-Magically
(tm), but I have no control over which of the two views prints. As
luck would have it, the view that prints is the text view, while
I'd prefer to print the graphics.
The "print" message is sent to the first responder, so I guess you
have to make sure your view is the current responder when someone
chooses the Print menu item. Or you can hook up the print menu item
directly to your view, or make some other object handle the print
menu item and forward the call to the view you want to print.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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