• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making newly inserted row visible in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:03:38 -0700 (PDT)

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

  • Follow-Ups:
    • Re: Making newly inserted row visible in NSTableView
      • From: Angelo Chen <email@hidden>
References: 
 >Re: Making newly inserted row visible in NSTableView (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: question regarding getting data from NSComoBox
  • Next by Date: Re: Should I retain/release IBOutlet?
  • Previous by thread: Re: Making newly inserted row visible in NSTableView
  • Next by thread: Re: Making newly inserted row visible in NSTableView
  • Index(es):
    • Date
    • Thread