initWithContentsOfFile crash
initWithContentsOfFile crash
- Subject: initWithContentsOfFile crash
- From: Sanri Parov <email@hidden>
- Date: Tue, 14 Jun 2005 22:32:55 +0200
Hi everybody,
I'm dealing with a non document based app which eventually turned out
to be a doc based one.
I've managed to create an output file (a package one) which is
correctly specified in the properties of the target of the project.
The output file has its own class, it's extension, it' behaviour
(editor).
The problem happens when I try to open the output file from the Finder
by double clicking on it.
I've managed to implement a initWithContentsOfFile:ofType: method in
the class responsible for its treatment, but soon after the class has
done its job, the app crashes.
Here's the method:
- (id)initWithContentsOfFile:(NSString *)fileName ofType:(NSString
*)docType
{
NSLog(@"%@",fileName);
NSLog(@"%@",docType);
}
It does nothing!!! After the second NSLog, the app crashes with
"Executable “myApp” has exited due to signal 11 (SIGSEGV)."
Is there something I'm missing? I've tried reading NSDocument class but
I find it pretty confusing.
Thanks
--
Sanri Parov
_______________________________________________
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