• 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
To Swiftly Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To Swiftly Crash


  • Subject: To Swiftly Crash
  • From: Charles Jenkins <email@hidden>
  • Date: Sun, 26 Apr 2015 15:40:40 -0400

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 old demo program and made its Document class implement NSTextViewDelegate. Now exactly the same crash happens in that project, which you can find at https://github.com/CharlesJenkins/ZoomableTextView

To see the crash, just run the program, select a word in the editor, and press Command-B. (The crash won’t happen for normal typing, and if you comment out the line that sets the text view delegate, Command-B will work normally.)

Is this a disaster in Swift-to-ObjC bridging, or have I done something wrong to cause it?

— 

Charles
_______________________________________________

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: To Swiftly Crash
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Weird UITableView problem
  • Next by Date: Re: To Swiftly Crash
  • Previous by thread: Re: Yet more new information. Was: Re: Weird UITableView problem
  • Next by thread: Re: To Swiftly Crash
  • Index(es):
    • Date
    • Thread