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

Re: Printing example in Cocoa Programming for MacOS X


  • Subject: Re: Printing example in Cocoa Programming for MacOS X
  • From: Normand Perron <email@hidden>
  • Date: Wed, 24 Apr 2002 13:11:53 -0400

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.

  • Follow-Ups:
    • Re: Printing example in Cocoa Programming for MacOS X
      • From: John Nestor <email@hidden>
References: 
 >Printing example in Cocoa Programming for MacOS X (From: Normand Perron <email@hidden>)

  • Prev by Date: Re: NSDocument: how to save document as a simple text file
  • Next by Date: Re: Re(4): ObjC vs C#
  • Previous by thread: Re: Printing example in Cocoa Programming for MacOS X
  • Next by thread: Re: Printing example in Cocoa Programming for MacOS X
  • Index(es):
    • Date
    • Thread