On or about 12/17/08 11:40 AM, thus spake "rajendran_pichaimur...@mcafee.com" <rajendran_pichaimur...@mcafee.com>:
> [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=mcafee....@lists.apple.com > [mailto:cocoa-dev-bounces+rajendran_pichaimurthy=mcafee....@lists.apple. > com] On Behalf Of Matt Neuburg > Sent: Thursday, December 18, 2008 1:00 AM > To: cocoa-dev@lists.apple.com > 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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com