Re: NSWindow resizing hack?
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.