Re: Making newly inserted row visible in NSTableView
Re: Making newly inserted row visible in NSTableView
- Subject: Re: Making newly inserted row visible in NSTableView
- From: Angelo Chen <email@hidden>
- Date: Wed, 17 May 2006 18:33:05 -0700 (PDT)
Hi,
maybe i did not make it clear, at any rate,
scrollRowToVisible is what i need, thanks.
--- Angelo Chen <email@hidden> wrote:
> Hi Nick,
>
> I tried a sample in the net, MailDemo, it has
> following code:
>
> Mailbox * newMailbox = [[Mailbox alloc] init];
> NSMutableArray * mailboxes = [self mailboxes];
>
> [mailboxes addObject: newMailbox];
>
> // reload table and select new item
>
> [mailboxTable reloadData];
> [mailboxTable selectRow: ([mailboxes count] -
> byExtendingSelection: NO];
>
> it is the same, when your new item is visible rows +
> 1, it displays the vertical scroll bar only without
> making the row visible.
>
> --- Nick Zitzmann <email@hidden> wrote:
>
> >
> > On May 17, 2006, at 6:43 PM, Angelo Chen wrote:
> >
> > > I did a reloaddata after every insert, it works
> > when
> > > the number of items is less than the visible
> rows,
> > > after that, no more, i'd like to force the newly
> > > inserted item to be the last visible row if
> > possible.
> >
> > Then something's probably wrong with your table
> view
> > data source.
> >
> > Nick Zitzmann
> > <http://www.chronosnet.com/>
> >
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden