Hi,
I have a singleton class which manages a tableView.
In the UI everything works fine. I can delete entries, edit entries and the
table gets updated properly.
Now I have another class which manages the entries of a dropdown menu.
Now when an item of this dropdown menu is getting pressed I want to change
something in my tableView – so the table should get updated.
So the singleton class that manages my tableview has a method "-
(void)updateView":
- (void)updateView {
[content removeObjectAtIndex:1];
[table reloadData];
[table deselectAll:self];
}
and when the menuitem is pressed the following is invoked (in a different
class):
prefShow = [Preferences sharedPrefsWindowController]; ( <- this is my
singleton)
[prefShow updateView];
Everything works fine – the updateView method is called and the NSMutableArray
(content) is also updated properly.
However nothing changes in the table.
[table reloadData] seems to have no effect.
But why?
It works for other methods that are linked to
IBOutlets..._______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]