Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] HTMLViewer.RenderWebsiteImageMBS is slow
Next thread: [MBS] OverlayMBS update and resize?


[MBS] Cocoa and MBS   -   Garth Hjelte
  [MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question   -   Marnaud
   Re: [MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question   -   Marnaud
   Re: [MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question   -   Christian Schmitz

[MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question
Date: 24.12.12 02:14 (Mon, 24 Dec 2012 02:14:03 +0100)
From: Marnaud
Greetings,

I'm trying the NSWorkspace.activateFileViewerSelectingFiles method, because I want to use the proper way to select files. According to Apple, this is the method to use when the Finder isn't running and is replaced by another browser.
In my case, I'm getting no selection (while other applications, like iTunes, successfully reveal the file in PathFinder) and this in the Console:
24.12.12 1:55:13 My Application.debug[12551] Error -600 on line 1336

To me, this log sounds like a compiled AppleScript (error -600 being when a called app isn't running); is the activateFileViewerSelectingFiles calling a script rather than actual events?
Also, the documentation says “Activates the Finder, and opens one or more windows selecting the specified files.”, so I'm wondering whether this is the true NSWorkspace call (which should handle alternative browsers). Perhaps the documentation should read “Activates the default browser (usually the Finder), and opens one or more windows selecting the specified files.”?

And I wish you a great Christmas!
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question
Date: 24.12.12 13:35 (Mon, 24 Dec 2012 13:35:52 +0100)
From: Marnaud
> On 24.12.2012, at 02:14, Marnaud <<email address removed>> wrote:
>
>> Greetings,
>>
>> I'm trying the NSWorkspace.activateFileViewerSelectingFiles method,…
>
> The plugin calls activateFileViewerSelectingURLs on NSWorkSpace class.
> And what this function really does, well, you'd have to ask Apple.

Ok, thanks.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] NSWorkspace.activateFileViewerSelectingFiles and alternate browser question
Date: 24.12.12 10:42 (Mon, 24 Dec 2012 10:42:15 +0100)
From: Christian Schmitz

On 24.12.2012, at 02:14, Marnaud <<email address removed>> wrote:

> Greetings,
>
> I'm trying the NSWorkspace.activateFileViewerSelectingFiles method,…

The plugin calls activateFileViewerSelectingURLs on NSWorkSpace class.
And what this function really does, well, you'd have to ask Apple.

Greetings
Christian

-