Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
thout useful? Then let the preview update? 2008/5/15 douglas a. welton <[EMAIL PROTECTED]>: > > On May 14, 2008, at 9:13 AM, debin lei wrote: > > Thank you for your infomation, i know the function > keyPathsForValuesAffectingPreview, however, i did not know how to use it. >

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
no, i know how to printed document without UI, just set [printOp setShowsPrintPanel:NO]; i realy want to close the dialog with programtically, is it possiable? 2008/5/14 Rimas <[EMAIL PROTECTED]>: > What are you trying to achieve? Get printed document without UI? > > > 2. > > when we implement

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
]; [printOp runOperation]; I got a native printing dialog, So how can I cancel this programtically? Is it possiable? 2008/5/14 debin lei <[EMAIL PROTECTED]>: > Hi all: > I have two questions, pls help me > > 1. > When i implement printing with cocoa, > an NSPrintOperation obje

Re: how to update the view of NSPrintOperation ?

2008-05-14 Thread debin lei
y 14, 2008, at 2:46 AM, debin lei wrote: > > > 1. > When i implement printing with cocoa, an NSPrintOperation object is > created to control the print operation (see > the NSPrintOperation class description for details). > > NSPrintOperation * printOp = > [NSPri

how to update the view of NSPrintOperation ?

2008-05-13 Thread debin lei
Hi all: I have two questions, pls help me 1. When i implement printing with cocoa, an NSPrintOperation object is created to control the print operation (see the NSPrintOperation class description for details). NSPrintOperation * printOp = [NSPrintOperation printOperationWithView:viewToPrint printI