• 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
Re: NSOpenPanel stopped working in some apps on Sierra
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel stopped working in some apps on Sierra


  • Subject: Re: NSOpenPanel stopped working in some apps on Sierra
  • From: Leo <email@hidden>
  • Date: Thu, 08 Dec 2016 00:32:39 -0500

Thanks,

I found out what the problem was - but my emails to the list ended up being empty... hmm... another issue to solve?

Anyway, in brief:

I had NSSplitView's -dividerThickness method defined as a category with some custom thickness - instead of subclassing NSSplitView. Not a good idea, but it was years ago and I didn't know it back then. It did affect the divider thickness in NSOpenPanel too but didn't cause any problems until Sierra.


Leo





On 12/7/16 10:43 PM, じょいすじょん wrote:
On 2016 Dec 8, at 9:22, Jens Alfke <email@hidden> wrote:


On Dec 7, 2016, at 3:16 PM, Leo <email@hidden> wrote:

Any attempt to call it with runModal results with the following errors:

   [General] *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
   [General] (null)
What’s the backtrace?

Chances are there’s something messed up in the defaults the open-panel stores. If you look at the apps’ defaults and delete any that have “OpenPanel” in the name, that might fix things. (But it’d be a good idea to capture a dump of the defaults first, and put that in a bug report to Apple.)

—Jens
_______________________________________________
I would add that without the stacktrace and without showing code, it's pretty hard to do anything for you beyond guessing.

_______________________________________________

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


References: 
 >NSOpenPanel stopped working in some apps on Sierra (From: Leo <email@hidden>)
 >Re: NSOpenPanel stopped working in some apps on Sierra (From: Jens Alfke <email@hidden>)
 >Re: NSOpenPanel stopped working in some apps on Sierra (From: じょいすじょん <email@hidden>)

  • Prev by Date: Re: NSOpenPanel stopped working in some apps on Sierra
  • Next by Date: preprocessors to check for header inclusions
  • Previous by thread: Re: NSOpenPanel stopped working in some apps on Sierra
  • Next by thread: Re: NSOpenPanel stopped working in some apps on Sierra
  • Index(es):
    • Date
    • Thread