mac-app-store

How to create a helper application (LSUIElement) that also has a (removable) dock icon

孤者浪人 提交于 2019-11-28 12:20:44
I've submitted a helper application (using LSUIElement)to the Mac App Store. I was under the false impression that the App Store install process would put a dock icon for helper apps. How can I create a dock icon that the user could remove, while the status bar app runs independently (like the popular app Caffeine)? Do I need to create a non-LSUIElement app that loads the LSUIElement app, or is there a better way? Instead of using LSUIElement, use NSApplication's setActivationPolicy: method. By default, the application will have a dock icon, but by changing the activation policy to

Dropping promised files on to application icon in Dock

混江龙づ霸主 提交于 2019-11-27 18:41:13
问题 Is it possible to open promised files NSFilesPromisePboardType in sandboxed application when dropping on to application icon in Dock? The Dock icon is accepting the drop, but -application:openFile: is never called. The only reference I found are pre sandbox: Accepting iCal events dropped on my application's icon rdar://47917787 回答1: Let's break this down: NSApplication and NSDocumentController in NSDocument based apps gives you -application:openFile: or -openDocumentWithContentsOfURL:display

Global events, the Mac App Store, and the sandbox

末鹿安然 提交于 2019-11-27 16:42:54
问题 I'm working on an app where using global key-down events will be a requirement for its operation. Additionally, I plan on distributing this strictly via the App Store. (It's a Mac app, not iOS.) I've gotten an example of listening for the global events working via addGlobalMonitorForEventsMatchingMask, but with caveats. Note: I am making the choice to use the modern API's and not rely on the earlier Carbon hotkey methods. In the event that they are deprecated eventually, I don't want to have

How to create a helper application (LSUIElement) that also has a (removable) dock icon

无人久伴 提交于 2019-11-27 06:54:59
问题 I've submitted a helper application (using LSUIElement)to the Mac App Store. I was under the false impression that the App Store install process would put a dock icon for helper apps. How can I create a dock icon that the user could remove, while the status bar app runs independently (like the popular app Caffeine)? Do I need to create a non-LSUIElement app that loads the LSUIElement app, or is there a better way? 回答1: Instead of using LSUIElement, use NSApplication's setActivationPolicy:

Which iOS app version/build number(s) MUST be incremented upon App Store release?

Deadly 提交于 2019-11-26 23:36:37
Version/build fields for an iOS app include: "Version" CFBundleShortVersionString (String - iOS, OS X) specifies the release version number of the bundle, which identifies a released iteration of the app. The release version number is a string comprised of three period-separated integers. "Build" CFBundleVersion (String - iOS, OS X) specifies the build version number of the bundle, which identifies an iteration (released or unreleased) of the bundle. The build version number should be a string comprised of three non-negative, period-separated integers with the first integer being greater than

Which iOS app version/build number(s) MUST be incremented upon App Store release?

梦想的初衷 提交于 2019-11-26 09:15:58
问题 Version/build fields for an iOS app include: \"Version\" CFBundleShortVersionString (String - iOS, OS X) specifies the release version number of the bundle, which identifies a released iteration of the app. The release version number is a string comprised of three period-separated integers. \"Build\" CFBundleVersion (String - iOS, OS X) specifies the build version number of the bundle, which identifies an iteration (released or unreleased) of the bundle. The build version number should be a

Codesign of Dropbox API fails in Xcode 4.6.3: “code object is not signed at all”

大憨熊 提交于 2019-11-26 09:06:52
问题 I have an OS X app that\'s distributed through the Mac App Store, and recently updated to Xcode 4.6.3. When I run my regular build now, I receive: Command /usr/bin/codesign failed with exit code 1: /Users/Craig/Library/Developer/Xcode/DerivedData/Mac-dxcgahgplwpbjedqnembegifbowj/Build/Products/Debug/MyApp.app: code object is not signed at all In subcomponent: /Users/Craig/Library/Developer/Xcode/DerivedData/Mac-dxcgahgplwpbjedqnembegifbowj/Build/Products/Debug/MyApp.app/Contents/Frameworks