Re: NSOpenPanel() crash in Swift 1.1 -- SOLVED?
Re: NSOpenPanel() crash in Swift 1.1 -- SOLVED?
- Subject: Re: NSOpenPanel() crash in Swift 1.1 -- SOLVED?
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 23 Feb 2015 15:00:33 -0500
> On Feb 20, 2015, at 7:45 AM, Bill Cheeseman <email@hidden> 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 - email@hidden
_______________________________________________
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