Re: NSWindow subclass VERY slow to resize
Re: NSWindow subclass VERY slow to resize
- Subject: Re: NSWindow subclass VERY slow to resize
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 26 Mar 2010 18:17:35 -0000
Have a look at -[NSBezierPath setFlatness:]. A larger value
might be faster (but might also look ugly). There's also a bit
of code floating around in the web-o-sphere that might be faster
than what you are using:
http://lists.apple.com/archives/Cocoa-dev/2006/Mar/msg01940.html
Paul Sanders
----- Original Message -----
From: "Daniel Weber" <email@hidden>
To: <email@hidden>
Sent: Friday, March 26, 2010 6:08 PM
Subject: Re: NSWindow subclass VERY slow to resize
It appears that drawing the rounded rect vs. a regular rect is
slow.
Also, I am filling using a pattern image vs. a solid color.
These
things add up to a pretty slow redraw at large sizes. I can set
the
max size to something relative low, but does anyone have any
other
suggestions?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden