Re: To Swiftly Crash

2015-04-27 Thread Charles Jenkins
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

Re: To Swiftly Crash

2015-04-26 Thread Quincey Morris
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

To Swiftly Crash

2015-04-26 Thread Charles Jenkins
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