NSArrayController observing
NSArrayController observing
- Subject: NSArrayController observing
- From: Kurt Marek <email@hidden>
- Date: Fri, 5 Dec 2003 20:01:06 -0800
I have an NSArrayController (blocksArrayController) with it's content
set to selection.blocksArray on another NSArrayController
(itemArrayController). The NSColumns in blocksTableView are bound to
blocksArrayController. The problem is the table doesn't update when I
use addObject on blocksArray:
[blocksArray addObject:newBlock];
itemArrayController is being observed by it's own NSTableView which
immediately shows the newly added 'newBlock'. If I change the selection
of itemArrayController (through it bound NSTableView) and then select
the newly added item again, I can eventually get the blocksTableView to
display correctly for the newly added 'newBlock'.
Any ideas?
Kurt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.