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 6951641
In Process

The Archive Base Latest Questions

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

According to Apple’s documentation , NSOutlineView requires each item in the view to be

  • 0

According to Apple’s documentation, NSOutlineView requires each item in the view to be unique, however, what if this doesn’t actually fit the business requirement? In particular, how do you display something like this

Item A
  -> Item B
      -> Item E
  -> Item C
Item D
  -> Item B
      -> Item E
  -> Item F

Note how Item B, as well as its children, appear in the tree multiple times. Of course, the application does checks to make sure no circular loop can happen so the tree is finite.

Would subclassing the NSOutlineView help? Or would a completely new view class need to be created?

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

    You could use NSIndexPath objects as the items in the outline view. For example, index path (0, 0) would refer to Item B of Item A, while index path (1, 0) would refer to Item B of Item D.

    You won’t be able to use Bindings; you’ll need to implement a data source.

    Your data source methods will need to get the relevant real model object from your model using the index path. I recommend making a method that does that and using that method from all of the data source methods.

    Also, you’ll need to correctly handle deleting objects: If you delete an object in the middle of the model array, you have to delete the index path at the end, not the one in the middle, and tell the view to reload all the items (index paths) in between.

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

Sidebar

Related Questions

According to Apple's documentation here , this should work in my code: @interface Menu
According to Apple's documentation on the View Controller Lifecycle I noticed the following regarding
According to Apple documentation and other documentation I have read about on disk encryption
I'm trying to use CGBitmapContextCreate . According to Apple's documentation the ApplicationServices framework is
According to Apple's documentation , in order to make phone call from my app,
According to this Apple page , I've read that when interacting with Cocoa on
According to Apple's documentation , @font-face is deprecated for use on the iPhone version
According to Apple's documentation , the recommended way of initializing an NSWindowController subclass is
According to apple documentation of NSFetchedResultsController : You use a fetched results controller to
According to Apple's ARC Documentation , there are a fairly significant number of changes

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.