Re: NSPrintInfo, setting filename for print to PDF?
Re: NSPrintInfo, setting filename for print to PDF?
- Subject: Re: NSPrintInfo, setting filename for print to PDF?
- From: Chaitanya Pandit <email@hidden>
- Date: Thu, 8 Apr 2010 15:36:31 +0530
Hi,
You should set the name in the NSPrintOperation object, look at the "setJobTitle:" method of NSPrintOperation
Thanks,
Chaitanya Pandit
On Apr 8, 2010, at 2:56 AM, Brian Postow wrote:
> Ok, I'm still working on this from my other question. I can see the printinfo before I run the operation, and it looks correct. NSSavePath is set to the path I want, as is the jobsavingURL. When, but when I actually DO the print to PDF, the filename, the filename becomes .pdf.pdf.
>
> When I cancel out of the print, the printinfo says the value is "" If I actually type something in and SAVE, then nsSavePath has the path to the save file.
>
> I can't find any sample code that tries to do this, and when I google search, I get my own questions. Obviously, I'm searching for the wrong thing (cocoa "save to pdf" nsprintinfo; for example). Can someone give me a pointer of a better search term, even if you don't know the answer?
>
> thanks.
>
>
> 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
_______________________________________________
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