Dominique Louis napsal(a):

Hi all,
  The basic conversion is now over, so the debugging begins.

When the application is started via the Application Bundle a strange parameter is passed to the executable as the first parameter. The parameter looks like this "-psn_0_nnnnnnnn", where the ns represent some number value that changes every time the application is run. What is this parameter? This application uses the first parameter to load up a data file, so this is throwing things out abit.

Any guidance welcome.

Hi,
I think you can't rely on parameters when you execute app via Application bundle. You can use OnDropFiles event of TApplication or main form, where you can detect files dropped on the app dock icon or to be opened by your app (for example via "open -a your.app file"). Note that it must be a file.

Tom

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to