Should i use Growl on a mac app? - macos

I design an app for mac (new in cocoa) and i need to use a notification on monitor. I was going to implement growl. But i see that growl now is not free at App Store. So i wondered if it will still be the default notification manager on macs.
So do you think that i should use Growl for my screen notifications? If not any other suggestions?

It's not free, however you can download a standalone Growl library that allows your app to show Growl notifications without actually having to install Growl on the user's Mac.
Please refer to Growl's website for more info.
With that said, yes, using growl is recommended due to the familiarity it enjoys. If you are gonna support Mac OS X 10.8+, however, I'd say just use the new Notification Center.

Related

Floating widget application on LG webOS Smart TV

I want to write an application in webOS as a widget that will be visible(floating) when other applications are running. Is this possible? I am unable to find any documentation related to this.
I'm not sure about it. I'm never see that behaviour in third party apps, only system apps are able to use 'overlay' feature in alerts and notifications dialogues according to WeOs developer site
http://webostv.developer.lge.com/design/webos-tv-system-ui/notifications/

how mac App get notification when user shake mouse(cursor become larger) in 10.11

when in 10.11, a new feature is brought: user can shake mouse to find cursor(cursor become larger).
my mac app want to get notify when user does this.
is there a way or any clue?
Apple engineers have reviewed my request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations. Application's can not be notified when the user activates the cursor location assistance feature.

Is it possible to implement dynamic notifications on Apple Watch without a launchable app?

I've designed a custom notification for an app I'm working on for Apple Watch. The notifications look good but because of the current technical limitations I don't want to build a launchable app or glance until I have mic and speaker access. Is it possible to display dynamic notifications without having an app icon on the home screen of the watch or is the watch app mandatory to have a dynamic notification at all?
No, you will need to add a dynamic Notification scene in your Watch app.
If you want to read more information about this I'd refer you to this page:
https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/CustomzingthePushNotificationInterface.html#//apple_ref/doc/uid/TP40014969-CH6-SW1

Recognize the Host App in an iOS8 Custom Keyboard

How do I recognize in which host app my keyboard is running?
Basically, I want to change some things in my custom keyboard in specific apps
Maybe I can customize the keyboard traits to my use?
Thanks
This is not possible unless it is one of your own app, or you have some kind of collaboration with the running app.
A custom keyboard and a running app can communicate with Darwin notification. The running apps needs to broadcast the darwin notification, and keyboard needs to observe that. So if the developer is not already broadcasting it, then you can't identify it.

Can Mac App Store Sandboxed apps use CGEventPost?

For an app I am working on I am using CGEventPost to post some key events and I noticed that it stopped working with sandboxing enabled, even I turned on the "Enable Access for Assistive Devices" system preference.
Is there an entitlement to allow the use of CGEventPost? Or, is there another way to post key events with apps submitted to the Mac App Store?
Can Mac App Store Sandboxed apps use CGEventPost?
No.
Is there an entitlement for CGEventPost? Or is there any way to post key events with apps submitted to the Mac App Store?
No.
If you look at the developer forums, Apple has made it very clear that they will never enable an entitlement for this, because it allows a blatantly obvious way for any app to escape the sandbox.
If you have some more specific need that you can justify (not "post some key events" but "get iPhoto do to XXX, which as far as I know can only be done by posting event YYY at it"), file a bug report, and post a thread on the dev forums.
This will do two things:
Someone at Apple may suggest a workaround--possibly a private one that nobody else can tell you and/or one that isn't normally allowed on the App Store but will be accepted if you've been told to use it.
It increases the chances that Apple will invent some better way to do what you want in the future.
Old question, but accepted answer is wrong. There are apps in Mac App Store that are using CGEventPost to simulate events. For example apps "Remote Mouse" and "Mobile Mouse Server" do that. They can send input to any other app and based on symbols in those apps they are clearly using CGEventPost-function. I would like to know how are they doing it.

Resources