NSPrintSavePath not working correctly?
NSPrintSavePath not working correctly?
- Subject: NSPrintSavePath not working correctly?
- From: Brian Postow <email@hidden>
- Date: Tue, 6 Apr 2010 14:32:57 -0400
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 (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