Re: Object can't alloc itself
Re: Object can't alloc itself
- Subject: Re: Object can't alloc itself
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 9 Mar 2003 18:45:35 -0800
On Sunday, March 9, 2003, at 04:30 PM, Steven Schlansker wrote:
I have a class called WRegEx which wraps regex.h to Obj-C. I am having
trouble with a line which reads:
temp = [[WRegEx alloc] init];
I suspect that you inadvertently made WRegEx a root class.
Did you declare it like this?
@interface WRegEx // <--this way, it's a root class and doesn't
inherit +alloc
{
//..blah blah blah
}
or like this?
@interface WRegEx : NSObject
{
// ...etc.
}
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.