Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6471237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:12:04+00:00 2026-05-25T06:12:04+00:00

Ican read in the apple doc for NSData : – (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)mask error:(NSError

  • 0

Ican read in the apple doc for NSData :

- (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)mask error:(NSError **)errorPtr
Parameters

mask
A mask that specifies options for writing the data. Constant components are described in “NSDataWritingOptions”.

Available in iOS 2.0 and later.

and for NSDataWritingOptions :

Options for methods used to write NSData objects.

enum {
   NSDataWritingAtomic = 1UL << 0,
   NSDataWritingCoordinated = 1UL << 2,
   NSDataWritingFileProtectionNone     = 0x10000000,
   NSDataWritingFileProtectionComplete = 0x20000000,
   NSDataWritingFileProtectionMask     = 0xf0000000,
};
typedef NSUInteger NSDataWritingOptions;

NSDataWritingAtomic
Available in iOS 4.0 and later.

NSDataWritingCoordinated
??????

NSDataWritingFileProtectionNone
Available in iOS 4.0 and later.

NSDataWritingFileProtectionComplete
Available in iOS 4.0 and later.

NSDataWritingFileProtectionMask
Available in iOS 4.0 and later.

How may I use a 2.0 method that takes 4.0 arguments when compiling for 3.x target ???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:12:04+00:00Added an answer on May 25, 2026 at 6:12 am

    You should be able to call the method in the 2.0 way for 3.x targets. You won’t be able to call it with the 4.0 format or values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why I can't read the Apple's developer documentation from my iPhone? I open the
I remember having read this in Apple's documentation but now I can't find it.
I've read many of the SO questions on NSManagedObject, the Apple docs, and more,
I've just read Apple documentation for NSScanner . I'm trying to get the integer
I read somewhere in apple documentation that I need to edit the plist to
I've tried to read on apple documentation but I can't find anywhere how to
I've read the online docs about formal and informal protocols on Apple's documentation site,
i read about Batch insertion and deletion of rows in the apple documentation,but didnt
I can read the MySQL documentation and it's pretty clear. But, how does one
I can read unmanaged memory in C# using UnmanagedMemoryStream, but how can I do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.