aNotification's object no longer = the object it should.

Had a hard time thinking up a title for this.

I’m updating an app I built in Xcode 5 Yosemite to Xcode 8 Sierra. The app stopped registering table view selection changes.

I see it’s still calling tableViewSelectionChanged_(aNotification) but where I have

if aNotification's object = theLayerTable then

it doesn’t recognize it even though they are equal. If I log aNotification’s object and theLayerTable they log as equal but they aren’t equal in my if/then.

Why? Do I need to coerce something?

Try something like this:

   if (aNotification's object()'s isEqualTo:theLayerTable) as boolean then


Thanks a ton!