Xamarin.Mac app that is not visible in Dock - macos

I have a Xamarin.Mac C# application that needs to run as a hidden daemon.
How do I tell my app to not show it's icon in the OS X dock?
Thanks!
EV

You can edit the Info.plist file in your project, create a new property on the Source tab of "Application is agent (UIElement)", and set it to the string of "1".
This is the same as manually setting LSUIElement to 1 in a text editor and tells OS X to launch the application as an agent.

Related

Trying to change the name that appears under the launcher icon on my iOS phone

I have a XF application. I thought I had changed everything but the name that appears on the phone under the app icon when I try on my phone locally is still an old name.
When running Xamarin on a Mac OS, does anyone know where to go to change this name for the iOS app?
In Info.plist change the value for keys CFBundleName & CFBundleDisplayName.
<key>CFBundleDisplayName</key>
<string>MY_APP_NAME</string>
<key>CFBundleName</key>
<string>MY_APP_NAME</string>
Using Visual Studio 17.0.4 I just double clicked on the Info.plist in the Solution Explorer. On the Application tab there is an Application Name field where you can change the name that appears under the icon. This ends up changing the MY_APP_NAME under the CFBundleDisplayName.

Change AssemblyName Based on Localized CFBundleDisplayName with Xamarin.Mac

Update:
Now it's an approved bug fo Xamarin.Mac. You can contribute from here:
https://github.com/xamarin/xamarin-macios/issues/7466
I coded a Xamarin.Mac app. I localized my app bundle name and bundle display name via InfoPlist.strings inside of "lproj" folders
with the help of Xcode.
Localized bundle name is visible on menu via app name now:
However, unlike Xamarin.iOS, Xamarin.Mac gets app Dock name from Assembly Name in Project options, not from "CFBundleDisplayName" :
So, my app name on the Dock icon could not response the localization settings, it stays unchanged.
So the important thing is:
How can I localize the "Assembly Name" in app options for Visual Studio Mac ? Thanks a lot.

xcode install cocoa project at launchpad

When I run my Mac OS X Cocoa project, Xcode says build succeeded and the application opens, but never appears as installed. When I go to launchpad I can't find the application. Seems it is only emulated. I need to watch how is shown in the launchpad with the icon and the title. How can I install the application from the xcode?
I have xcode 6.1.
Need help please.
Thanks in advance.
Only Apps inside of /Applications and ~/Applications are displayed in Launchpad. When you launch from Xcode the apps are copied to a temporary build directory. So you have to copy your app to the correct location.
If you only want the Debug version, because you want to test your app, you can simply locate the app bundle in Finder:
Open the Products group in Xcode, right click the .app file and select "Show in Finder". In Finder simply drag & drop the app into the Applications folder.
If you need the Release version you can archive the app. Select Product/Archive in the Xcode menu.
In the Organizer you choose Export, in the Export wizard you select "Export as Mac Application". You can directly save it into the Applications directory, or save it somewhere else and copy or move it into the Applications directory

Air application icon in mac does not accept any file drop to launch itself

Double clicking the icon does launche the application but it do not accept files to launch itself.
But in windows same application icon accepts the file and launches it.
I'm using
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,
onInvokeEvent);
to start the app if some file is dropped on it. Windows does it, mac does not. Any expertise?
Flex documentation says:
File type association
To associate your application with public or custom file types on Mac OS X, you must edit the info.plist file in the bundle to set the CFBundleDocumentTypes property. See Mac OS X Developer Library: Information Property List Key Reference, CFBundleURLTypes.

Use application loader to upload Mac OS X binaries to itunesconnect?

I added a new application for the new Mac OS X app store and the status is "waiting for upload", but when I launch the application loader it tells me "No eligible applications were found". I have ensured I am using the correct itunesconnect login by running the setup wizard from the application loader menu, but it still tells me I do not have any eligible applications for upload. Do I use the application loader to upload Mac OS X binaries? or is that just for ios applications?
This is a step by step explanation by Apple: https://developer.apple.com/appstore/mac/resources/submission/
Otherwise use my small turtorial:
You have to add an application entry:
https://itunesconnect.apple.com
Goto "Manage Your Applications"
Then click the blue button "Add new App"
Select "Mac OS X App" (if it is not available you need to buy the membership)
Fill in all required steps
Restart the Application Loader, your App will occur.
Check also this: http://developer.apple.com/devcenter/mac/documents/submitting.html#//apple_ref/doc/uid/TP40010572-CH16-SW5

Resources