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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:19:11+00:00 2026-06-16T00:19:11+00:00

Possible Duplicate: KVO and NSMutableArray Like the title says, I need to be able

  • 0

Possible Duplicate:
KVO and NSMutableArray

Like the title says, I need to be able to detect a change in a mutable array. The reason for this would be to automatically refresh my mapview for an app I’m making as soon as the user adds a new location.

I imagine it would be something like asking if the array is equal to the array’s count plus one or the array’s count minus one but I don’t know how to implement that.

If you need more information before answering please don’t hesitate to ask in the comments.

  • 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-16T00:19:11+00:00Added an answer on June 16, 2026 at 12:19 am

    You can use Key-Value Observing for this. For more details check Introduction to Key-Value Observing Programming Guide.

    Key-value observing provides a mechanism that allows objects to be
    notified of changes to specific properties of other objects. It is
    particularly useful for communication between model and controller
    layers in an application. (In OS X, the controller layer binding
    technology relies heavily on key-value observing.) A controller object
    typically observes properties of model objects, and a view object
    observes properties of model objects through a controller. In
    addition, however, a model object may observe other model objects
    (usually to determine when a dependent value changes) or even itself
    (again to determine when a dependent value changes).

    You can observe properties including simple attributes, to-one
    relationships, and to-many relationships. Observers of to-many
    relationships are informed of the type of change made—as well as which
    objects are involved in the change.

    Check this blog about KVO on how to use it. Also check this tutorial. Check this question as well, Key-Value-Observing a to-many relationship in Cocoa

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

Sidebar

Related Questions

Possible Duplicate: How can I convert a list<> to a multi-dimensional array? I want
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: When does Endianness become a factor? reading this tuto on endianess, i
Possible Duplicate: Realloc is not resizing array of pointers Can anyone tell me where
Possible Duplicate: How to convert text to unicode code point like \u0054\u0068\u0069\u0073 using php?
Possible Duplicate: How do you like your primary keys? I'm aware of the benefits
Possible Duplicate: When do you use the “this” keyword? Hello, I understand that the
Possible Duplicate: Generic methods and multiple constraints I need a generic function that has
Possible Duplicate: What is the best way to programatically detect porn images? Im currently

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.