Re: unseen classes?
Re: unseen classes?
- Subject: Re: unseen classes?
- From: Isaac Sherman <email@hidden>
- Date: Mon, 20 Jan 2003 00:21:51 -0500
on 1/19/03 11:53 PM, the method -(id)email@hidden:(id)
sender:@"David Cairns"; returned:
>
for some reason or another, im getting all manner of warnings during
>
compile that i don't *think* i should be getting. here are a few:
>
>
warning: 'MyClass' does not respond to 'autorelease'
>
warning: 'MyClass' does not respond to 'retain'
>
warning: return type for 'initObjWithPath' defaults to id
Definitely sounds like an improper class declaration. Did you write it
yourself? Where are you getting these errors? The third sounds like either
a misspelling (a misplaced colon will cause this too) or an instance method
being sent as a factory method. Does your code look more like:
[MyClass initObjWithPath:path];
or
[objectOfMyClass initObjWithPath:path];
?
It should look like the latter.
>
Also note that i have 'told' the controller class i'm working with
>
about the MyClass class with the @class MyClass; statement before the
>
@implentation of the controller.
>
>
Basically my project adds MyClass objects to a DataSource class and
>
displays the names in an NSTable. Unfortunately, my program either
>
gets a SIGBUS or SIGSEGV error about the second or third time I call
>
AddClip:. Any ideas? if im not posting enough info, tell me.
That sounds like a prematurely dealloced object. Check your release
methods, and remember that objects created with "convenience constructors",
such as arrayWithArray:, will be autoreleased if they aren't retained.
Without the code in front of me, it's hard to say.
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.