Re: 4Dv16 VM app still not playing nice with Finder

2017-07-23 Thread Keisuke Miyako via 4D_Tech
ACI0097097: On Drop is not fired during 'boot time' ...would it not be possible to do the same test in On Startup? 2017/07/24 2:21、Steve Slanec via 4D_Tech <4d_tech@lists.4d.com> のメール: As far as I know, there is no other way to tell what datafile was used to launch

Re: 4Dv16 VM app still not playing nice with Finder

2017-07-23 Thread Steve Slanec via 4D_Tech
Hey guys I’m returning to this thread after a month or so because I had a discussion with 4D tech support. Apparently there is a bug in On Drop, and it is not behaving as per the documentation. Specifically, here are the steps to drive the bug: - Create a new database. I am using 4D v16 R2

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-30 Thread Keisuke Miyako via 4D_Tech
quick correction 2017/06/30 21:23、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> のメール: If ($path="@.4dd") | ($path="@.data") OPEN DATA FILE($path) $0:=-1 End if the application will restart the moment OPEN DATA FILE (or RESTART 4D) is called, so the following

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-30 Thread Keisuke Miyako via 4D_Tech
you are over thinking it. just put something like C_LONGINT($0) $path:=Get file from pasteboard(1) If ($path="@.4dd") | ($path="@.data") OPEN DATA FILE($path) $0:=-1 End if > 2017/06/30 16:02、Steve Slanec via 4D_Tech <4d_tech@lists.4d.com> のメール: > > When I add $0:=-1 to the end of my On Drop

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-30 Thread Steve Slanec via 4D_Tech
Yeah, I’ve been trying to figure out how to intercept that call. Maybe from a plugin during initialization? As you suggested, I have a splash screen that shows what datafile is being opened, along with “Open other” and “Create new” buttons. But like you said, it is not an elegant solution.

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-30 Thread Steve Slanec via 4D_Tech
> On Jun 29, 2017, at 3:56 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > the primary file that 4D should open is always the structure file, not the > data file. > > that said, if you insist on drag and drop of a data file (which is wrong), Sorry Keisuke, I am really

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Keisuke Miyako via 4D_Tech
the primary file that 4D should open is always the structure file, not the data file. that said, if you insist on drag and drop of a data file (which is wrong), you can use the On Drop database method. http://doc.4d.com/4Dv15/4D/15.4/On-Drop-Database-Method.300-3274338.en.html and $0:=-1 to

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Chip Scheide via 4D_Tech
Hint : I do not develop a VM app. I think that you would have to find/intercept the OS level call to 4D to determine the (data) file that was dragged onto your application. I do not know how you would do that. An annoying but possible solution: always when opening the database ask (in a

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Steve Slanec via 4D_Tech
Hi Chip Thanks for the suggestion, but unfortunately no luck. When I launch my app by dragging a datafile on top of the app icon, in On Startup I call GET PASTEBOARD DATA and Get text from pasteboard, but both of those just return the last copied text from the previous app. I also tried

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Chip Scheide via 4D_Tech
I do not know that this would work... but when you drag n drop a file form the finder the path is placed on the clipboard. maybe, during startup see if the clipboard contains a valid path, if so then use Open Data file to open that file. Chip On Thu, 29 Jun 2017 12:23:42 -0700, Steve Slanec

Re: 4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Steve Slanec via 4D_Tech
Hi Keisuke - Thanks for your response. I have looked at that feature, and I can see how it is useful for the first time my app is launched. In fact, I already built that mechanism into my app by setting the DataFilePath key in the XML build file to a dummy datafile embedded within the

4Dv16 VM app still not playing nice with Finder

2017-06-29 Thread Steve Slanec via 4D_Tech
I have struggled for years to get my 4D vertical market app (i.e. built with 4D Volume Desktop) to behave correctly in the Mac OS Finder. Specifically, my app misbehaves in several ways: 1. When a user double-clicks on a datafile to launch and open my app, the app does not open that file.