Re: How to know if I'm outside a ScrollView?
Re: How to know if I'm outside a ScrollView?
- Subject: Re: How to know if I'm outside a ScrollView?
- From: Dominik Pich <email@hidden>
- Date: Sat, 16 Feb 2008 12:31:40 +0100
Dont know if I get you right but..
you can use [scrollview visibleRect] to see whats on screen
and scrollToRect/Point to modify scrollbar
so.
if after downKey is pressed
selectedItem.frame is not in scrollView.visibleRect
{
scrollView.scrollToRect: selectedItem.frame
}
:)
Where you could skip the check so just:
scrollView.scrollToRect: selectedItem.frame
Regards,
Dominik
On Feb 16, 2008, at 12:14 PM, Guillem Palou wrote:
Hi all,
I have a view embedded in a ScrollView. The thing is that I'm
operating in
that view with the keyboard (actually pressing the up and down arroy
keys)
so I would like the superview (the scrollview) to scroll when I get
off
bounds the visible rect. I've searched around the web but found
nothing.
Does anyone knows how to do it?
Many thanks to all,
Guillem
_______________________________________________
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
_______________________________________________
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