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

  • SEARCH
  • Home
  • 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 6953979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:32:49+00:00 2026-05-27T14:32:49+00:00

I have a custom <NSOutlineViewDataSource> , for which I would its NSOutlineView to update

  • 0

I have a custom <NSOutlineViewDataSource>, for which I would its NSOutlineView to update a selectionIndexPaths property. I can’t get bind:toObject:withKeyPath:options: to actually bind properly. Basically, I need my data source to know which item is selected.

When I bind to selectionIndexes (declared by NSTableView) or selectionIndexPaths (declared by NSOutlineView), which the documentation indicates I should be able to (unless for some reason that’s only available in IB), I get a runtime exception that the outline view isn’t “key value coding-compliant” for either of those keys.

When I bind to selectedRowIndexes (a fallback, since I would need to then take that information and reverse-engineer it to figure out which parent/child pair is selected), it updates the data source once, with the NSIndexSet in the data source frozen to its initial value. I don’t set it manually, either. Further, I can’t even bind selectedRowIndexes in the other direction, so the data source can update the outline view’s selection. I get the same “key value coding-compliant” exception on the outline view.

I have an @property defined in my data source class, with a backing ivar, and I’m binding it from a controller class with references to the data source and the outline view, after data has been loaded, in -awakeFromNib.

  • 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-27T14:32:50+00:00Added an answer on May 27, 2026 at 2:32 pm

    Rather than binding selectionIndexPaths, which acted unreliably, I instead used my outline view’s delegate to update the selection in the model on the -outlineViewSelectionIsChanging: and -outlineViewSelectionDidChange: notifications.

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

Sidebar

Related Questions

I have an NSOutlineView with a custom NSOutlineViewDataSource based on the parent-child relationship or
I have custom view in my application which can be scrolled by the user.
Can you have custom client-side javascript Validation for standard ASP.NET Web Form Validators? For
hi i would like to create a custom calendar, this calendar will have custom
I have custom code inside of a SSRS report that needs to get the
I have custom cell which contains number of rows in it.i want to write
I have custom page and id of list item. How can i show sharepoint
I have custom SPlist with some fields that I'd like to bind to a
I have custom-made wizard system which so far has been quite suitable. For most
I have custom field with volume slider (just color line), I want to update

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.