Is any default method to run MAC OSX application from another MAC OSX application instead of fork + exec. Language c/objective c ?
There are a variety of options.
Launch Services for C.
NSWorkspace & NSTask in Cocoa.
The open command-line utility.
Related
I have a custom Cocoa Based app on my Mac OS X 10.11 but I don't have the source code for it. I want to run UI Tests on it using Xcode 7.2.1 's UI Testing feature.
What I want to know is that how can I make my UI Test launch the target application and then record the steps that are then executed?
I'm trying to rest Finder from my code (in sandbox). One of the approaches that I tried is calling following apple script:
tell application \"Finder\" to quit
but it doesn't seem to work on the Mavericks. Any ideas?
You need to add the com.apple.security.scripting-targets sandboxing entitlement to script other apps from within the sandbox. Please check
How to run an AppleScript from a sandboxed application on a Mac (OS X)
I want to make an iphone app in corona which uses camera and audio recorder functionality but as far as i searched out, camera app is not supported on windows OS.
So am I not able to create such app on windows environment using corona SDK and need to switch to MAC OS??
Not being supported on windows means you cannot test on windows. If you test on the iPhone your app will work fine (if you made it correctly of course).
But you should not be developing for iOS on Windows, it is harder to debug, and you cannot upload it to apple store anyway,
You have to be on a Mac to build for iOS devices (or use a service like MacInTheCloud). Windows can only build for Android. You can develop on Windows but when you need to put it on a device, you will have to have access to a Mac.
Is there any way or function that can be used to obtain the expose effect in Mac, when a button is clicked?
I tried searching, but I had no luck, so far.
There is no API for this. AFAIK the only way to do it is to use NSWorkspace to launch either the Exposé app (Mac OS X versions < 10.7) or the Mission Control app (Mac OS X versions >= 10.7).
This code uses the com.apple.exposelauncher bundle ID which is the same for all versions of Mac OS X that ship with Exposé:
[[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:#"com.apple.exposelauncher"
options:NSWorkspaceLaunchDefault
additionalEventParamDescriptor:NULL
launchIdentifier:NULL];
I'm just starting off with IOS app dev. I was just curious to know if there are any sdk's in windows available to simulate the cocoa API.
In simple words can i program, compile and execute an Objective-C code on windows OS through any simulators, if any?
The original question was about running Cocoa apps on Windows, not developing iOS apps under Windows. There are a few projects that are attempting to implement the Cocoa APIs under windows, but I'm not sure how successful they are being. There is one at http://www.cocotron.org/ which looks promising.
Unfortunately, the only real way to do iOS development is in a genuine Mac environment.