[OSX 10.10] Keyboard problem with executables
Posted: Mon Jun 08, 2015 10:51 pm
Hello Mac experts...
PB lets us build Mac executables without a .app bundle (see the Help):
Try building this as a non-app executable (might need to create a Project and Build Target)
Then run it from Terminal or Finder and try to type into the SaveFileRequester.
Is this a bug? Is there a workaround? Or is this expected behavior on OS X? Maybe I'm forced to build a complete .app for any commandline program which might open a Requester?
EDIT: I tried compiling to a .app and copying the executable out of the .app Contents, but it didn't make a difference (executable seems to be identical whether in an app or not). For some reason, running via .app gets keyboard input (even launched from a Terminal) but running an executable directly sends keyboard input to the console...
PB lets us build Mac executables without a .app bundle (see the Help):
I like to use this feature for commandline console programs. But with PB 5.31 / OS X Yosemite, if I call Requester functions from this type of executable, I can't type anything into them! (The keyboard input seems to go to the terminal instead.)When creating an executable on OS X, appending '.app' at the executable name will create a bundled executable with the necessary directory structure, including the icon. If no '.app' is set, then it will create a regular console-like executable.
Try building this as a non-app executable (might need to create a Project and Build Target)
Code: Select all
SaveFileRequester("Title", GetCurrentDirectory(), "All Files|*.*", 0)Is this a bug? Is there a workaround? Or is this expected behavior on OS X? Maybe I'm forced to build a complete .app for any commandline program which might open a Requester?
EDIT: I tried compiling to a .app and copying the executable out of the .app Contents, but it didn't make a difference (executable seems to be identical whether in an app or not). For some reason, running via .app gets keyboard input (even launched from a Terminal) but running an executable directly sends keyboard input to the console...