I’m not on OSX, but if you’re catching the error in Xcode you should be able to see the type of this
, which should include that.
Ok let’s stop here though. The code you quoted should trigger a compiler error, not a runtime one. Your program is running, so this is not the error you’re getting. Find out what is really the error you’re getting in the first place.