On Aug 10, 2011, at 8:10 AM, Wade Tregaskis wrote: > Note also that initWithContentsOfMappedFile: is deprecated in 10.7. There > doesn't appear to be a replacement; I presume you're supposed to use > initWithContentsOfFile:, but that really does read the entire file in at init > time (into a single malloc allocation, no less).
>From the header: "These methods are deprecated. You should use >+dataWithContentsOfURL:options:error: or -initWithContentsOfURL:options:error: >with NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead." Douglas Davidson _______________________________________________ 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