• 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: NSWindow resizing hack?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow resizing hack?


  • Subject: Re: NSWindow resizing hack?
  • From: j o a r <email@hidden>
  • Date: Sun, 8 Jun 2003 10:41:47 +0200

If it's slow or not depends mostly on what you're doing in the window when the window is resized. Resizing a window with nothing in it should be smooth on your machine?

If you have custom views that does expensive drawing you can use the NSView method "inLiveResize" to select what to draw depending on if you're resizing or not.

If you just have a lot of standard views that makes things slow, perhaps you can either turn off subview autoresizing temporarily for the window content view ("setAutoresizesSubviews:"), or remove the whole view hierarchy from the window while it is being resized, and then resize and reinsert it when the resize is done? Both options would be a tad bit ugly though.

j o a r

On Sunday, Jun 8, 2003, at 08:56 Europe/Stockholm, Steve Gehrman wrote:

Has anyone created an NSWindow hack that gets rid of the live resizing and uses a resizing rectangle instead?
_______________________________________________
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: NSWindow resizing hack?
      • From: Wade Tregaskis <email@hidden>
    • Re: NSWindow resizing hack?
      • From: Wade Tregaskis <email@hidden>
References: 
 >NSWindow resizing hack? (From: Steve Gehrman <email@hidden>)

  • Prev by Date: SOLVED: HELP! NSUserDefaults crashing on me
  • Next by Date: Problem with docs for NSWorkspaceRecycleOperation?
  • Previous by thread: NSWindow resizing hack?
  • Next by thread: Re: NSWindow resizing hack?
  • Index(es):
    • Date
    • Thread