Re: Customizing NSPrintPanel by removing features, not adding

2017-10-17 Thread St John, David R
app that prints to Zebra label printers in their own printing language (ZPL). I am currently using Core Printing to print a temporary file with the raw code through the PMPrinterPrintWithFile(…) function. Works like a charm! The app shows a standard NSPrintPanel, where the user can s

Customizing NSPrintPanel by removing features, not adding

2017-10-17 Thread Flavio Donadio
to print a temporary file with the raw code through the PMPrinterPrintWithFile(…) function. Works like a charm! The app shows a standard NSPrintPanel, where the user can select the number of copies and set printer features, which I sure like to have. But, since the user doesn’t have any control over

Re: How to update preview in NSPrintPanel?

2011-12-30 Thread Luc Van Bogaert
On 26 Dec 2011, at 02:44, Quincey Morris wrote: On Dec 25, 2011, at 14:05 , Luc Van Bogaert wrote: I'm adding a custom user setting to a NSPrintPanel by adding an accessory view controller for a view that contains just one control (a checkbox) and which is loaded from a nib file

Re: How to update preview in NSPrintPanel?

2011-12-30 Thread Quincey Morris
On Dec 28, 2011, at 05:05 , Luc Van Bogaert wrote: I haven't been able to set the checkbox's state to ON, when opening the print panel. I've tried creating the view controller first and then sending [viewcontroller setCheckBoxValue:YES], but that doesn't seem to work, so I suspect I'm

How to update preview in NSPrintPanel?

2011-12-25 Thread Luc Van Bogaert
Hi, I'm adding a custom user setting to a NSPrintPanel by adding an accessory view controller for a view that contains just one control (a checkbox) and which is loaded from a nib file. The checkbox's value has a binding to the view controller's representedObject.printSettings.checkboxvalue

Re: How to update preview in NSPrintPanel?

2011-12-25 Thread Graham Cox
On 26/12/2011, at 9:05 AM, Luc Van Bogaert wrote: Hi, I'm adding a custom user setting to a NSPrintPanel by adding an accessory view controller for a view that contains just one control (a checkbox) and which is loaded from a nib file. The checkbox's value has a binding to the view

Re: How to update preview in NSPrintPanel?

2011-12-25 Thread Quincey Morris
On Dec 25, 2011, at 14:05 , Luc Van Bogaert wrote: I'm adding a custom user setting to a NSPrintPanel by adding an accessory view controller for a view that contains just one control (a checkbox) and which is loaded from a nib file. The checkbox's value has a binding to the view

NSPrintPanel

2010-03-10 Thread danchik
to bring up a panel is : // NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo]; NSPrintPanel *printPanel = [NSPrintPanel printPanel]; int res = [printPanel runModalWithPrintInfo:printInfo]; // will do actuall printing now ... is there anything I can subclass or become an observer

Presets NSPrintPanel accessory view

2010-01-20 Thread Gerd Knops
Hi All, I use NSPrintPanel's addAccessoryController: method to add an accessory view. It is used to manipulate some app-sepcific variables inside NSPrintInfo's printSettings. Most everything works fine, changing the values changes the preview, they are stored in Presets etc. The one thing I

Re: how to get the save File path from NSPrintpanel

2009-04-22 Thread Uli Kusterer
On 21.04.2009, at 12:08, sandeep chaudhary wrote: I am using the Objective-C for my application. In my application I use the NSPrintPanel to print the document. In the NSPrintPanel user can save the document using the Save as pdf option of NSPrintPanel, and a new dialog is open

how to get the save File path from NSPrintpanel

2009-04-21 Thread sandeep chaudhary
Hi All,          I am using  the  Objective-C  for my application. In my application I use the NSPrintPanel to print the document. In the NSPrintPanel user can save the document using the Save as pdf option of NSPrintPanel, and a new dialog is open to save the document. In this dialog user can

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-14 Thread Antonio Nunes
On 14 Jun 2008, at 05:28, Wilhelm Phillips wrote: In order to achieve the desired result I subclassed PDFPage from PDFKit to draw the appropriate numbers and PDFDocument to apply that pageClass to any pages that I add to myPDFDocument. An alternative may be to try to leverage

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-14 Thread Wilhelm Phillips
opening PDFView's NSPrintPanel returns NO - that is before the user chooses to print or cancel, etc. I'll keep testing it and to see if I can get it to work. Perhaps I should check isDrawingToScreen in a subclass of PDFView rather than PDFPage. I don't mind if the destination is a PDF

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-14 Thread Wilhelm Phillips
Hi Antonio, So I took your suggestion a little further and decided to see if [[NSGraphicsContext currentContext] attibutes] returned anything and it looks like this may do the trick... If the print panel is not cancelled (i.e. print or save to file is clicked) then attributes are

PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-13 Thread Wilhelm Phillips
] provides no way to track the user interaction that ends the NSPrintPanel. PDFView's print tasks have no didRunSelector like NSOperation, so I can't find a way to determine whether the user cancelled the dialog or printed, etc. Any thoughts? Attempted alternative solutions: Since

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-13 Thread Joel Norvell
Hi Will, I'm not sure what you mean by adjust custom PDFPage drawing after the page has printed. And this may be no help at all, but if you could factor that drawing into drawPagePost (in 10.5 PDF Kit), then it wouldn't be printed, but it would be drawn on the screen. You could look at John

Re: PDFView's NSPrintPanel : Determine if Print / Cancel clicked?

2008-06-13 Thread Wilhelm Phillips
for a successful print job or perhaps some way to properly manage NSPrintInfo and drawing to roll a NSPrintOperation that could be used to replace PDFView's printWithInfo:autoRotate: method or a way to access PDFViews NSPrintPanel / NSPrintOperation. P.S. Can you point me to a download

Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
Hello, I am interested in adding additional button to the NSPrintPanel dialog at the very bottom line. Between ( PDF v ) and ( Cancel ). Is that possible under Leopard? Custom accessory view is not suitable for me. Even topics from Extending Printing Dialogs does not help, because they does

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
On May 13, 2008, at 10:23 AM, Rimas wrote: I am interested in adding additional button to the NSPrintPanel dialog at the very bottom line. Between ( PDF v ) and ( Cancel ). Is that possible under Leopard? There no simple way to do this, and I would highly discourage trying to do so

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
Thank you for reply. What are you trying to accomplish? Basicaly I am trying to merge Page setup and Print dialogs. That is easy by using NSPrintPanel's setOptions. But I want to keep Page setup functionality also. I mean, I want to be able to change paper size for example, without printing.

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
On May 13, 2008, at 11:52 AM, Rimas wrote: What are you trying to accomplish? Basicaly I am trying to merge Page setup and Print dialogs. That is easy by using NSPrintPanel's setOptions. But I want to keep Page setup functionality also. I mean, I want to be able to change paper size for

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread Rimas
You are right. And that works very well. Except one thing. After changing paper size in Print dialog I have two options - to press Cancel (and revert changes I have made) or to press Print and save new options + print document. I want only to change paper size and save that information for later

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
On May 13, 2008, at 12:05 PM, Rimas wrote: You are right. And that works very well. Except one thing. After changing paper size in Print dialog I have two options - to press Cancel (and revert changes I have made) or to press Print and save new options + print document. I want only to change

adding a custom view to NSPrintPanel

2008-05-12 Thread Victor Bovio
Hi, Does anyone knows of an example or tutorial on how to this ?? The documentation says that I have to use this method on NSPrintPanel: - (void)addAccessoryController:(NSViewController NSPrintPanelAccessorizing *)accessoryController I have no idea how a NSViewController works.. any