• 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
WriteToFile:atomically: question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WriteToFile:atomically: question


  • Subject: WriteToFile:atomically: question
  • From: Mike Beam <email@hidden>
  • Date: Fri, 10 Aug 2001 18:35:40 -0500

Hello All!

I'm having problems using NSArray's writeToFile:atomically: What I have is
a method - (BOOL)save that simple has the following code

- (BOOL)save
{
return [array writeToFile:path atomically:YES];
}

path and array are of course instance variables. Now, I call this method
from several IBAction methods. There is one in particular that crashes my
App with a signal 10 or signal 11 every time; it is wired up to a button
and the crashes still happen when I comment out all of the other code in
that action method. If I move [self save] to other parts of my code outside
of that action method, all is well. So that's my problem and its been
driving me nuts. Any suggestions would be greatly appreciated! Thanks!

Mike Beam


  • Follow-Ups:
    • Re: WriteToFile:atomically: question
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Re: Cocoa downgrade from openstep?
  • Next by Date: OmniFrameworks
  • Previous by thread: NSUserDefaults
  • Next by thread: Re: WriteToFile:atomically: question
  • Index(es):
    • Date
    • Thread