• 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
Curious bug in oPanel under Mojave in screensaver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Curious bug in oPanel under Mojave in screensaver


  • Subject: Curious bug in oPanel under Mojave in screensaver
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Thu, 28 May 2020 13:39:40 +0200

I have screensaver where the user can select a folder through the options sheet.
In that sheet,  I open an NSOpenPanel, make a few settings, runModal,
let the user navigate and choose a folder, then get oPanel.URL.
(Complete code below.)

The curious thing is:
The oPanel returns only the folder that appeared at the top of the dialog in
the dropdown.
In other words, when a user navigates to some folder A, then clicks on a folder
B inside A,
then closes the panel (clicking "Open"), then oPanel.URL still returns A.
The user has to navigate *into* B for the oPanel to return B.

This funny behavior seems to occur only under Mojave (not Catalina),
and it seems to occur only in the screensaver.
Exactly the same code under Mojave works as expected when used in a stand-alone
app.

My question is: does anyone have an idea what might be causing this?
Am I missing something?
Or is it "just" a bug in AppKit or the screensaverengine under Mojave?

Thanks a lot in advance for all kinds of hints and insights.

Best regards, Gabriel


Enc:

Complete code for my open dialog:

    NSOpenPanel *oPanel = [NSOpenPanel openPanel];
    [oPanel setDirectoryURL: dir];
    [oPanel setAllowsMultipleSelection: NO];
    [oPanel setCanChooseDirectories: YES];
    [oPanel setCanChooseFiles: NO];
    long int result = [oPanel runModal];
    new_url = oPanel.URL;



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Curious bug in oPanel under Mojave in screensaver
      • From: Stephane Sudre via Cocoa-dev <email@hidden>
    • Re: Curious bug in oPanel under Mojave in screensaver
      • From: Steve Mills via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Is CGImage... thread-safe?
  • Next by Date: Re: Curious bug in oPanel under Mojave in screensaver
  • Previous by thread: Re: Localization under Catalina
  • Next by thread: Re: Curious bug in oPanel under Mojave in screensaver
  • Index(es):
    • Date
    • Thread