Hey, I was wondering how I could make my app getting info about which apps that are currenly running on the mac. So I basiclly want to get the same information as the force quit does (Apple Logo > Force Quit)
Thank you in advance!
You can use -[NSWorkspace launchedApplications].
Related
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)
The emulator used to run fine, but as of late whenever i try to launch it, whether directly from the programs list or by running code in Visual Studio, the emulator will launch, stop responding and crash, then when I hit "close program" it will launch itself again, stop responding and crash again. I've looked everywhere and cannot get an answer to this issue.
Thanks
The only way i think is by reinstalling the product.
Just so you know, make sure that you're using the right version of the SDK for your OS (on PC) and using just the right emulator supported by your OS (pc).
Like for SDK 8.0, if you're developing Win8 app, use 'Device' for direct app deployment onto your phone or "Emulator WVGA 512MB" for optimized, memory-constrained output on your PC itself.
I'm looking for a way to modify the persistent dock menu of an application when said application is not running, or at least trying to find out if this is even possible?
I'm using Xcode and Cocoa in Mac OS X version >= 10.5
Thanks in advance
If your app is not in the App Store and does not use sandboxing, you can implement a NSDockTilePlugIn
Application get fail to launch in device having iOS 6.0 from xcode 4.5. Xcode says Application can't be launched timed out waiting for app to launch. I reset my all device settings. Cross checked if i choosed right provisioning. Yes, its right. here i am attaching image of console. Please help me out.
None of the above tips helped me. It turned out I was using my Distribution Profile instead of the Developer Profile in Debug mode. You can check the Profile you are using by going to
Build Settings->Code Signing Entity.
Make sure you are using your Developer Profile in Beta and Debug mode.
I had a similar issue when trying to debug an App with Ad-Hoc provisioning... Check which provisioning you're using, it seems ad-hoc provisioning cannot be used for debbuging.
Whenever this happens to me, I have done the following to fix the problem:
Stop the app from running in Xcode.
Delete the app from the device (or Simulator).
Select Product > Clean from the Xcode menu.
Close Xcode.
Close the Simulator (or restart the device).
Restart your computer (yes I know this like a Windows solution but seriously).
Try again.
I had a application that was written for iphone SDK3.2 and now I want that application to be upgraded to full fill multi tasking...
I just compiled it to SDK4.0 actually it has to get upgraded and when the home button is pressed it should 1st go to applicationWillResignActive and then it should goto
applicationDidEnterBackground but my application is not calling applicationDidEnterBackground but it is calling applicationWillTerminate...
Should I need to add any code to prevent this to happen if so, Please any one help me in solving this...
Waiting for reply...
~Raviraja
You need to setup the app to build as follows:
Base SDK: iPhone Device 4.0
iPhone OS Deployment Target: iPhone OS 3.0
They are two separate settings when in the Project > Edit Project Settings section of Xcode.
Hope that helps!
In your 'Info.plist', add 'Application does not run in background' and make sure the checkbox is NOT checked.
Source