[英]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.