• 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
Printing example in Cocoa Programming for MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing example in Cocoa Programming for MacOS X


  • Subject: Printing example in Cocoa Programming for MacOS X
  • From: Normand Perron <email@hidden>
  • Date: Tue, 23 Apr 2002 11:26:22 -0400

I am working my way through the book by Aaron Hillegass.

The second part of chapter 22 is supposed to make the RaiseMan application print the list of employees. However, when I try it, the printed page contains a picture of the window, or of the table view, or of the preference panel if it happens to be the key window when I select Print... in the File menu.

It is pretty obvious that the print operation does not use the correct view to print the page.

I have set a break point at the beginning of my printShowingPrintPanel: method in MyDocument.m, but it never gets called...

I have checked my source code with the printed copy and it is exactly as in the book, except for some line wraps.

I have checked in IB that the target for the Print... menu item is the FirstResponder.printDocument: method.

I have downloaded the solution from the book's site and it runs as expected. I cannot find any significant difference between the solution code and mine... The capitalisation of the different method names, variables, etc. looks OK; the syntax colouring looks OK; I do not detect any typos... The problem will probably turn out to be a detail that will be very obvious _after_ I find it...

I have cleaned the target in PB... no change.

Any idea where I should check next???

Normand
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Printing example in Cocoa Programming for MacOS X
      • From: Normand Perron <email@hidden>
    • Re: Printing example in Cocoa Programming for MacOS X
      • From: David Holt <email@hidden>
  • Prev by Date: Preventing newlines from wrapping
  • Next by Date: A question on NSTableView, NSOutlineView, NSScrollSomethingView
  • Previous by thread: Preventing newlines from wrapping
  • Next by thread: Re: Printing example in Cocoa Programming for MacOS X
  • Index(es):
    • Date
    • Thread