FROM : Jakob Olesen
DATE : Fri Jul 21 23:39:05 2006
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.
DATE : Fri Jul 21 23:39:05 2006
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.
| Related mails | Author | Date |
|---|---|---|
| Doug Knowles | Jul 21, 23:07 | |
| Jakob Olesen | Jul 21, 23:39 | |
| Doug Knowles | Jul 22, 19:15 |






Cocoa mail archive

