• 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
NSPrintSavePath not working correctly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSPrintSavePath not working correctly?
      • From: Brian Postow <email@hidden>
  • Prev by Date: Re: [iPhone]Is it possible for apps to use the file sharing directory?
  • Next by Date: Trying to get data from the AB
  • Previous by thread: NSPopUpButton items disabled
  • Next by thread: Re: NSPrintSavePath not working correctly?
  • Index(es):
    • Date
    • Thread