lockFocus mystery in screensaver
lockFocus mystery in screensaver
- Subject: lockFocus mystery in screensaver
- From: Gabriel Zachmann <email@hidden>
- Date: Tue, 05 Apr 2011 18:35:27 +0800
One of the users of my screensaver has reported a problem and sent in the system.log.
In it, I find this line:
System Preferences[324]: *** Assertion failure in -[ArtSaverView lockFocus], /SourceCache/AppKit/AppKit-949.54/AppKit.subproj/NSView.m:4755
It appears after the following steps that I do in my screensaver:
1. stopAnimation, so that -animateOneFrame does not get called
2. do something that takes a bit longer, and that changes some internal data
3. startAnimation.
I have read the documentation about NSView::lockFocus, but I am no wiser.
Does anyone have an idea, what might be causing this error message?
Do I miss something?
At the bottom, you can find the relevant code from stop-/startAnimation methods.
Any insights and suggestions will be highly appreciated.
Best regards,
Gabriel.
PS:
- (void) stopAnimation
{
asl_log( ...);
[someInfo writeToFile: path atomically: YES];
[super stopAnimation];
}
- (void) startAnimation
{
asl_log( ...);
[super startAnimation];
}
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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