Re: NSScrollView Problems
Re: NSScrollView Problems
- Subject: Re: NSScrollView Problems
- From: Graham Cox <email@hidden>
- Date: Sun, 03 Feb 2013 16:47:08 +1100
On 03/02/2013, at 3:56 PM, Patrick Cusack <email@hidden> wrote:
> I call the following in my windowControllerDidLoadNib:
>
> [[scrollView contentView] setCopiesOnScroll:NO];
Why? Copy On Scroll is usually a good thing. If it's set to NO you have to redraw the entire content every time, which is rarely performant or necessary. It's not clear whether it's a factor in your problem though, but try setting it to YES.
> Should I be calling [ setNeedsDisplay:YES] on my CustomView or on my NSScrollView?
On your view.
--Graham
_______________________________________________
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