bindings and sub array modification notification.
bindings and sub array modification notification.
- Subject: bindings and sub array modification notification.
- From: Sandro Noel <email@hidden>
- Date: Sun, 18 Jan 2009 17:13:04 -0500
Greetings.
I'm having a problem getting my collection view to update when i
insert and element in my model.
My model is like this.
Host (custom class).
NSString *hostName
NSArray *informationElements.
In interface builder I have the host collection view bound to an array
controller (arangedObjects.)
who itself is bound to the :hosts: array of my window controller
and the information collection view is bound to and array controller
who is bound to the host Array Controller as (Selection)
This works just fine.
The problem I am having is this, when I add a host to the array
controller, the view get's updated with the new values.
but when i add information to an already existing host, the
information is there but it does not get displayed until
the selection changes and comes back to that element.
I've tried to use
from the add window controller. witch is not where the hosts variable
is declared.
[self willChangeValueForKey:@"informationElements"];
[self didChangeValueForKey:@"informationElements"];
[hosts willChangeValueForKey:@"informationElements"];
[hosts didChangeValueForKey:@"informationElements"];
[self willChangeValueForKey:@"hosts.informationElements"];
[self didChangeValueForKey:@"hosts.informationElements"];
nothing happens.
I'm not using the InformationArraycontroller because
I am not sure of current selection when the information is saved.
Can anyone advise?
Thank you !
Sandro Noel.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden