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
Related
I have written an OSX 10.9+ app which works fine on all my test machines but two people with laptops have so far said the app opens (shows light under icon) but shows no window but will show the menu for the app with no drop down, it can highlight but does nothing else.
I can't for the life of me figure out why this is happening. I have checked Initial Controller is set in the storyboard. The plist looks ok. No complaints in console. Works on an old iMac from 2007, a Mac Pro 6 core and a New Retina iMac all with Yosemite.
Both cases where it doesn't open are on OSX 10.9.5
This is the screenshot of how it should look when opened:
The app is currently available for free, if anybody can shed some light on it I would be much appreciated.
https://itunes.apple.com/gb/app/bubble-tuner-realtime-chromatic/id972729737?mt=12
Thanks
Geoff
Storyboards are not compatible with OS X prior to v10.10:
NSStoryBoard Class Reference
Availability
Available in OS X v10.10 and later.
I experienced the same thing with a project; only nib/xibs work for OS X < v10.10.
I can't find any information on how to enable App Sandboxing with XCode on Snow Leopard? It seems like it's not possible but maybe one of you experts can confirm this or is there any workaround possible? Any hint will be valuable.
Thanks!
If you're going to develop a Sandboxed app, you really should be developing on at least 10.7.5 (preferably 10.9.1 at this point), since 10.7 was the first version of OS X to support sandboxing. Even if you could manage to build a sandboxing-enabled app on 10.6.8, you won't be able to properly test it.
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];
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].
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