• 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
Re: TableviewSelectionDidChange(_:) not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableviewSelectionDidChange(_:) not called


  • Subject: Re: TableviewSelectionDidChange(_:) not called
  • From: Luc Van Bogaert <email@hidden>
  • Date: Mon, 30 Nov 2015 21:18:24 +0100

> On 30 Nov 2015, at 20:28, Quincey Morris <email@hidden> wrote:
>
> On Nov 30, 2015, at 11:07 , Luc Van Bogaert <email@hidden <mailto:email@hidden>> 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 (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


  • Follow-Ups:
    • Re: TableviewSelectionDidChange(_:) not called
      • From: Quincey Morris <email@hidden>
References: 
 >TableviewSelectionDidChange(_:) not called (From: Luc Van Bogaert <email@hidden>)
 >Re: TableviewSelectionDidChange(_:) not called (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Self and associated type requirements (yes again!)
  • Next by Date: Re: NSWindow
  • Previous by thread: Re: TableviewSelectionDidChange(_:) not called
  • Next by thread: Re: TableviewSelectionDidChange(_:) not called
  • Index(es):
    • Date
    • Thread