• 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
Display vs. LockFocus and draw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display vs. LockFocus and draw


  • Subject: Display vs. LockFocus and draw
  • From: Marco Binder <email@hidden>
  • Date: Mon, 29 Jul 2002 23:17:11 +0200

Hello everyone,

Another question... And let me apologize right away for 1) being kind of a
newbie and 2) preferring Java...

My question: what does NSView.display() do more than

NSView.lockFocus();
NSView.draw();
NSView.unlockFocus();

?

The problem is, that when I want to do drawing while dragging inside a view,
nothing will appear on the screen unless I send a display() message (or it9s
even enough to give a NSView.displayWhenNeeded() ).

Can I invoke myself whatever display() invokes in order to update the
screen?

Thanks for help,

marco
_______________________________________________
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.

  • Follow-Ups:
    • Re: Display vs. LockFocus and draw
      • From: Nathan Day <email@hidden>
  • Prev by Date: More efficient solution than DO?
  • Next by Date: Re: detect control key
  • Previous by thread: Re: More efficient solution than DO?
  • Next by thread: Re: Display vs. LockFocus and draw
  • Index(es):
    • Date
    • Thread