Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?
Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?
- Subject: Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?
- From: Alastair Houghton <email@hidden>
- Date: Mon, 25 Jun 2007 18:12:55 +0100
On 24 Jun 2007, at 12:48, Georg Filios wrote:
IBOutlet NSScrollView * scrollView;
(void) doScrolling
{
BOOL success =[[scrollView contentView] scrollRectToVisible;
// ==> success = NO (in certain cases)
}
When are you calling this method? It could be that you're calling it
at a time that doesn't make sense (e.g. during an existing scroll-to-
visible request).
Another thing to check would be what the rectangle you're passing
looks like; stick something like
NSLog (@"(%f, %f) %f x %f", rect.origin.x, rect.origin.y,
rect.size.width, rect.size.height);
in your code and see what it says. Maybe you're passing a funny
rectangle.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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