bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #24759] [NSFileHandle readDataToEndOfFile] should return empty data


From: Gregory John Casamento
Subject: [bug #24759] [NSFileHandle readDataToEndOfFile] should return empty data for a new file or one which doesn't exist.
Date: Fri, 07 Nov 2008 14:33:00 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3

Follow-up Comment #2, bug #24759 (project gnustep):

> How is that possible? If the file doesn't exists, how can you have a handle
to it?

I guess it's because, if you're opening the file for writing and it doesn't
exist it creates it for you and gives you the handle to it.

After further thought on this, however, I believe our behavior is more
correct than Cocoa's.  Cocoa appears to be opening the file for read/write and
setting the pointer to the beginning of the file whereas we're opening it for
write only.   

This isn't clearly documented in Apple's docs (as usual) so it's open to
interpretation.   

At this point, I don't believe this is an issue.  

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24759>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]