Re: copyWithZone error
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