Re: [SOLVED] Re: printDocument: hangs on Lion?
Re: [SOLVED] Re: printDocument: hangs on Lion?
- Subject: Re: [SOLVED] Re: printDocument: hangs on Lion?
- From: Kevin Perry <email@hidden>
- Date: Tue, 23 Aug 2011 08:27:14 -0700
Whoops, found this too late. See my other reply about the actual cause of the deadlock though.
Deprecation warnings are unfortunately only generated when calling a method, not when they are overridden.
-KP
On Aug 22, 2011, at 8:24 PM, Graham Cox wrote:
>
> 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