> On Feb 20, 2015, at 7:45 AM, Bill Cheeseman <wjcheese...@gmail.com> wrote: > > I'm writing a single-window utility application in Xcode 6.1.1 on OS X > 10.10.2 using Swift 1.1. This code statement crashes: > > let panel = NSOpenPanel() > > For the first several days after I added this statement, it worked correctly > -- the panel opened and I was able to select a file in the panel and dismiss > it and process the file. Then yesterday, after changing some unrelated code > elsewhere in the application, it started crashing, and now it always crashes.
And then it stopped crashing, and then it started crashing again. Very mysterious and annoying. But I appear to have solved the problem, based on something I found by doing a broader Google search. At some point I had added a breakpoint for "All Exceptions." My latest Google search turned up a suggestion to limit this to "Objective-C Exceptions" because of some problem with NSOpenPanel in C++. As soon as I did that, all NSOpenPanel crashes stopped. -- Bill Cheeseman - b...@cheeseman.name _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com