• 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
bindings and sub array modification notification.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: bindings and sub array modification notification.
      • From: mmalc Crawford <email@hidden>
    • Re: bindings and sub array modification notification.
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Properties and memory management with overrides.
  • Next by Date: [NOOB] Finding Information (was: real noob question)
  • Previous by thread: Re: Properties and memory management with overrides.
  • Next by thread: Re: bindings and sub array modification notification.
  • Index(es):
    • Date
    • Thread