• 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: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
      • From: "Doug Knowles" <email@hidden>
References: 
 >Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: ODBC
  • Next by Date: Re: ODBC
  • Previous by thread: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
  • Next by thread: Re: Exception in NSTreeController:removeObjectAtArrangedObjectIndexPath
  • Index(es):
    • Date
    • Thread