简体   繁体   English

向Growl注册我的应用程序时,如何定义.growlRegDict文件中使用的通知样式?

[英]When registering my application with Growl, how can I define what notification style to use in the .growlRegDict file?

I would like to force growl to use the Bezel style notification for all notifications in my application. 我想强迫咆哮对应用程序中的所有通知使用“边框样式”通知。

Considering a typical .growlRegDict looks something like the example below, is there a key/value that I can define in my application's .growlRegDict file that will set the default style for my application to the Bezel style. 考虑到典型的.growlRegDict类似于下面的示例,是否可以在应用程序的.growlRegDict文件中定义键/值,该键/值会将我的应用程序的默认样式设置为Bezel样式。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-    1.0.dtd">
<plist version="1.0">
<dict>
    <key>TicketVersion</key>
    <integer>1</integer>
    <key>AllNotifications</key>
    <array>
        <string>MyNotification</string>
    </array>
    <key>DefaultNotifications</key>
    <array>
        <string>MyNotification</string>
    </array>
</dict>
</plist>

After posting to the Growl Google group, I've found out that defining the alert style for your own application is not possible. 发布到Growl Google小组后,我发现无法为自己的应用程序定义警报样式。 Whatever the end user has configured as their preferred alert style overall or for each particular application is the style that will be used. 最终用户将总体上或针对每个特定应用配置为首选警报样式的是将使用的样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让应用程序在Mountain Lion上使用Lionl和Lion上的通知中心? - How to make an app use Growl on Lion and Notification Center on Mountain Lion? 如何在我的应用程序中使用选框? - How can i use marquee in my Application? 我的应用程序可以使用多少内存? 或者通常的是什么? - How much memory can my application use? or what is usual? 我如何保证在didFinishLaunchingWithOptions之前在视图控制器中注册通知? - How can I guarantee registering for a notification happens in a view controller before didFinishLaunchingWithOptions? 什么是XMPP,如何在iOS聊天应用程序中使用它? - What is XMPP, and how can I use it within an iOS chat application? 如何使用HTML 5访问本机应用程序中的数据库? - How can i use HTML 5 to acces database in my native application? 如何在我的 Objective-C header 文件中定义一个数组? - How can I define an array in my Objective-C header file? 如何在我的iOS应用程序中保留HTML文件? - How can I persist an HTML file in my iOS application? 注册推送通知时如何从设置包中启用推送通知类型? - How to enable push notification types from settings bundle when registering for push notification? 如何在iPhone应用程序中进行推送通知? - how can i do push notification in iphone application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM