• 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: repost: Drawing from CFM plugin while mouse dragging - How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Drawing from CFM plugin while mouse dragging - How? (From: John Pattenden <email@hidden>)

  • Prev by Date: NSTextField and pasting troubles (Newbie)
  • Next by Date: Test Call for an Alarm Clock
  • Previous by thread: Drawing from CFM plugin while mouse dragging - How?
  • Next by thread: NSTextStorage vs HTML
  • Index(es):
    • Date
    • Thread