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

Re: WriteToFile:atomically: question


  • Subject: Re: WriteToFile:atomically: question
  • From: Mike Beam <email@hidden>
  • Date: Fri, 10 Aug 2001 23:22:59 -0500

> On Saturday, August 11, 2001, at 01:35 , Mike Beam wrote:
>
>> - (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!
>
> Maybe path or array is autoreleased?
>

Yeah, I thought about that, so I sent messages to array in the same method
where I send array writeToFile:atomically: and it accepts them okay--no
crash. I then created a string in that same method and did a
writeToFile:atomically: on it with the same path which worked okay. The
weird thing is that it seems to only be isolated to one particular method
that calls [self saveData]. Weird. Anyway, thanks for your help. I'll
keep looking for the dumb stuff I guess :)

> andy
> --
> "He was addicted to life. But we cured him"
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: WriteToFile:atomically: question (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: NSArchiver
  • Next by Date: Re: NSArchiver
  • Previous by thread: Re: WriteToFile:atomically: question
  • Next by thread: How to open a second window?
  • Index(es):
    • Date
    • Thread