Re: programatically updating UI for NSArrayContoller/NSTableView combo
Re: programatically updating UI for NSArrayContoller/NSTableView combo
- Subject: Re: programatically updating UI for NSArrayContoller/NSTableView combo
- From: Russell Gray <email@hidden>
- Date: Sat, 9 Jan 2010 19:19:58 +1100
OK, so i checked out the link, and tried the following calls:
[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];
that didn't work, so I tried the following:
[subscriptionsArrayController willChangeValueForKey:@"subscriptions"];
[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];
[subscriptionsArrayController didChangeValueForKey:@"subscriptions"];
still, no good, so I also tried:
[subscriptionsArrayController willChangeValueForKey:@"arrangedObjects"];
[subscriptions insertObject:subscriptionInfo atIndex:[subscriptions count]];
[subscriptionsArrayController didChangeValueForKey:@"arrangedObjects"];
Am I totally missing something here?
Russell
On 09/01/2010, at 8:30 AM, mmalc Crawford wrote:
>
> On Jan 8, 2010, at 1:10 pm, Russell Gray wrote:
>
>> I am having trouble trying to get a tableView to update its contents, when bound to an NSArrayController - but only when new objects are added. removal, and updating of current objects works fine.
>>
> <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
> "Programmatic modifications to arrays not noticed by table view"
>
> mmalc
>
_______________________________________________
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