Notification Center support
Christopher Forsythe
chris at growl.info
Wed Aug 1 22:41:55 UTC 2012
On Wed, Aug 1, 2012 at 4:50 PM, Peter Hosey <boredzo at adium.im> wrote:
> On Aug 1, 2012, at 12:32:17, Paul Wilde wrote:
> > I'm a bit hesitate on relying on Growl framework, as from what I gather
> this would make notifications grouped under Growl, which would raise
> question marks for users who haven't bought Growl and don't know what it is.
>
> My understanding is that notifications are only listed as from Growl if
> they went through Growl, which only happens if Growl is installed. Users
> who haven't bought Growl would continue to see them as directly from Adium.
>
> Chris, do I have this right?
>
>
>
Luckily I resubscribed to this list today. :)
So there was an email earlier today between a few people on this same
subject, and I'm going to take an excerpt from that email and paste it
here. It should address pretty much all of the questions you guys are
having, but if you have anymore just reply. Anyhow, here's the big overview:
1) The framework basically has a 'send to notification center' flag. If
Growl is not running, this flag is true. Alternatively, if Growl *is*
running, the framework will be told whether or not the big 'Use OS X
Notifications' switch is flipped, and the flag set from that.
2) If this flag is set to true, when the app generates a Growl
notification, the notification will also be packaged up and sent to
Notification Center. Since the app is sending the notification itself, it
appears with the appropriate app icon and title. If Growl is running, the
notification is also sent to Growl with a special GNTP header field set, to
mark that it's already been shown. Growl will then handle any
automation/actions necessary, but won't do the visual displays.
3) If the flag is set to false, notifications go to Growl as normal,
without the 'do not display this visually' GNTP header.
4) If Growl receives a notification without the 'do not display this
visually' bit set — such as from a legacy version of the framework — while
the 'Use OS X Notifications' switch is flipped to true, then it will pass
the notification on to Notification Center itself. The downside here is
that the notification will be sent by Growl rather than the host app, and
thus will have the Growl icon and title, though the subtitle portion is
used to label which app made it. On the upside, it means legacy Growl
notifications can appear in Notification Center.
In either case, Growl notifications passed to Notification Center are left
up for two minutes and then expired; this emulates Growl notifications
fading away and avoids cluttering Notification Center with 8 billion little
status notifications. If the 'sticky' bit is set, of course, the
notification is not expired.
In essence, you just write notifications like normal, and then things Just
Work. If the user has Growl installed, it uses their visual display or
uses Notification Center, as per the user's preferences. If the user does
not have Growl installed and is on Mountain Lion, it uses Notification
Center. If the user does not have Growl installed and is on Lion or Snow
Leopard, it uses the framework's built-in 'Mist' system.
--
Chris Forsythe
@The_Tick <http://twitter.com/The_Tick>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20120801/05b3c0a0/attachment-0002.html>
More information about the devel
mailing list