• 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: how to update the view of NSPrintOperation ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to update the view of NSPrintOperation ?


  • Subject: Re: how to update the view of NSPrintOperation ?
  • From: "debin lei" <email@hidden>
  • Date: Wed, 14 May 2008 22:57:12 +0800

Does anyone have ideas about the question 2 ?
2.
when we implement printing with cocoa,
an NSPrintOperation object is created to control the print operation .
NSPrintOperation * printOp = [NSPrintOperation
printOperationWithView:viewToPrint printInfo:printInfo];
[printOp setShowsPrintPanel:YES];
[printOp runOperation];

I got a native printing dialog, So how can I cancel this programtically? Is
it possiable?

2008/5/14 debin lei <email@hidden>:

> 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 printInfo:printInfo];
> viewToPrint is my NSView for printing.
> I augment printpanel display by adding a custom NSView using the
> addAccessoryController: method.
> I put one button into the view. When user presses the button,i want to do
> some logic and notices viewToPrint the update.Because the print data
> changed.So the preview in the print dialog should be updated.
> How can i do this, let the viewToPrint update with  printOp or other
> methods?
>
>
> 2.
> when we implement printing with cocoa,
> an NSPrintOperation object is created to control the print operation .
> NSPrintOperation * printOp = [NSPrintOperation
> printOperationWithView:viewToPrint printInfo:printInfo];
> [printOp setShowsPrintPanel:YES];
> [printOp runOperation];
>
> I got a native printing dialog, So how can I cancel this programtically?
> Is it possiable?
>
>
> Thanks & Best Regards!
>
> Lei Debin
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: how to update the view of NSPrintOperation ?
      • From: Rimas <email@hidden>
References: 
 >how to update the view of NSPrintOperation ? (From: "debin lei" <email@hidden>)

  • Prev by Date: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Next by Date: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Previous by thread: Re: how to update the view of NSPrintOperation ?
  • Next by thread: Re: how to update the view of NSPrintOperation ?
  • Index(es):
    • Date
    • Thread