• 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: Why is copyWithZone: being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is copyWithZone: being called?


  • Subject: Re: Why is copyWithZone: being called?
  • From: Jiva DeVoe <email@hidden>
  • Date: Wed, 23 Feb 2005 14:48:31 -0700

I have seen this when I used the script menu accessor generator to make my accessors. They use [newObject copy]; to get the new object. Just change it to a [newObject retain] which is probably more efficient anyway.


On Feb 21, 2005, at 11:20 AM, T Reaves wrote:

	Hello all.

I am working on an application utilizing bindings. I have a UI page bound to a domain object via an NSArrayController - the domain object has only NS* data members - , and that works well. I then added a second domain object, and the first (bound) object no has the second domain object as a data member.

So I added the new keys to the NSArrayController using the dot notation (attribute.attribute). I then bound the new widgets in the UI to the new keys of the controller. Now, when I start the app, I get the error:
*** -[Range copyWithZone:]: selector not recognized


I know how to implement copyWithZone:. What I do not understand is why I must. Why is it that when a domain object contains only NS* data members, bindings do not call copyWithZone:, but when a domain object contains other domain object data members copyWithZone: is called?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


--
Jiva DeVoe
http://www.devoesquared.com
PowerCard - Intuitive Project Management Software for Mac OS X

_______________________________________________
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


References: 
 >Why is copyWithZone: being called? (From: T Reaves <email@hidden>)

  • Prev by Date: Re: IB crash with custom binding
  • Next by Date: Re: Cropped Italic Letters
  • Previous by thread: Re: Why is copyWithZone: being called?
  • Next by thread: encodeArrayOfObjCType: (with key?)
  • Index(es):
    • Date
    • Thread