• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: String Problem
  • Next by Date: Re: How To: Date/Time Field/Steppers
  • Previous by thread: (no subject)
  • Next by thread: Re: Newbie question
  • Index(es):
    • Date
    • Thread