Re: NSArrayController + NSTableView addObject ends editing
Re: NSArrayController + NSTableView addObject ends editing
- Subject: Re: NSArrayController + NSTableView addObject ends editing
- From: Keary Suska <email@hidden>
- Date: Thu, 14 Nov 2013 06:53:08 -1000
On Nov 14, 2013, at 12:54 AM, Trygve Inda <email@hidden> wrote:
> I have a NSTableView backed by an NSArrayController.
>
> If I am editing a cell in a row in the tableview and call addObject on the
> NSArrayController (to add a new row to the tableview), my editing session
> for some other row is ended.
>
> addObject is called from an NSNotification method when some other event
> happens in the app the requires a row be added to the table.
>
> How can I prevent the edit session from ending.?
In the docs, - (BOOL)selectionShouldChangeInTableView:(NSTableView *)aTableView is used for this purposeā¦
HTH,
Keary Suska
Esoteritech, Inc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden