|Sep 24, 2004, 09:15 PM||#1|
Cannot get NSTableView to reload!
I have a tableview that is bound to an array controller. I can add records just fine by using the array controller's add: action. However there is one part in the code that I wish to add additional records. I can add the records to the array controller just fine, but the NSTableView will not add. After I add the records, I can run the "add:" action and the tableview will reload and only then I can see the added records.
Here is a snippet of my code:
Author *newAuth; newAuth = [[Author alloc] init]; [[newAuth properties] setValue:@"first" forKey:@"firstname"]; [[newAuth properties] setValue:@"lost" forKey:@"lastname"]; [_authors addObject:newAuth]; [newAuth release]; [authorsView reloadData];
Any ideas? I have tried everything to try to get that thing to refresh!
|Sep 25, 2004, 07:52 PM||#7|
Oh, I just thought of something. What happens if you send a setNeedsDisplay message right after the reload? I'm thinking that it doesn't visually update without a little kick so that a series of adds won't be too slow.
[I'll also note that others have encountered this problem if an NSTableView's controller happens to be subclassed from NSDocument.]
Last edited by iMeowbot; Sep 25, 2004 at 07:57 PM.
|Sep 25, 2004, 08:08 PM||#8|
There's gotta be something I'm not doing right, I just wish I could figure out what!
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Can't get NSTableView to use anything other than NSTextFieldCell||rossipoo||Mac Programming||2||Dec 9, 2009 10:44 PM|
|I cannot get VNC to connect to my Windows PC =(||magiic||Mac OS X||3||Aug 18, 2008 08:16 AM|
|Cannot get jailbreak to connect to my ipod touch||famdav||iPod touch Hacks||0||Nov 14, 2007 08:10 PM|
|Cannot get BitTorrent to work after FiOS install||the_wallcrawler||Mac Applications and Mac App Store||0||Aug 3, 2006 12:31 AM|
|Internal Modem is Silent - Cannot Get it to make a sound||dmetzcher||Macintosh Computers||7||Dec 8, 2005 04:51 PM|
All times are GMT -5. The time now is 05:50 AM.