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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:49:21+00:00 2026-06-01T18:49:21+00:00

in the Stack Overflow posting: How do I create a global UIManagedDocument instance per

  • 0

in the Stack Overflow posting:

How do I create a global UIManagedDocument instance per document-on-disk shared by my whole application using blocks?

Alan asked how to create a global UIManagedDocument to be used throughout his entire app. He provided code slices of his attempt. Kevinpo provided an answer which made perfect sense to Alan.

But I started out with the same problem, and can’t make heads or tails out of their collective postings.

Specifically:

  1. Alan’s code references an object called managedDocumentDictionary,
    but does not explain how to create it so I get an ‘undeclared
    identifier’ compilation error.
  2. Alan starts out stating that he wants to create a helper method to
    retrieve a UIManagedDocument, yet throughout both his and Kevin’s
    code, neither actually show defining a helper method with .h and .m
    files.

So, if possible, can anyone make sense of what they are saying and help me understand how it all fits together? Perhaps:

  1. A helper Class definition,
  2. How does one get the ball rolling, i.e., where do I initially create this UIManagedDocument,
  3. Once created, How do I get the document in other TableViewControllers?
  4. A sample of where this should be invoked – in the AppDelegate? or each TableViewController?
  5. Maybe even a sample project?

Thanks to all for any interpretations you can offer.

  • 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-01T18:49:23+00:00Added an answer on June 1, 2026 at 6:49 pm

    That post shows how to access a document, based on a name. The dictionary is a mapping from names to UIManagedDocument instances. Thus, he can ask for document @”Foo” and the code will go look up @”Foo” in the dictionary. If it is there, the UIManagedDocument will be returned. If it is not there, then a new one will be created and placed in the dictionary (and the passed-in completion block will be called).

    His question was basically, how to pass a completion block to the function, and have that function call the completion block he passed in.

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

Sidebar

Related Questions

Posting a stack overflow question on stackoverflow.com, how amusing :-) I'm running some recursive
Ive gone through some of the previous posts on Stack Overflow before posting this.
First time posting on stack overflow. I've spent hours scouring over many Google searches
This is my first stack overflow quesiton, so if i'm not posting correctly, or
I've searched this question in Stack Overflow before posting it, but none of the
How can I color my code on Stack Overflow when posting an answer? How
I read a posting claims foldl may occur stack overflow easily. And the posting
this is the second time I am posting this on stack overflow forum, the
First time posting in Stack Overflow, hope I'm doing this right. I'm writing an
At every question posting on websites like ASP.NET and Stack Overflow there's an option

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.