discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix for NSTableView.m


From: Andreas Höschler
Subject: Re: Fix for NSTableView.m
Date: Fri, 6 Jan 2006 20:53:35 +0100

Hello all,

- (void) _postSelectionDidChangeNotification
{
   [self scrollRowToVisible:[_selectedRows firstIndex]];
   [nc postNotificationName:
        NSTableViewSelectionDidChangeNotification
      object: self];
}


Sorry, it must be

- (void) _postSelectionDidChangeNotification
{
   int index = [_selectedRows firstIndex];
if (index != NSNotFound) [self scrollRowToVisible:[_selectedRows firstIndex]];
   [nc postNotificationName:
        NSTableViewSelectionDidChangeNotification
      object: self];
}

Regards,

  Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]