Re: Auto-scrolling when firstResponder changes...
Re: Auto-scrolling when firstResponder changes...
- Subject: Re: Auto-scrolling when firstResponder changes...
- From: Eric MORAND <email@hidden>
- Date: Tue, 26 Jun 2007 21:49:20 +0200
Thanks for the tip !
I think this is a bit too heavy (windowWillReturnFieldEditor is
called sooooooo often) but that gave me the idea to subclass NSWindow
and add your code to makeFirstResponder:
It works flawlessly...
Thanks again,
Eric.
Le 26 juin 07 à 21:25, Gregory Weston a écrit :
- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)
anObject
{
if([anObject enclosingScrollView])
{
(void)[anObject scrollRectToVisible:[anObject bounds]];
}
return nil;
}
_______________________________________________
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