• 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: Drawing from secondary thread erases resize corner in window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing from secondary thread erases resize corner in window?


  • Subject: Re: Drawing from secondary thread erases resize corner in window?
  • From: Hank Heijink <email@hidden>
  • Date: Wed, 27 Feb 2008 16:41:33 -0500


On Feb 27, 2008, at 2:40 PM, Hank Heijink wrote:

- (void)updateView
{
	if (useSecondaryThread) {
		if ([view lockFocusIfCanDraw]) {
			[view drawFromSecondaryThread:view.bounds];
			[[view window] flushWindow];
			[view unlockFocus];
		}
	} else {
		[view setNeedsDisplay:YES];
	}
}

I had my test app use a boolean to switch between drawing on the main thread and drawing on the secondary one. Meant to delete that part. Sorry. In this case, useSecondaryThread is obviously YES.


Hank

Hank Heijink
email@hidden



_______________________________________________

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: 
 >Drawing from secondary thread erases resize corner in window? (From: Hank Heijink <email@hidden>)

  • Prev by Date: Re: Charting API? (Chris Schmitt)
  • Next by Date: Re: Event Logging
  • Previous by thread: Drawing from secondary thread erases resize corner in window?
  • Next by thread: Re: Drawing from secondary thread erases resize corner in window?
  • Index(es):
    • Date
    • Thread