• 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
Getting accessoryView setting into runOperationModalForWindow.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting accessoryView setting into runOperationModalForWindow.


  • Subject: Getting accessoryView setting into runOperationModalForWindow.
  • From: Kevin Bracey <email@hidden>
  • Date: Sat, 8 Apr 2006 11:55:49 +1200

Hi Guys,

Another design question...

-(void)printClass:( NSPrintInfo *)thePrintInfo{
UWPrintView *holdPrintView; //*** this View does the print layout as in Aaron Hillegass Cocoa Programming for OSX

holdPrintView = [[UWPrintView alloc] initWithClass:myClass printInfo:thePrintInfo ];

NSPrintOperation *holdPrintOp = [NSPrintOperation printOperationWithView:holdPrintView printInfo:thePrintInfo];


[holdPrintOp setAccessoryView:printView]; //*** This is a View with some a checkbox and popup that effect the details on the report NOT CURRENTLY USED
[holdPrintOp setCanSpawnSeparateThread:YES];


[holdPrintOp runOperationModalForWindow:[self window] delegate:self didRunSelector:@selector( printOperationDidRun: success: contextInfo: ) contextInfo:NULL];
}
The printing all works, but I want to add some options set by the user in the print dialogue.
My printView shows up in the print panel and that works very well too.


But how on earth do I get the information from that printView AccessoryView into my UWPrintView holdPrintView?

I got tantalizingly close with - (void)beginDocument but getting the info from AccessoryView into the NSPrintInfo is also a mystery.

Cheers
Kevin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Getting NSData out of an NSImage
  • Next by Date: advice needed for NSArrayController's selection bindings
  • Previous by thread: Re: Getting NSData out of an NSImage
  • Next by thread: advice needed for NSArrayController's selection bindings
  • Index(es):
    • Date
    • Thread