Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6133289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:12:31+00:00 2026-05-23T17:12:31+00:00

I have an NSTableView that I add objects to (through core data). I came

  • 0

I have an NSTableView that I add objects to (through core data). I came across this in my searches:

NSIndexSet *indexSet = [NSIndexSet indexSetWithIndex:1];
[tableView selectRowIndexes:indexSet byExtendingSelection:NO];

which works, but the problem is when I replace 1 with [myarray count] it doesn’t select the last row.

My second question is when I have an IBAction hooked up to the table view to automatically call it when a row is selected, what is the sender? EDIT: Solved this one thanks to a good old NSLog

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:12:32+00:00Added an answer on May 23, 2026 at 5:12 pm

    For the first question indexes are normally zero based. If I have

    | row 0 | row 1 | row 2  |   row 3    |
    | item 1| item 2| item 3 | item 4 |
    

    The count will be 4 but the last index will be 3.

    I’m not sure on the second answer I only know iOS at the moment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an NSTableView that contains a few columns that are populated with data.
I have an NSTableView that is done using the typical IB and data bindings.
I have two NSTableViews populated with Core Data that are linked using bindings. When
I have a NSTableView that is displaying an array of objects I have. For
I have an NSTableView that is populating with my data source. My data model
I have an NSTableView that gets reloaded. While new data is loading, I want
I have an NSTableView with two columns and a data source that fills it
Context: I have an NSArrayController tied to Core Data that supplies rows for an
Current Situation: Direct Binding I have an NSTableView which displays the data that comes
I have a NSTableView that contains a NSButtonCell in one of the columns. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.