CopyWithZone required ?
CopyWithZone required ?
- Subject: CopyWithZone required ?
- From: Lorenzo <email@hidden>
- Date: Wed, 07 Jan 2004 09:58:51 +0100
Hi,
on an iBook my application crashes just at launch and reports the following
error log. It says:
------------------------------------
[MYExitField copyWithZone:]: selector not recognized
------------------------------------
MYExitField is my subclass of NSTextField, and really I didn't subclassed
the method "copyWithZone" there. Should I subclass the method copyWithZone?
If yes, why did the problem never occurr on other machines?
I include here below the error log. Thank you.
Best Regards
--
Lorenzo
email: email@hidden
ERROR LOG:
------------------------------------
Command: MYApplication
PID: 771
Exception: EXC_BREAKPOINT (0x0006)
Code[0]: 0x00000001Code[1]: 0x97e5497c
Thread 0 Crashed:
#0 0x97e5497c in _NSRaiseError
#1 0x97e54804 in +[NSException raise:format:]
#2 0x97e00bbc in -[NSObject(NSForwardInvocation) forward::]
#3 0x9068c130 in _objc_msgForward
#4 0x97ea53a0 in -[NSNumberFormatter setAttributedStringForNotANumber:]
#5 0x97e3d438 in -[NSNumberFormatter initWithCoder:]
#6 0x97e20340 in _decodeObjectBinary
#7 0x97e284bc in _decodeObject
#8 0x930c9274 in -[NSCell initWithCoder:]
#9 0x930e0078 in -[NSActionCell initWithCoder:]
#10 0x9310daa4 in -[NSTextFieldCell initWithCoder:]
#11 0x97e20340 in _decodeObjectBinary
#12 0x97e284bc in _decodeObject
#13 0x930e6d78 in -[NSControl initWithCoder:]
#14 0x9310a480 in -[NSTextField initWithCoder:]
#15 0x97e20340 in _decodeObjectBinary
#16 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:]
#17 0x97e0c73c in -[NSArray initWithCoder:]
#18 0x97e20340 in _decodeObjectBinary
#19 0x97e284bc in _decodeObject
#20 0x930ad1a4 in -[NSView initWithCoder:]
#21 0x97e20340 in _decodeObjectBinary
#22 0x97e284bc in _decodeObject
#23 0x930e23a4 in -[NSResponder initWithCoder:]
#24 0x930ad120 in -[NSView initWithCoder:]
#25 0x930e6b68 in -[NSControl initWithCoder:]
#26 0x9313d664 in -[NSButton initWithCoder:]
#27 0x97e20340 in _decodeObjectBinary
#28 0x97e284bc in _decodeObject
#29 0x930fcdb0 in -[NSNibConnector initWithCoder:]
#30 0x9311c444 in -[NSNibControlConnector initWithCoder:]
#31 0x97e20340 in _decodeObjectBinary
#32 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:]
#33 0x97e0c73c in -[NSArray initWithCoder:]
#34 0x97e20340 in _decodeObjectBinary
#35 0x97e284bc in _decodeObject
#36 0x931491c4 in -[NSIBObjectData initWithCoder:]
#37 0x97e20340 in _decodeObjectBinary
#38 0x97e284bc in _decodeObject
#39 0x931b2c9c in loadNib
#40 0x930e9de0 in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#41 0x93149098 in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#42 0x93148e58 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#43 0x9315f65c in NSApplicationMain
#44 0x0000ac04 in main
#45 0x0000a808 in _start (crt.c:267)
#46 0x0000a67c in start
PPC Thread State:
srr0: 0x97e5497c srr1: 0x0002f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x97e54958 ctr: 0x90014960 mq: 0x00000000
r0: 0x00000000 r1: 0xbfffdd50 r2: 0x2400024b r3: 0x00000000
r4: 0x40000000 r5: 0x00000000 r6: 0xbfffda30 r7: 0x00000000
r8: 0x000ec010 r9: 0xa7df0294 r10: 0x0000000b r11: 0x001d76f0
r12: 0x2400024b r13: 0x00000000 r14: 0x00000000 r15: 0xa30990f8
r16: 0x00123540 r17: 0xa3099b00 r18: 0xa30990f8 r19: 0xa3099b00
r20: 0xa7defc80 r21: 0x000007b1 r22: 0x00000000 r23: 0x00f45ce0
r24: 0x00f390a0 r25: 0x906add24 r26: 0x00f474b0 r27: 0xa7df02ac
r28: 0x00f390a0 r29: 0x00f47510 r30: 0x00f21ea0 r31: 0x97e5489c
And From Console Log
004-01-06 00:11:32.662 MYApplication[769] *** -[MYExitField copyWithZone:]:
selector not recognized
2004-01-06 00:11:32.664 MYApplication[769] An uncaught exception was raised
2004-01-06 00:11:32.703 MYApplication[769] *** -[MYExitField
copyWithZone:]: selector not recognized
2004-01-06 00:11:32.704 MYApplication[769] *** Uncaught exception:
<NSInvalidArgumentException> *** -[MYExitField copyWithZone:]: selector not
recognized
_______________________________________________
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.