[Q] CopyWithZone:error
[Q] CopyWithZone:error
- Subject: [Q] CopyWithZone:error
- From: Mark de Jong <email@hidden>
- Date: Fri, 30 Aug 2002 12:06:06 -0700
Hi!
I'm hoping someone can help point me in the right direction as to how
to debug the following.
I changed something in my code, not sure what <sheepish grin>, but now
I'm getting the following runtime errors:
*** -[MyObject copyWithZone:]: selector not recognized
An uncaught exception was raised
*** -[MyObject copyWithZone:]: selector not recognized
NSExceptionHandler has recorded the following exception:
NSInvalidArgumentException -- *** -[MyObject copyWithZone:]: selector
not recognized
Stack trace: 0x9084492c 0x9335b71c 0x9335bad4 0x9335bc5c
0x9335bc5c 0x9335bc5c 0x9335bc5c 0x9335bc5c 0x9335bc5c 0x9335bc5c
0x931a359c 0x93321a14 0x9335c314 0x9335cef8 0x9336a188 0x933728a0
0x931b97bc 0x93237fc4 0x93237c7c 0x93237de8 0x932377f4 0x930d253c
0x0000343c 0x000031c0 0x00003040
MyObject has never conformed to either <NSCopying> or
<NSMutableCopying> and it was working fine earlier. I'm using
subclasses of NSOutlineViews.
What I need are some clues as to how to debug this. When I step through
it, the stack trace includes:
0 -[NSException raise]
1 +[NSException raise:format:]
2 -[NSObject(NSForwardInvocation) forward::]
3 _objc_msgForward
4 -[NSCell _setContents]
5 -[NSCell setObjectValue:]
6 -[NSActionCell setObjectValue:]
7 -[NSTableView drawRow:clipRect:]
8 -[NSOutlineView drawRow:clipRect:]
9 -[NSTableView drawRect:]
10 -[NSView _drawRect:clip:]
11 -[NSView _recursiveDisplayAlldirtyWithLockFocus:visRect:]
.
.
.
How do I determine what it was trying to do with MyObject when it
failed? All I see is the above-mentioned error and this stack trace.
I'm not asking you debug my code, but to give me ideas as to how to go
about figuring out what's happening.
Thanks in advance,
-- Mark
_______________________________________________
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.