Re: ScrollView redraw needed [solved]
Re: ScrollView redraw needed [solved]
- Subject: Re: ScrollView redraw needed [solved]
- From: Troy Stephens <email@hidden>
- Date: Tue, 4 Oct 2005 09:53:36 -0700
For a still more efficient solution, you can instead disable copy-on-
scroll behavior in the ScrollView's ClipView:
[[scrollViewObject contentView] setCopiesOnScroll:NO];
This eliminates the bitmap-copy of view content that you're going to
overdraw anyway, and instructs the ClipView to instead ask the
document view to draw everything in the ClipView's bounds on each
scroll step.
--
Troy Stephens
Cocoa Frameworks
Apple Computer, Inc.
On Oct 3, 2005, at 2:39 AM, Jerry Brace wrote:
Thanks! - That solved the problem.
Jerry
On 3-Oct-05, at 6:13 AM, Mradul Mandhanya wrote:
Not very clear what u want to do but I assume that u want to
redraw the
content inside the scroll view ie its document view.
If yes try this
[[scrollViewObject documentView] setNeedsDisplay:TRUE];
Regards,
Mradul Mandhanya
If you want something you've never had, Do something you've never
done....!!!!
-----Original Message-----
From: cocoa-dev-bounces+mmandhanya=email@hidden
[mailto:cocoa-dev-bounces+mmandhanya=email@hidden] On
Behalf Of Jerry Brace
Sent: Sunday, October 02, 2005 10:10 PM
To: Cocoa Dev
Subject: ScrollView redraw needed
I have some code that dynamically changes the positions of some
controls in a NSScrollView. The problem is that it doesn't redraw
when I do this (you can still see the control in the old and new
positions). If I scroll down past the controls and scroll back up it
forces the app to redraw the contents correctly.
I'd like to know how to call a redraw/research after the fields are
re-positioned.
Many thanks,
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden