That’s it! Thank you, Quincey!
It no longer crashes if I put a question mark after replacementString:String
and then ignore XCode’s warning, but I went ahead and implemented the
“shouldChangeTextInRanges method instead. Thanks for the quick, correct
response!
--
Charles
On April 26, 2015
On Apr 26, 2015, at 12:40 , Charles Jenkins cejw...@gmail.com wrote:
Is this a disaster in Swift-to-ObjC bridging, or have I done something wrong
to cause it?
func textView( tv:NSTextView, shouldChangeTextInRange range:NSRange,
replacementString:String ) - Bool
The problem is that the
I’m experiencing a crash in what looks like Swift-library code in preparation
for a call from NSTextView to my delegate method. I put a breakpoint on my
method, but the crash seems to happen before actually getting into my code.
To see if the problem could be reproduced succinctly, I took an