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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:36:54+00:00 2026-05-12T22:36:54+00:00

Been researching how to send data from one child view to another child view.

  • 0

Been researching how to send data from one child view to another child view. The application has several views, where one is kind of real-time Settings view. Changes in settings should effect stuff inside other views.

NSUserDefaults seems to be popular, but I don’t want persistent data nor automatic saving into database/file. Looks like potential slowdown, which I want to avoid.

Second popular thing is passing a reference to some common top level object into each child view. Just haven’t found any tutorial, which would show me in detail how to do this… Most likely so easy, no tutorial is needed – after you figure it out once! Would appreciate, if you can point me to right direction (URL)!

Question: I’m thinking about using one “singleton object” to store “global data”, access it from everywhere anytime. What could wrong with this? If I create it at e.g. appDelegate.m it should exist before anyone tries to access it, right?

I’m looking at this sample code.

  • 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-12T22:36:55+00:00Added an answer on May 12, 2026 at 10:36 pm

    I would recommend using delegates and/or notifications.

    Instead of creating a new singleton in the app delegate, add the necessary data (or, even better, references to the data) in the app delegate and have the views have references to the app delegate.

    You can also set up notifications so that your views can keep track of changes to the data that they display.

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

Sidebar

Related Questions

I have been researching options for printing report-like data via a web application. Some
I have been researching this one for awhile. I found several resources on the
As I've been researching another problem online, I've seen references to folks modifying the
I have recently been researching the SQL Server spatial data types and have decided
I have been researching asynchronous messaging, and I like the way it elegantly deals
I've been researching PHP frameworks as of late for some personal projects, and it
I've been researching memory mapped files for a project and would appreciate any thoughts
I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp,
I have been researching and playing with functional programming lately, solely to broaden my
I have been researching audit triggers for some of my sql tables. I came

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.