I'm trying to set up a print dialog, so that if the user tries to save to PDF, 
it gets a reasonable filename.

I currently have:

        NSPrintInfo* pi = [NSPrintInfo sharedPrintInfo];
        NSMutableDictionary *dict = [pi dictionary];
        [dict setObject: name forKey: NSPrintSavePath];
        [dict setObject: name forKey: @"NSPrintSavePath"];
        NSPrintOperation *op = [pdfDoc getPrintOperationForPrintInfo:pi
                                                                           
autoRotate:YES];
        [op runOperation];

the NSPrintSave field in the dictionary IS correct, but the textbox keeps 
coming up with ".pdf.pdf" 

any thoughts on where that's coming from?

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to