Re: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
Re: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
- Subject: Re: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
- From: Jakob Olesen <email@hidden>
- Date: Fri, 21 Jul 2006 23:39:05 +0200
On 21/07/2006, at 23.07, Doug Knowles wrote:
Hi,
I have (surprise) an NSOutlineView bound to an NSTreeController, and
I'm trying to implement a command to remove a leaf node from the
outline. When I invoke NSTreeController's
removeObjectAtArrangedObjectIndexPath on the only leaf node of a
parent, I get an exception:
2006-07-20 09:25:56.590 SLNavigator[4545] *** -[NSCFSet
getObjects:range:]: selector not recognized [self = 0xbe0ff40]
NSTreeController is broken in entity mode, read more at:
http://www.cocoadev.com/index.pl?NSTreeControllerBugOrDeveloperError
It sounds like you are using class mode, though. Are you sure it
supports NSSets in class mode? I am not. Try changing your children
key path to return an array instead of an NSSet.
_______________________________________________
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