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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:59:40+00:00 2026-05-15T15:59:40+00:00

Can someone post the simplest example on how to use controlTextDidChange with a text

  • 0

Can someone post the simplest example on how to use controlTextDidChange with a text label in the .h and .m files? Another part of my code constantly changes the value of this text label multiple times a second. I just need another part of my script that can tell if the value has changed and preform an action. All these websites out there that have this topic don’t cover how to FULLY use it. So I thought I would ask it here! 😀

Thanks!
Elijah

  • 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-15T15:59:41+00:00Added an answer on May 15, 2026 at 3:59 pm

    It sounds like you’re taking a pretty inappropriate approach to your problem. Specifically, you’re using a control to store data, rather than storing it separately in your model and interacting with that model from the rest of your application.

    I think you need to take a step back and do the following:

    1. Learn the principles of object-oriented programming and the Model-View-Controller pattern, particularly as they apply to Cocoa. One of the best introductions is the book Object-Oriented Programming with Objective-C, online free from Apple.

    2. Plan out a bit of the structure behind your application – how the data it works with fits together, not just how the user interface will look. Your application’s user interface and the data it works with are related but not the same.

    That will probably help you get the “big picture” for your application right, and show you more easily how to put together the pieces like “do X when this value changes” and “put the value for that in a text field” than trying to learn only the pieces you think you need as you think you need them.

    One more thing: Your application is an application, not a script as you referred to it in your question. This is important to keep in mind: An application can have quite a few moving parts. Tools like separate classes, separate .h and .m files, and so on are ways of managing these parts and keeping them as independent from each other as appropriate.

    It’s also not just a sequence of “commands” that are executed one after the other as a script might be. Instead, the interactions between the parts of an application are managed by the Cocoa framework, according to its application lifecycle. The Application Architecture Overview and the Cocoa Fundamentals Guide are good to read in order to get a grounding in how Cocoa fits together with your own code when building applications.

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

Sidebar

Related Questions

Can someone post an example of as3 code (specifically event listener included) that would
Can someone please post the simplest of working code that can get the last
Can someone post code or point to a working example of a php script
Can someone post the simplest thread example for Delphi 2010 that for example puts
Can someone post a quick example (implementation) of the stateMachine? The concept is pretty
Can someone post code to show this? Elijah
Can someone post an example of how I get an instance variable value that
Can someone post a sample code on how I can access the TempData dictionary
Can someone post the android gallery example where bitmap properties are used. I am
The Flex 3 docs are fairly basic. Can someone post a more complete example

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.