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 8779933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:55:12+00:00 2026-06-13T19:55:12+00:00

I am attempting to use a iCloud-enabled UIDocument with a directory-based NSFileWrapper (aka File

  • 0

I am attempting to use a iCloud-enabled UIDocument with a directory-based NSFileWrapper (aka File package) to maintain a complex application state. In my app, the user can have many distinct configurations (kind of like cars that have seat settings for each potential driver).

For each individual state I add a regular file NSFileWrapper to the overall file package.

The writing and reading of my UIDocument into/from the cloud is working fine. I also get notifications when the file package has changed.

The problem is that I can’t figure out from the notification which of the additions or changes to the sub files (i.e., states) caused the package to change.

I’ve tried overriding the presentedSubitemDidChangeAtURL in my custom UIDocument but that only gives me the URL of the package. I’ve also experimented with the file wrapper’s matchesContentsOfURL method, but that doesn’t seem to be right since the child file wrappers don’t have a “real” URL.

Comments and suggestions welcomed.

  • 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-06-13T19:55:14+00:00Added an answer on June 13, 2026 at 7:55 pm

    I ended up addressing this problem by checking each regular file’s modification date against a locally stored NSDate. As the UIDocument gets updated, I check to see which items were changed after the last time I ran the process loop. Some care needs to be taken such that locally updated files aren’t processed again.

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

Sidebar

Related Questions

Im attempting to use Silverlight and MVC together. After creating a simple Silverlight application
I am attempting to use a custom workflow activity to auto-increment build numbers based
Attempting to use asp.net mvc's Action Result of File. So it would seem that
When attempting to use pandoc to convert JSON based files (.ipynb) from iPython notebook
I am attempting to use Inno Setup to bootstrap a WiX generated .msi file
I am attempting to use the Exhibit pattern in a padrino application but to
I'm attempting to use the getc() function to copy the contents of one file
Attempting to use the data series from this example no longer passes the JSONLint
Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng
When attempting to use HttpWebRequest to retrieve a page from my dev server, I

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.