• 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
initWithContentsOfFile crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: initWithContentsOfFile crash
      • From: Pontus Ilbring <email@hidden>
  • Prev by Date: Re: xcode-->java-->cocoa - how long? how many?
  • Next by Date: Re: initWithContentsOfFile crash
  • Previous by thread: Re: NSPersistentDocument Core Data Tutorial Help
  • Next by thread: Re: initWithContentsOfFile crash
  • Index(es):
    • Date
    • Thread