• 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: [NSKeyValueArray removeObjectAtIndex:]: selector not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [NSKeyValueArray removeObjectAtIndex:]: selector not


  • Subject: RE: [NSKeyValueArray removeObjectAtIndex:]: selector not
  • From: Jesse Grosjean <email@hidden>
  • Date: Fri, 18 Mar 2005 11:31:07 -0500

I have a table view (copied from mmalcom's
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html) that
calls after delete is pressed

When I try to delete a record from the table view, I get the following error:

*** -[NSKeyValueArray removeObjectAtIndex:]: selector not recognized

I have a similar setup and am also seeing errors. I can also reproduce the problem in the original Bookmarks bindings example (http://homepage.mac.com/mmalc/CocoaExamples/controllers.html) by doing the following:


1. Open the MyDocument.nib
2. Add a new NSArrayController and bind it's contentArray to MyDocument's bookmarksArray (so now you should have two NSArrayControllers bound to the bookmarks array)


Now save, run the app, create some items, and start dragging, and deleting. Pretty soon you should see NSCFArray errors on the console.

Does anyone know if binding multiple NSArrayControllers to the same model property is bad in general, or is it a problem that's particular to the drag and drop code in the Bookmarks bindings example? My goal is to have two table views, each showing a filtered view on the same collection of model objects.

Thanks,
Jesse

_______________________________________________
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: Re: NSDrawerWindow - using it is okay?
  • Next by Date: Re: Reading .BMPs the hard way
  • Previous by thread: Re: Contextual Menu in NSTextField
  • Next by thread: Sweetwater Toolkit
  • Index(es):
    • Date
    • Thread