FROM : Hank Heijink
DATE : Wed Feb 27 22:41:33 2008
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
hank.<email_removed>
DATE : Wed Feb 27 22:41:33 2008
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
hank.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Hank Heijink | Feb 27, 20:40 | |
| Hank Heijink | Feb 27, 22:41 | |
| Kyle Sluder | Feb 28, 00:54 | |
| j o a r | Feb 28, 01:02 | |
| Chris Suter | Feb 28, 02:30 | |
| Hamish Allan | Feb 28, 17:45 | |
| Hank Heijink | Feb 28, 18:45 |






Cocoa mail archive

