Re: copyWithZone error
Re: copyWithZone error
- Subject: Re: copyWithZone error
- From: Lorenzo <email@hidden>
- Date: Sat, 27 Sep 2003 09:07:16 +0200
Hi,
thank you, but no, I never call copy nor copyWith zone.
I suppose it's a nib call.
So, should I override the copyWithZone method?
If yes, please how should I override it?
I mean, what should I write within this method?
Best Regards
--
Lorenzo
email: email@hidden
>
From: "Alastair J.Houghton" <email@hidden>
>
Date: Fri, 26 Sep 2003 23:06:26 +0100
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: copyWithZone error
>
>
On Friday, September 26, 2003, at 10:39 pm, Lorenzo wrote:
>
>
> Hi,
>
> in some computer when someone launches my Cocoa app, he gets
>
>
>
> ------------------
>
> 2003-09-25 17:18:06.166 myApp[611] *** -[SUBTextField copyWithZone:]:
>
> selector not recognized
>
> 2003-09-25 17:18:06.171 myApp[611] An uncaught exception was raised
>
> 2003-09-25 17:18:06.172 myApp[611] *** -[SUBTextField copyWithZone:]:
>
> selector not recognized
>
> 2003-09-25 17:18:06.172 myApp[611] *** Uncaught exception:
>
> <NSInvalidArgumentException> *** -[SUBTextField copyWithZone:]:
>
> selector not
>
> recognized
>
> ------------------
>
>
>
> and the application quits immediately. It won't launch.
>
> SUBTextField is a subclass of NSTextField. And I didn't override the
>
> copyWithZone method. Should I override it?
>
>
According to the documentation, NSTextField doesn't conform to
>
NSCopying (i.e. it doesn't support -copyWithZone:). Your application
>
is trying to copy it for some reason (possibly with -copy, rather than
>
-copyWithZone:), which won't work; I would start by checking your code
>
to make sure that you never accidentally attempt to copy an
>
NSTextField, even inadvertently.
>
>
Kind regards,
>
>
Alastair.
_______________________________________________
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.