Mac OS X, application's developer name? - xcode

I have created an app for mac os x using xcode 4
In the build settings I see my name (the mac os x registered user's name)
Anyhow, I want to share the app but I don't want other to know that I created this app
So, is there a way to find out who created the app ?
If there's is how can I remove my name from the app ?
Thanks

It has some smell, to distribute an application anonymously. Anyway: You can change the information of your application by editing the Info.plist file inside your .app-bundle.
Right-click your application and select "Show package contents" from the context-menu. Open the folders and search for the "Info.plist" file. Open the file with TextWrangler, BBEdit oder the PropertyFile-Editor of XCode and search for your name. You can then simply replace it with anything else.
But remember:
An application should never ever been distributed without informations on the developer. The described method will only remove all "visible" informations on you. Informations on you that are part of the compiled binary won't be changed by this.

Related

How to change mac app name from executable?

I have a mac app. Let's say the app is myapp.app, and runs an executable called myapp. In the docker, when you hover over the icon, it says 'myapp'. I would like to change this so that the hover over says something different, such as My App.
This isn't a question how to do it once I'm on the mac, but how to build the app in such a way that this is the default behavior. I am constructing the .app on a Linux machine. Is this something that can be set in Info.plist or similar?
(I'm specifically wanting to have the display name have a whitespace in it, as it is two words, else I would change the executable name itself)
Unfortunately, Dock uses file system name. So you should change .app name to "My App.app"

Is it possible to disable mac gatekeeper by extension?

I want to be warned by Mac gatekeeper whenever I attempt to use an app for the first time that is not signed through the store. However, I'm having trouble using LibreOffice Vanilla by clicking on files with relevant extensions (eg .ods, .odt). It seems to consider each file a different app and I think needs me to authorize it individually. Double-clicking file yeilds '"myfile.odt” can’t be opened because it is from an unidentified developer.'
Right-clicking and using Open with ... LibreOffice Vanilla yeilds:
'"myfile.odt” is from an unidentified developer. Are you sure you want to open it?'
I don't find the 'help' at https://support.apple.com/en-ca/HT202491 helpful. How can I configure OS X so it lets me open LibreOffice files with a double-click yet still have GateKeeper check other new applications that are not signed?
You can bypass gatekeeper if you select a file type to "always open with" a certain type of program. Other programs that are not of this type will still invoke gatekeeper, so you won't have the security issues. So if you set your .odt file type to always open with libreoffice, the issue should go away.
See this:
https://apple.stackexchange.com/questions/193233/gatekeeper-wont-let-libreoffice-open-csv-files

Mac OSX: How to associate a directory as bundle

I am writing an app for Maverick.
The app creates a folder under /user/document, named "folder.db".
All the user related files will be in a folder "folder.db".
I would like to associate my app with "folder.db" directly, so that clicking on it would open my app and not the Finder.
How to achieve that?
Note: I tried to play with the UTI settings in xcode but not luck...
First .db is generally used for databases. So probably not a good idea. What you are looking for is a package or bundle in Cocoa terms. In Cocoa you want to look for the fileWrapper methods. Those create package/bundle files that are folders with a special flag bit set to make it act like an opaque file in Finder
You might want to study NSWorkSpace, NSFileManager, NSBundle, NSDocument and NSOpenPanel and NSSavePanel.
Those will get you on the path.

Add mouse right click option in Mac OS X like windows

I have requirement to add mouse right click option in folder or file list like windows explorer. Requirement is like below:
"There are some files with particular extension showed in Finder/folder list in Mac OS X. When user click on file with that particular extension I need to show my .exe or .app name which can open that file".
I want to know how to achieve this functionality in Mac OS X. In windows it is game of registry but I am not sure how to achieve same in Mac OS X.
You get this in the Info.plist file in your app bundle by specifying file extensions your application can open in the CFBundleDocumentTypes array.
http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-101685-TPXREF107
I tried that option. It is working fine and I am getting my application icon with that extension file and also my application is there in Default handler. But now issue is that this application I have created thru Qt and in main function of my application I am getting only application path in argv and argc and not the selected file. So let me know how to achieve this. If more information is required then please let me know. Thank you for valueable answer

Remove Sandboxing

I have another question dealing with app sandboxing. So I need access to the users' home directory and at the same time the app should be able to shut down the Mac. This requires to not using sandboxing.
My problem is that I don't know how to remove sandboxing and being able to submit the app to the Mac App Store. I think that the archives are sandboxed because I had turned it on once..
How to remove sandboxing from the archives properly?
Thanks for your help!
On Xcode 11, you can turn off Sandboxing by removing it from the Signing & Capabilities tab:
If I understand what you are asking correctly, you'll need to remove the entitlements.plist from your project and make sure that the Summary view of your target in Xcode has sandboxing turned off:
As Derek Wade pointed out, you can make an App like GarageBand X (which behaves obnoxiously with third party plugins like Amplitube due to Sandboxing) NOT run in a sandbox by editing the binary itself with a HEX editor like HexFiend. Look for:
<key>com.apple.security.app-sandbox</key>
Immediately following that bit you'll see the true tag, which as suggested I switched to 'fals' (no extra bytes) and now GarageBand will happily interact with third party VST plugins. Huzzah.
I found if you go into the .app package, under Contents/MacOS, there should be a binary file that matches the name of your app. Copy that file to your desktop. Edit the desktop copy of the file with TextEdit. You should find within the file, the text representation (xml) of the Entitlements for the app. Find the Sandbox entitlement flag (usually set to <true/>) and change it to <false/>. You will have to unlock the file when editing. Save the file (located on the desktop). Rename the original file in the .app package (i.e. append .old to the filename). Copy the desktop file back to the .app Package location (you may have to authorize it). This should remove the sandboxing.
You cannot remove Sandbox if the user ran you application via Sandbox.
That's the whole point - don't you think ?

Resources