Re: automatic table scrolling when nsarraycontroller selection changes
Re: automatic table scrolling when nsarraycontroller selection changes
- Subject: Re: automatic table scrolling when nsarraycontroller selection changes
- From: Matt Neuburg <email@hidden>
- Date: Wed, 17 Dec 2008 13:11:24 -0800
- Thread-topic: automatic table scrolling when nsarraycontroller selection changes
On or about 12/17/08 11:40 AM, thus spake
"email@hidden" <email@hidden>:
> [tableviewoutlet scrollRowToVisible:yourselectedrow] should solve your
> problem
Obviously, but that is exactly what I don't want to have to do. It is quite
wrong to have to target the view in response to a change in the model; this
is precisely what the controller is supposed to deal with automatically (and
on Tiger, it does).
> -----Original Message-----
> From:
> cocoa-dev-bounces+rajendran_pichaimurthy=email@hidden
> [mailto:cocoa-dev-bounces+rajendran_pichaimurthy=email@hidden.
> com] On Behalf Of Matt Neuburg
> Sent: Thursday, December 18, 2008 1:00 AM
> To: email@hidden
> Subject: automatic table scrolling when nsarraycontroller selection
> changes
>
> My app is very simple and involves an NSTableView of one column bound to
> an array controller. The app runs both on Tiger and Leopard. On Tiger,
> when my code changes the array controller selection (e.g. add: or
> setSelectionIndex:), the table scrolls so that the selection shows. On
> Leopard, it doesn't. Is there some new setting I can use to get the
> Tiger behavior to happen on Leopard? Thx - m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, http://tinyurl.com/2ouo3b
Take Control of Customizing Leopard, http://tinyurl.com/2t9629
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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