• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Notification when changes occur to an array?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notification when changes occur to an array?


  • Subject: Notification when changes occur to an array?
  • From: Mattias Arrelid <email@hidden>
  • Date: Tue, 26 Sep 2006 16:07:07 +0200

Hi everyone,

This is my first post here, so be easy on me. I've searched the archives and Google without success, so now I ask you for your expert input.

The problem; I have an NSArrayController with a corresponding NSArray. I would like some of my other classes to react to changes to the array, at least when it changes size.

I've read the class reference for both the controller and the array, but I cannot seem to find any built in notification support for the array as a whole (like when an element is added, a "sizeHasChanged" notification should be sent).

I could manually check the size of my array at each instance in my program where it's needed, but that breaks the notification idea.

Thanks in advance.
/ Mattias
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Notification when changes occur to an array?
      • From: Scott Anguish <email@hidden>
    • Re: Notification when changes occur to an array?
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Localizable.strings in frameworks?
  • Next by Date: Re: How to implement an Xcode-style hierarchical file browser
  • Previous by thread: Re: Link (dyld) error, image not found
  • Next by thread: Re: Notification when changes occur to an array?
  • Index(es):
    • Date
    • Thread