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
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
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
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
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
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
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
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
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
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
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
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
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
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
] 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
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
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
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
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
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.
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
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
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
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
24 matches
Mail list logo