I have created a JAVA application (JAR) for Windows & Mac.
This JAR has all the required UI.
I thus need to create a cocoa application without any UI.
Add this in info.plist
<key>LSUIElement</key>
<string>1</string>
Now the application doesn't appear in the dock and the menu bar won't be displayed.
All menu bar applications (menulets) work without an UI
Related
I have an application with FinderSync extension support.
I want to achieve silent update for this application. The only approach that I came up with at this moment, is installing the new version of the app into ~/Library/Application Support/../..., and whenever clicks the app from /Applications, redirect the user to Application Support one.
That means I will end up with two versions for the same app. One in /Applications and the other one in Application Support.
I have some issues after launching the application from both above locations.
If the user first starts the App from /Applications, selects Keep in dock, closes the app, updates the app by copying the new app to App Support and after that starts the app from App Support, I will end up with two dock icons.
Whenever I start the application, the FinderSync extension is automatically installed by the OS. It can be viewed in System Preferences->Extensions. Once the user quits the app and deletes the bundle, the OS automatically deletes the extension, so is no longer available in Extensions pref pane. However if I opened the application from both above locations, deleting the app from /Applications does not remove entirely the FinderSync extension from Extensions pref pane. Only after I remove the second application(the one from App Support), the FinderSync extension is removed from Extensions pref pane.
Are there any ways to overcome the above issues?
Please note that I have another question posted on a similar topic, while attempting to get rid of the above behavior using another technique, but I gave up using that approach a while ago:
OSX two dock icons for same application
Thanks
I set the icon as described in https://stackoverflow.com/a/12491626/67824 but it still shows as a generic app icon (grey screen with green "exec" text) in the dock and in the ⌘+tab application switcher (both when I run it from MonoDevelop and when I run it using mono foo.exe). I know it can be done, because when I run a mono-compliant version of LINQPad I'm seeing the LINQPad application icon.
I also use the SetIconFromFile method in the main window's class. Example below where my icon is copied to an Images folder at the root of my application:
this.SetIconFromFile(string.Format("{0}{1}Images{2}Logo.ico",
System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().Location),
System.IO.Path.DirectorySeparatorChar,
System.IO.Path.DirectorySeparatorChar));
I'm using the supplied "MvvmCross.WindowsPhone" template from within Visual Studio.
After making all the required changes, when you try and launch the app in the emulator - it just opens and then immediately crashes.
Firstly -when a win phone app exibits this behaviour - check the project properties - startup object. If this isn't set, then when the app launches it can't find what class it must use to initialize the app.
In this case, the startup object wasn't set, but there was nothing in the dropdown, even though there was an App file in the project.
I eventually pinned it down to the App.xaml that isn't marked with a build action of "ApplicationDefinition". (resulting in the startup object in project properties being blank.)
Unfortunately setting the correct build action didn't solve the problem.
Only when I set a different project as startup, and then moved back to the windows phone project, did the compilation work again.
Hopefully the template will be updated to set the correct build action for the App.xaml file.
I have a super weird issue. I'm developing an iOS-app and just recently I noticed that I can not find my app on my iPhone. It shows up in the list when searching for the app and when I try to build my app on Xcode it fails because of my app's Core Data model is different from the one I'm building in Xcode. So I need do delete my app from my iPhone but it's hard when I can't find the actual app at all.
I've tried restarting my iPhone to no avail and I have also browsed every screen in the springboard to find my app but it is just not there.
Xcode 4.5 and iOS 6.0.1
On iOS 6, when you search for an app in Springboard (the launcher), it shows the name of the folder containing the app (if the app is in a folder). That might help you find it.
But if you've installed the app using Xcode, there's an easier way to delete it. Choose Window > Organizer from the menu bar, then click the Devices tab in the Organizer window. Find your device in the list of devices and click the “Applications” row under your device. The Organizer will show you a list of all the apps you have installed on the device using Xcode. You can click on an app in the list, then press the delete key on your keyboard, or click the Delete button at the bottom of the window, to remove the app from the device.
I am developing an application for Symbian S60 V3. The application can be run properly on Simulator on PC. It can be transferred to Phone. On Phone, it can be clicked to installed. But after installation, I cannot find the installed application for running. It just disappear.
Is there any hint ?
Did you create the application with user interface? If it's just some bacjground process without icon and GUI then it won't be visible.
Did you check under Applications link (or Installed or whatever it is called in different systems).
Do you see your app listed in Settings -> Application Manager?