Re: My object won't alloc.
Re: My object won't alloc.
- Subject: Re: My object won't alloc.
- From: Isaac Sherman <email@hidden>
- Date: Tue, 25 Jun 2002 13:35:26 -0400
on 6/24/02 9:23 PM, the method -(id)email@hidden:(id)
sender:@"email@hidden"; returned:
>
Hi, I subclassed NSObject in IB. I created the files ( .h + .m )
>
and when. In an other .m file ( I imported the header file of my
>
object ), I want to alloc the obecjt and init it,
>
I get a warning : AppController.m:54: warning: `HGHeadline' does not
>
respond to `alloc'
>
All the other methods work.. but it wont alloc, why?
>
>
thanks
>
>
>
-Jean-Olivier Lancttt-David
If you are subclassing NSObject, you shouldn't override alloc. It sounds
like that's what you're doing. alloc is a class method, have you written an
instance method overriding it? Or are you just sending a class method to an
instance? I'd say we need more info.
HTH,
--
Isaac Sherman
MotaSoft Software
http://homepage.mac.com/huperzoevs/
_______________________________________________
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.