Quote:
Originally Posted by softak
1. You should not "retain" objects you did not "alloc".
Remove "[myRecordPath retain];"
2. check if recordFileHandle != nil
3. restart your phone, may be file was not released properly before.
4. File should exist before you can open it with "[NSFileHandle fileHandleForWritingAtPath:recordFilePath];"
|
Thanks. This got me going to the next step.
1. FYI, I didn't think the retain was necessary, but got it from borrowed code.
2. recordFileHandle was indeed nil, but because I never created file. I put back in the commented-out code to create file. Then recordFileHandle still nil due to a snafu creating pathnamepathname [sic]. After fixing pathname, recordFileHandle came back non-nil
3. I did restart the phone, but the above was the cause.
4. File not previously existing plus filename snafu were my problems.
Thanks.