Re: returning NO from readFromFile:ofType: causes exception
Re: returning NO from readFromFile:ofType: causes exception
- Subject: Re: returning NO from readFromFile:ofType: causes exception
- From: Robert Clair <email@hidden>
- Date: Fri, 18 Feb 2005 20:39:52 -0500
I'm not sure if it's the root cause here but you always need to do
self = [super init...].
I don't think this is the problem -
[super initWithContentsOfFile: fileName ofType: docType];
calls - init.
I've also overridden -init and my subclass version of -init does self =
[super init...].
Anyway, this happens before the call to readFromFile:ofType:
what appears to be missing is something along the lines of
if ( ! [self readFromFile: myFileName ofType: myFileType )
{
self = nil
return self;
}
.....Bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden