[SOLVED] Re: printDocument: hangs on Lion?
[SOLVED] Re: printDocument: hangs on Lion?
- Subject: [SOLVED] Re: printDocument: hangs on Lion?
- From: Graham Cox <email@hidden>
- Date: Tue, 23 Aug 2011 13:24:03 +1000
On 23/08/2011, at 1:00 PM, Graham Cox wrote:
> - (void) printShowingPrintPanel:(BOOL) flag
Ok, I found the problem.
This method has been deprecated since 10.4. I've replaced it with -printOperationWithSettings:error: and all is well. Though deprecated, there seems to still be a compatibility code path that supports this within NSDocument, but that compatibility code path is not in itself compatible with the new document saving malarkey. So, it's Apple's bug, but perhaps not one they would care about at this stage.
What's a bit strange is that no deprecation warning came up for this method even though I'm targeting 10.6 using the 10.7 SDK.
--Graham_______________________________________________
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