Notification when changes occur to an array?
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