On Sep 21, 2009, Greg Guerin wrote:


How do you know the original file at path0 contained several thousand
bytes?

Because I put them there:
     [hndl0 writeData:[NSData dataWithBytes:buffer length:lngth]];
and checked them:
     bytes = [hndl0 seekToEndOfFile];

Is there a possibility it was a file with an empty data-fork but a
non-empty resource fork?


I don't think so given that seekToEndOFile worked as expected.

Also, if the old code ran without any problem, why change it?

  -- GG

There's the rub. The original code used methods that are now deprecated.

Don

_______________________________________________

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 arch...@mail-archive.com

Reply via email to