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: John Nestor <email@hidden>
- Date: Wed, 24 Apr 2002 14:55:23 -0400
Aaron maintains a site for discussion of book topics. It is
http://www.bignerdranch.com/Book/Guide.html. Type in the page number
from the book, e.g. 310 for printing, and it will take you any
comments/suggestions within plus/minus a few pages of your selection.
There is stuff there on printing.
I was never able to manage the page margins and space between pages with
the code in the book. I have written a revision that handles these
issues. This is a reminder to me to post it to the site.
Normand Perron wrote:
Thanks to all who responded, either through the list or with direct
e-mails...
Most of the responses pointed towards misconnections in the
MainMenu.nib file, which I suspected all along, but I could not see
any significant differences between my nib and the one provided by the
book's author.
It turns out that I had localised the MainMenu.nib file to French as a
personal exercise. Guess what... I normally run MacOS X in French on
my computer.
Naturally, when opening MainMenu.nib from PB, the English version of
it was edited. After creating the missing link in the localised
version of the nib file, everything was OK.
This could be of interest to all who run MacOS X in a language other
than English...
Normand
Le Mardi 23 avril 2002, ` 11:26 , Normand Perron a icrit :
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.
_______________________________________________
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.
_______________________________________________
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.