• 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 from an NSSplitView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Printing from an NSSplitView (From: John Goodman <email@hidden>)
 >Re: Printing from an NSSplitView (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Execute Function when loading a Preference Pane
  • Next by Date: Re: Spreadsheet functions in NSTableview
  • Previous by thread: Re: Printing from an NSSplitView
  • Next by thread: Setting the content origin in IB
  • Index(es):
    • Date
    • Thread