NSTable view NSArrayController add: not updating
NSTable view NSArrayController add: not updating
- Subject: NSTable view NSArrayController add: not updating
- From: Juan Branger <email@hidden>
- Date: Fri, 3 Feb 2006 14:26:16 +0100
When using the add method with NSArrayController the NSTableview
asociated didn't notice the change made by "add" method, but if I use
[super addObject:[super newObject]] it does work. What is going on,
shouldn't add method update the tableview?
I'm making a core data application and I was just trying to make a
recent created object of a NSArraycontroller to enter edit mode right
after is created.
//Subclassing of NSArrayController add method
- (void)add:(id)sender {
//vistaTable is the NSTableView Outlet
[super addObject:[super newObject]];
//[super add:sender] does not update the table view as it should
[vistaTabla selectRow:[vistaTabla numberOfRows] -1
byExtendingSelection:NO];
[vistaTabla editColumn:0 row:[vistaTabla selectedRow] withEvent:nil
select:YES];
}
Regards,
Juan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden