• 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: Stopping a NSView from drawing in -drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping a NSView from drawing in -drawRect


  • Subject: Re: Stopping a NSView from drawing in -drawRect
  • From: Phillip Hutchings <email@hidden>
  • Date: Fri, 6 Feb 2004 23:42:05 +1300

Ah, I knew it'd be something like that. I keep forgetting Objective-C AppKit has standard C functions ;)

On 6/02/2004, at 9:27 PM, Louis C. Sacha wrote:

Hello...

There is a function in the AppKit that might work, it is NSDisableScreenUpdates (and its opposite NSEnableScreenUpdates). It should stop all changes in the windows for your app from being drawn on the screen until you call the enable version.

If you look in the AppKit documentation, in the functions section, it should be listed under the "Graphics" heading.

Hope that helps,

--
Phillip Hutchings
email@hidden
http://www.sitharus.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.

References: 
 >Stopping a NSView from drawing in -drawRect (From: Phillip Hutchings <email@hidden>)
 >Re: Stopping a NSView from drawing in -drawRect (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: what method is called when window is re-loaded?
  • Next by Date: Re: Stopping a NSView from drawing in -drawRect
  • Previous by thread: Re: Stopping a NSView from drawing in -drawRect
  • Next by thread: Re: Stopping a NSView from drawing in -drawRect
  • Index(es):
    • Date
    • Thread