Updating print panel preview
Updating print panel preview
- Subject: Updating print panel preview
- From: chaitanya pandit <email@hidden>
- Date: Sat, 12 Jul 2008 15:51:44 -0400
I have a document based application in which i need to print about
50-70 pages of NSTextView, the printing is working fine, but in the
small print preview shown in the print panel, it doesn't show all the
pages.
Like if there are say 50 pages to be printed, it'll show only abt 20
pages in the print panel preview, but when i print, it prints all the
50 pages.
I think what happens is that my textView is still not completed with
laying the text by the time the print panel pops down, so is there any
way i can update the view in the print panel when i'm done with laying
the text in the text view?
I tried using <NSPrintPanelAccessorizing> and calling a method which
is registered with keyPathsForValuesAffectingPreview when i'm done
with text layout.
But if i have attachments in the text, it crashes and raises an
exception saying:
2008-07-12 15:38:42.115 testApp[5322:10b] Unlocking Focus on wrong
view (<NSPrintThumbnailView: 0x152f3140>), expected <NSImageCacheView:
0x17140770>
I'd appreciate any help.
Thanks
_______________________________________________
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