Also:
You should add a check for the return value from your call to -
writeToFile:atomically: (which is deprecated, by the way). The docs
for +fileHandleForWritingAtPath: say it returns nil if the file
doesn't exist (which might be the case if -writeToFile:atomically:
failed), so you should check the return value from that too.
In general, you should check the results of I/O operations, and don't
assume they succeed.
--Andy
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]