• 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: Tree Data Structure in objc-C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree Data Structure in objc-C?


  • Subject: Re: Tree Data Structure in objc-C?
  • From: Diederik Hoogenboom <email@hidden>
  • Date: Thu, 1 Dec 2005 23:07:43 +0100

Frank,

What helped me as a workaround before I found out about the count method (which apparently doesn't work in your case) was to reset the content of the NSTreeController:

id oldContent = [treeController content];

[treeController setContent:nil];

.. undo in Core Data ...

[treeController setContent:oldContent];
[treeController rearrangeObjects];


Regards,

Diederik
fdddddd

On 30-nov-2005, at 15:29, Frank Illenberger wrote:

I am still having problems even though I am using the additional count key path.
This happens if you implement an indentation method on your tree structure (outline view). If you then indent a node and use undo (core data), the same wrong index exception occurs.
I have not been able to find a complete way to work around this problem yet.

Frank


The bug is not that serious though. You can solve this by
implementing a count method for the count key path of the
NSTreeController's attributes.

Regards,
Diederik

On 28-nov-2005, at 17:13, Hamish Allan wrote:



On Sun, 27 Nov 2005 21:12:28 -0800, Scott Stevenson
<email@hidden> wrote:


Use Core Data and NSTreeController. This is what they're designed
for.


10.4.3 introduced a bad regression bug in NSTreeController. I
wouldn't recommend using it until that's fixed, hopefully soon in
10.4.4!

Best wishes,
Hamish


_______________________________________________
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
  • Prev by Date: CocoaInCarbon errors
  • Next by Date: Re: NSComboBox Coredata bindings
  • Previous by thread: CocoaInCarbon errors
  • Next by thread: Re: Tree Data Structure in objc-C?
  • Index(es):
    • Date
    • Thread