• 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
Question about NSFileHandle class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about NSFileHandle class


  • Subject: Question about NSFileHandle class
  • From: Adil Saleem <email@hidden>
  • Date: Sat, 30 May 2009 00:09:00 -0700 (PDT)

Hi,
Does the class NSFileHandle implements endianness checks or is it the responsibility of the programmer? I am using its method  - (NSData *)readDataOfLength:(NSUInteger)length
I want to read binary data from files and i want it to be same every time in my application (no endianness issues)  whether it is an Intel based Mac or PPC based Mac. If NSFileHandle does not implement these checks itself, then please suggest some other Cocoa method that does it automatically. 
Thank You






_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question about NSFileHandle class
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Custom view resizing
  • Next by Date: Re: Question about NSFileHandle class
  • Previous by thread: Re: [ NSKeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions
  • Next by thread: Re: Question about NSFileHandle class
  • Index(es):
    • Date
    • Thread