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

  • SEARCH
  • Home
  • 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 6926827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:58:07+00:00 2026-05-27T10:58:07+00:00

I’m aware that iOS has API’s to integrate iCloud for the apps. Can I

  • 0

I’m aware that iOS has API’s to integrate iCloud for the apps.
Can I integrate iCloud in mac apps as well?
Will the implementation be different for Mac apps to integrate iCloud?
If Yes, are there any tutorials etc or reference websites?

  • 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-27T10:58:07+00:00Added an answer on May 27, 2026 at 10:58 am

    Yes. iCloud is available on the Mac.
    But Apple’s documentation for this topic still isn’t very complete. The only official resources I could find where the WWDC 2011 session 107 video and some notes in “What’s new in Mac OS X”

    When Lion & iCloud still were under NDA I posted my findings in Apple’s devforums.
    This is is an edited version of this post:

    I am using a modified version of the WWDC 2011 Session 107 code. (transcribed from the video)
    I had to remove the manual instantiation of NSFileCoordinator to get the sample working (the speaker mentions that the coordinator “might not be needed in the future”):

    - (IBAction)moveToOrFromCloud:(id)sender
    {
         NSFileManager* fm = [NSFileManager defaultManager];
         NSURL* fileURL = [[self document] fileURL];
         BOOL shouldMakeUbiquitous = [sender tag] == 1;
         NSURL* destinationURL;
         if(shouldMakeUbiquitous)
         {
              NSURL* rootURL = [fm URLForUbiquityContainerIdentifier:@"app.example"];
              NSURL* directoryURL = [rootURL URLByAppendingPathComponent:@"Documents"];
              [fm createDirectoryAtURL:directoryURL withIntermediateDirectories:NO attributes:nil error:NULL];
              destinationURL = [directoryURL URLByAppendingPathComponent:[fileURL lastPathComponent]];
         }
         else
         {
              destinationURL = [[[fm URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] objectAtIndex:0] URLByAppendingPathComponent:[fileURL lastPathComponent]];
         }
         NSError* error;
         if(![fm setUbiquitous:shouldMakeUbiquitous itemAtURL:fileURL destinationURL:destinationURL error:&error])
         {
              [[self document] presentError:error modalForWindow:[[self document] windowForSheet] delegate:nil didPresentSelector:NULL contextInfo:NULL];
         }
         else
         {
              [[self document] setFileURL:destinationURL];
              [[self document] setFileModificationDate:nil];
         }
    }
    

    The above IBAction is connected to a NSMenuItem that checks if the document is already in iCloud or if it needs to be uploaded:

    - (BOOL)validateMenuItem:(NSMenuItem*)item 
    {
         SEL action = [item action];
         if (action == @selector(moveToOrFromCloud:))
         {
              BOOL isUbiquitous = [[NSFileManager defaultManager] isUbiquitousItemAtURL:[[self document] fileURL]];
              [item setTitle:isUbiquitous ? @"Remove from Cloud": "Move to Cloud"];
              [item setTag:isUbiquitous?0:1];
              return [self.document fileURL] != nil;
         }    
         return YES;
    }
    

    Checklist for non-code tasks that are necessary to get iCloud document storage working:

    • Check if iCloud support is activated in the Developer Certificate Utility
    • Create a ubiquity container ID in the Developer Certificate Utility
    • The Ubiquity container ID starts with your Team ID/Individual ID (see the account tab in member center)
    • Enable Entitlements in Xcode
    • Add your ubiquity container ID to the entitlements file (as described here “Requesting Entitlements for iCloud Storage.”)
    • My plist Bundle ID had to match the ubiquity container ID (except for the Team ID)
    • I was not able to add suffixes (e.g. “app.example.osx”, “app.example.ipad”, … as suggested in the doc above)
    • Create a provisioning profile
    • Make sure the profile is installed on your dev machine and shows up in Xcode & System Preferences
    • Enable code signing in your apps build settings
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I need a function that will clean a strings' special characters. I do NOT
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into

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.