Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
NSTableView into edit mode after an insert
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
NSTableView into edit mode after an insert
Subject
:
NSTableView into edit mode after an insert
From: Kevin Hoctor <
email@hidden
>
Date: Thu, 4 May 2006 06:55:07 -0500
Hello,
I am thrilled with how easy it has been to implement the population of the NSTableView with an NSMutableArray structure, but I am frustrated that I can't get the first cell to go into edit mode after an insert. Obviously the table is being expanded by the array as shown below and that all works fine:
- (void)insertObject:(Account *)account inAccountsAtIndex:(int)index
{
// Add the inverse of this operation to the undo stack
NSUndoManager *undo = [self undoManager];
[[undo prepareWithInvocationTarget:self] removeObjectFromAccountsAtIndex:index];
if (![undo isUndoing]) {
[undo setActionName:@"Insert Account"];
}
// Add the Account to the array
[self startObservingAccount:account];
[accounts insertObject:account atIndex:index];
}
The problems start when I try to force an edit mode. The above routine actually happens prior to the table update so I can't force a cell to edit (the row is not present yet). I'm sure I'm missing something obvious, but I can't find it. Help!
Thanks,
Kevin Hoctor _______________________________________________
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
Follow-Ups
:
Re: NSTableView into edit mode after an insert
From:
Kevin Hoctor <email@hidden>
Re: NSTableView into edit mode after an insert
From:
Ondra Cada <email@hidden>
Prev by Date:
Animation of window to dock
Next by Date:
Animation of window to dock
Previous by thread:
Animation of window to dock
Next by thread:
Re: NSTableView into edit mode after an insert
Index(es):
Date
Thread