• 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: copyWithZone error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copyWithZone error


  • Subject: Re: copyWithZone error
  • From: Cathy Shive <email@hidden>
  • Date: Sat, 5 Apr 2008 10:52:17 +0200

Hi Nick,

When you return your item to the table column, I believe this is setting the cell's object value to this item. The object value of an NSCell needs to conform to the NSCopyingProtocol.
If you implement the method:


- (id)copyWithZone:(NSZone *)zone

in HDIR to return a copy of the object, you won't get this error anymore.

Best,
Cathy


On Apr 5, 2008, at 10:25 AM, Nick Rogers wrote:

Hi,
when i return the item for a tableColumn in NSOutlineView, the following error is there:


*** -[HDIR copyWithZone:]: selector not recognized [self = 0x39b670]

Here HDIR is the item that i return for a particular tableColumn of outline view.
HDIR also inherits from NSObject.


WIshes,
Nick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >copyWithZone error (From: Nick Rogers <email@hidden>)

  • Prev by Date: copyWithZone error
  • Next by Date: Re: core data - beyond the simple example
  • Previous by thread: copyWithZone error
  • Next by thread: NSOutlineView Problem
  • Index(es):
    • Date
    • Thread