Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-12 Thread Russell Gray
Thanks for taking the time to look at my code guys, I ended up taking mmalc's advice, and rewrote the datasource sans arrayController/bindings. it took me less than 2 hours! Russell On 11/01/2010, at 4:16 AM, mmalc Crawford wrote: > > On Jan 10, 2010, at 4:57 am, Quincey Morris wrote: > >>

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-10 Thread mmalc Crawford
On Jan 10, 2010, at 4:57 am, Quincey Morris wrote: > I'm not sure where to go next with this ... > I would strongly recommend dispensing with bindings for the moment: it's not an entry-level technology; it depends on an understanding of the fundamentals of Cocoa development including object gr

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-10 Thread Quincey Morris
On Jan 10, 2010, at 02:54, Russell Gray wrote: > As for the two arrays: > subscriptions > subscriptionsArray > > subscriptions is the mutable array that subscriptionsArrayContoller is bound > to for its content. > and subscriptionsArray is a mutable array that I use to read/write my plist > fil

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-10 Thread Russell Gray
I have tried modifying subscriptions (in the method openABPFeed:(NSURL*)feed), with the following: [subscriptionsArrayController addObject: subscriptionInfo]; [[self mutableArrayValueForKey: @"subscriptions"] addObject: subscriptionInfo]; [[self mutableArrayValueForKey: @"subscriptions"] insertOb

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread mmalc Crawford
On Jan 9, 2010, at 2:15 pm, Russell Gray wrote: > [subscriptionsArray addObject:output]; > You haven't shown where you're modifying 'subscriptions' (apart from in the init method). Do you have two arrays that mirror each other, subscriptions and subscriptionsArray? Otherwise, if this is

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Russell Gray
I have a controller object "Controller" of Class Name "AdBlockerPreferences", with the outlet connected to the Array Controller. the Array Controller's content is bound to Controller.subscriptions the Array Controller has the preference "Prepares Content" checked. .I also have File's Owner w

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread mmalc Crawford
On Jan 9, 2010, at 1:50 pm, Russell Gray wrote: > On 10/01/2010, at 8:18 AM, Quincey Morris wrote: >> How about if you register your own KVO observer of the "subscriptions" >> property? Does it get notified when the property changes? Did you check the >> log for exception error messages? > So, I

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Russell Gray
So, I added an observer to my awakeFromNIb: [subscriptionsArrayController addObserver: self forKeyPath: @"arrangedObjects" options: NSKeyValueObservingOptionNew context: NULL]; and the following method: - (void) observeValueF

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Quincey Morris
On Jan 9, 2010, at 12:48, Russell Gray wrote: > Ok, so I do have subscriptions, and subscriptionsArrayContoller set up as you > say - I should have mentioned that. > I also have the arrayController "Prepares Content" option checked in > Interface Builder. > > I tried all those options you provi

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Russell Gray
Ok, so I do have subscriptions, and subscriptionsArrayContoller set up as you say - I should have mentioned that. I also have the arrayController "Prepares Content" option checked in Interface Builder. I tried all those options you provided. none worked, I still have the same result, the tableV

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Quincey Morris
On Jan 9, 2010, at 00:19, Russell Gray wrote: > 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:

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-09 Thread Russell Gray
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:subscriptionIn

Re: programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-08 Thread mmalc Crawford
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. >

programatically updating UI for NSArrayContoller/NSTableView combo

2010-01-08 Thread Russell Gray
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. The arraycontroller is bound to a mutablearray of dictionaries, and will update correctly only aft