Re: Has anyone any experience with NSTableView and NSArrayController ?
Re: Has anyone any experience with NSTableView and NSArrayController ?
- Subject: Re: Has anyone any experience with NSTableView and NSArrayController ?
- From: 陳銘崧 a.k.a. James Chen <email@hidden>
- Date: Fri, 8 Oct 2004 19:00:29 +0800
Hi,
You could try to call willChangeValueForKey: and didChangeValueForKey:
before and after you modify your array respectively.
The "key" shall be the key you use to bind the contentArray of
NSArrayController.
Suppose, doing this will invoke CVO so that the controller will notify
table to update its contents.
HTH,
James
------------------------------------
Ulead Systems Inc.
James Chen
Software Engineer
Image Div.
------------------------------------
On Oct 8, 2004, at 5:09 PM, Vincent Coetzee wrote:
Hi there
I have an NSArrayController that is bound to the columns in an
NSTableView. The table view correctly picks up the values that are in
the array managed by the controller when it initially displays, but
does not update when I add new objects to the array. All other
functionality seems fine. Are there any known issues with using an
NSArrayController with an NSTableView. Visual inspection of the array
managed by the NSArrayController shows that the added values are in
fact there, attempting to force the table view to reload it's data by
means of reloadData also has no effect. Does anyone have any
suggestions ?
Thanks in advance
Vincent
_______________________________________________________________________
____________________________
The views expressed in this email are, unless otherwise stated, those
of the author and not those
of the FirstRand Banking Group an Authorised Financial Service
Provider or its management.
The information in this e-mail is confidential and is intended solely
for the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted in reliance on this, is
prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information and data transmitted electronically and to
preserve the confidentiality thereof, no liability or responsibility
whatsoever is accepted if information or data is, for whatever reason,
corrupted or does not reach its intended destination.
________________________________
_______________________________________________
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
_______________________________________________
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