Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Dietrich Epp <email@hidden>
- Date: Mon, 17 Mar 2003 03:16:55 -0800
On Thursday, March 13, 2003, at 11:45 AM, Ulrik Sverdrup wrote:
Hello, my first question on this thread, and certainly a newbie one;
Can you lockFocus to a minimised window? I wonder because i have
managed to stop my app's crashing, but still it gives this message on
the console:
*** Assertion failure in -[DRFractalView lockFocus],
AppKit.subproj/NSView.m:2343
*** NSThread: ignoring exception 'NSInternalInconsistencyException'
(reason 'lockFocus sent to a view whose window is deferred and does not
yet have a corresponding platform window') that raised during delayed
perform of target 0x1a6d20 and selector 'drawingDidFinishNowDraw'
corresponding to code block:
- (id)drawingDidFinishNowDraw
{
[self lockFocus]; /// <<--- stopping here
Use lockFocusIfCanDraw instead. It returns a boolean which indicates
whether or not you can draw.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Ulrik Sverdrup <email@hidden>) |