Re: Drag and Drop weirdness? [Resolved]
Re: Drag and Drop weirdness? [Resolved]
- Subject: Re: Drag and Drop weirdness? [Resolved]
- From: Jerry LeVan <email@hidden>
- Date: Mon, 25 Nov 2002 20:43:03 -0500
Ok,
I figured it out... I have to flush the window after doing the drawing...
replaced:
draggingEntered method.
...
[self lockFocus];
NSRect theFrame = [self bounds];
[[NSColor keyboardFocusIndicatorColor] set];
NSBezierPath *thePath = [NSBezierPath bezierPathWithRect:theFrame];
[thePath setLineWidth:5];
[thePath stroke];
[self unLockFocus];
NSLog(@"Finished outline");
With
draggingEntered method.
...
[self lockFocus];
NSRect theFrame = [self bounds];
[[NSColor keyboardFocusIndicatorColor] set];
NSBezierPath *thePath = [NSBezierPath bezierPathWithRect:theFrame];
[thePath setLineWidth:5];
[thePath stroke];
[[NSApp mainWindow] flushWindow];
[self unLockFocus];
NSLog(@"Finished outline");
--Jerry
_______________________________________________
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.