Re: Printing example in Cocoa Programming for MacOS X
Re: Printing example in Cocoa Programming for MacOS X
- Subject: Re: Printing example in Cocoa Programming for MacOS X
- From: Ruben Smits <email@hidden>
- Date: Wed, 24 Apr 2002 08:23:21 +0200
On dinsdag, april 23, 2002, at 06:50 , email@hidden
wrote:
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
I'd say there is a problem with your connections in the IB. Try to
compare the connections with the example code.
_______________________________________________
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.