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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:44:19+00:00 2026-05-23T03:44:19+00:00

Hope it’s not against rules to post more than 1 question per page. I

  • 0

Hope it’s not against rules to post more than 1 question per page.

  1. I have value1, which changes based on value2 changing. And because of that, every time i change value2, i go [self changeValue1] and then that runs some code which looks at value2 and changes value1. Is there a more automated way of doing this, where i can have the app be notified when value2 changes and calls such a method?

  2. I have methods (such as the one above) that i don’t want to be accessed from outside that class. How do i make a method private?

  • 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-23T03:44:19+00:00Added an answer on May 23, 2026 at 3:44 am

    ad 1. Look for Key Value Observing in the documents.

    ad 2. Define the methods in a private category. This doesn’t mean other classes can’t call the method anymore, but at least you’ll be warned about it by the compiler.

    In your MySubclass.m:

    @interface MySubclass ()
    
    - (void)myPrivateMethod;
    
    @end
    
    @implementation MySubclass 
    
    etc. etc.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hope you are fine. My question : In MYSQL i have a table with
Hope this post will not be killed on the ground of NOT PROGRAMMING RELATED.
Hope here are some with more knowledge about Zend Framework than me, I've been
Hope my question does not pose as too wide. So I try to frame
Hope you all will be fine. The scenerio is that i have a page
hope you can help me! I have a form, which has a large amount
Hope someone can help. I have the code below which when the user hovers
(Hope this doesn't get duplicated; second attempt at submitting this question) I'm working on
Hope you're having a good Friday and stuff... okay, so here's my question: All
Hope I'm asking this correctly: I have a project Projects.Client I have my class

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.