Re: problem with dataWithContentsOfFile on Lion

2011-07-21 Thread Wilker
Thanks guys, I changed to NSDataReadingMappedAlways, since I will read just a little piece of data (which is generally really fast) is that ok, the crash risk is really low, so, I mean my software can live with that. --- Wilker LĂșcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600

Re: problem with dataWithContentsOfFile on Lion

2011-07-21 Thread Greg Guerin
Wilker wrote: Before Lion, it really works well and fast, even on Wifi external drive (through Airport Extreme), but now it get's really slow... I did some checks, and now its reading the entire file... instead of just read 128kb (start and end). Anyone have an ideia on why its happening now

Re: problem with dataWithContentsOfFile on Lion

2011-07-21 Thread Ken Thomases
On Jul 21, 2011, at 1:01 PM, Wilker wrote: > I updated to Lion yesterday, but I'm having an issue now with [NSData > dataWithContentsOfFile] > Before Lion, it really works well and fast, even on Wifi external drive > (through Airport Extreme), but now it get's really slow... I did some > checks,

Re: problem with dataWithContentsOfFile on Lion

2011-07-21 Thread Kevin Perry
Please check the NSData.h header and Foundation release notes for Lion. Because mapping files on non-local drives (which may be disconnected or removed at any moment, resulting in a crash if you attempt to access parts of the file that haven't been faulted in) is unsafe, NSData on Lion has chang