> On 30 Nov 2015, at 20:28, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> On Nov 30, 2015, at 11:07 , Luc Van Bogaert <luc.van.boga...@me.com 
> <mailto:luc.van.boga...@me.com>> wrote:
>> 
>> I have noticed that TableviewSelectionDidChange(_:) is not called in my 
>> tableview delegate when after I select a row and then delete it, even when 
>> it is the only row in the table. I would have assumed that this method would 
>> be called because deleting the row does in fact change the slection, or 
>> doesn't it?
> 
> Can you show us the exact function signature you’re using in your code? This 
> mis-capitalized name you wrote obviously isn’t it.
> 
> It’s also worth saying what Xcode and SDK versions you’re using, since 
> changing nullability annotations in the SDK have affected the signature over 
> time.
> 

OK, this is what I have in the code (XCode 7.1.1, SDK 10.11)

    func tableViewSelectionDidChange(notification: NSNotification) {
        print("selection did change")
    }

Observing the console, I can see this is being called when I make any selection 
change; except when I delete the (last) selected row. Deleting the second last 
row does trigger a call, but only when I set the arraycontroller to 'avoid 
empty selection'. 

-- 
Luc Van Bogaert
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to