• 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: Where do these come from...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where do these come from...


  • Subject: Re: Where do these come from...
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 15 Aug 2012 23:10:56 -0700

On Aug 15, 2012, at 20:39 , Charlie Dickman <email@hidden> wrote:

> I DO NOT call drawRect directly. I DO  call [self setNeedsDisplay: YES] to keep things going. All drawing is done from inside drawRect which has been invoked through the use of [self setNeedsDisplay: YES],

That's good. Next step is to eliminate your voodoo code:

> 	while (![self lockFocusIfCanDraw]) RELQ(.1);
> 	…
> 	[self unlockFocus];
> 	[[self window] flushWindow];

and look for the actual problem ("the images never show"). You shouldn't assume that the problem is with the 2 image 'drawInRect:…' messages. It could well be that the earlier code in 'drawRect:' has done something wrong.

My guess is that an earlier part of 'drawRect:' failed to save/restore the graphics context around some drawing that changed then invalidated the current context.


_______________________________________________

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


References: 
 >Where do these come from... (From: Charlie Dickman <email@hidden>)
 >Re: Where do these come from... (From: "Stephen J. Butler" <email@hidden>)
 >Re: Where do these come from... (From: Charlie Dickman <email@hidden>)
 >Re: Where do these come from... (From: "Stephen J. Butler" <email@hidden>)
 >Re: Where do these come from... (From: Charlie Dickman <email@hidden>)

  • Prev by Date: Re: NSSpeechSynthesizer / DarkWake interaction
  • Next by Date: Re: Window Title drop-down menu in 10.8
  • Previous by thread: Re: Where do these come from...
  • Next by thread: Re: Where do these come from...
  • Index(es):
    • Date
    • Thread