Re: repost: Drawing from CFM plugin while mouse dragging - How?
Re: repost: Drawing from CFM plugin while mouse dragging - How?
- Subject: Re: repost: Drawing from CFM plugin while mouse dragging - How?
- From: "Erik M. Buck" <email@hidden>
- Date: Tue, 21 May 2002 14:15:28 -0500
Don't call drawRect: directly. Call -displayRect: The reasons are well
documented including in the - (void)flushWindow documentation.
Try - (void)flushGraphics and/or flushWindow
- (void)flushWindow
Flushes the receiver's off-screen buffer to the screen if the receiver is
buffered and flushing is enabled. Does nothing for other display devices,
such as a printer. This method is automatically invoked by NSWindow's and
NSView's display and displayIfNeeded methods.
See Also: - flushWindowIfNeeded, - disableFlushWindow, - enableFlushWindow
I would not be surprised if some nasty interaction between NSQuickDrawView
and the rest of Cocoa is happening. I have never used NSQuickDrawView.
----- Original Message -----
From: "John Pattenden" <email@hidden>
To: <email@hidden>
Sent: Tuesday, May 21, 2002 1:21 PM
Subject: repost: Drawing from CFM plugin while mouse dragging - How?
>
if any one has any tips on what I should try, please let me know...
>
>
I need to use a CFM plugin in my Cocoa app that draws into an
>
NSQuickDrawView. I can make it all work except for "Live" updating of
>
mouse drags - in that case I click on something in the
>
NSQuickDrawView drag it then release the mouse and then it redraws it
>
- there is no drawing while I'm dragging. i.e no live updating.
>
>
I've tried calling drawRect from mouseDragged and tried changing the
>
window Buffering neither of which helps. All other drawing works fine
>
- just drawing on mouse drags is a problem - It seems like there is
>
something in the Cocoa Drawing environment that I need to set up, but
>
tunneling through the documentation hasn't helped me so far -
>
>
help!
>
>
>
John Pattenden
>
ScreenTime Media
>
>
Screen Saver creation tools for Flash, Director, PowerPoint and QuickTime
>
http://www.screentime.com
>
_______________________________________________
>
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.
_______________________________________________
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.