[tableviewoutlet scrollRowToVisible:yourselectedrow] should solve your problem
-----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/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript: the Definitive Guide - Second Edition! <http://www.amazon.com/gp/product/0596102119> _______________________________________________ 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/rajendran_pichaimurthy% 40mcafee.com This email sent to rajendran_pichaimur...@mcafee.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