• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My object won't alloc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >My object won't alloc. (From: email@hidden)

  • Prev by Date: Re: NSView and rectangle management
  • Next by Date: Re: Escaping spaces in paths
  • Previous by thread: My object won't alloc.
  • Next by thread: How to get references to objects created from nib files?
  • Index(es):
    • Date
    • Thread