• 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
Unexpected copyWithZone invoked when adding object to NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unexpected copyWithZone invoked when adding object to NSArrayController


  • Subject: Unexpected copyWithZone invoked when adding object to NSArrayController
  • From: Rick Hoge <email@hidden>
  • Date: Wed, 14 Jul 2004 21:10:28 -0400

I have some code in which I add objects to an NSArrayController, and have been experiencing some strange results.

After adding an object to the controller, as in [myArrayController addObject:[[[NSObject alloc] init] autorelease]], I get the following message if a table column is bound to the array controller:

*** -[NSObject copyWithZone:]: selector not recognized

I also get the same behaviour when I add a custom NSObject subclass to the controller - I was just trying it with NSObject to make sure my own class was not at fault. For some reason, there is no problem if I add an NSString. If I remove the binding from the UI the problem also goes away.

I've looked over the attributes of the controller and the bindings settings dozens of times now, and can't figure out why copyWithZone would be invoked. Anyone have any idea what might be causing this?

Thanks!

Rick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: [options] Cocoa GUI Client to web based SQL database
  • Next by Date: Re: Preventing window selection
  • Previous by thread: Re: Low level system status?
  • Next by thread: Experimenting with Views (previously Noob playing with Windows)
  • Index(es):
    • Date
    • Thread