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 protected]> wrote:
On Dec 7, 2016, at 3:16 PM, Leo <[email protected]> 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 protected])
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 [email protected]