腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(127)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
NSUserNotification
关闭调用didActivateNotification
自MacOS 10.13以来,每次单击
NSUserNotification
上的“关闭”按钮时,它都会调用:如何防止这一点或处理close和action按钮
NSUserNotification
*notification = [[
NSUserNotific
浏览 8
修改于2017-10-10
得票数 3
回答已采纳
1
回答
NSUserNotification
状态
是否有一种方法可以确定某个
NSUserNotification
是否仍在屏幕上,还是已被驳回?我还没找到办法。
浏览 4
提问于2012-08-18
得票数 3
2
回答
如何使
NSUserNotification
超时?
我正在使用这个方法: notification.title
浏览 1
提问于2014-09-16
得票数 0
1
回答
NSUserNotification
的风格
只有当用户在系统偏好设置中将我的应用程序的通知样式设置为"alerts“时,
NSUserNotification
才会显示操作按钮。
浏览 0
修改于2013-01-01
得票数 13
回答已采纳
1
回答
始终显示
NSUserNotification
当我的应用程序中发生了一些事情时,我会让我的
NSUserNotification
显示文档。有没有办法显示通知,即使应用程序是最前面的应用程序(即,始终显示它)?
浏览 0
提问于2013-04-20
得票数 3
回答已采纳
1
回答
didActivateNotification没有响应
NSUserNotification
implementation Notice [notification setTitle:[message valueForKey:@notification]; - (void) userNotificationCe
浏览 0
提问于2012-11-03
得票数 1
回答已采纳
1
回答
NSUserNotification
和UNUserNotification在macOS中有什么区别?
MyNotificationDelegate: NSObject { let notification:
NSUserNotification
=
NSUserNotification
() notification.informativeText = message我是
NSUserNotification
。 我也见过。我是UN
浏览 7
提问于2020-10-09
得票数 2
回答已采纳
1
回答
点击显示
NSUserNotification
additionalActions
在上面的图片中,您可以在OS上看到两个通知,第一个来自我的应用程序,第二个来自苹果的Reminders.app。在图像中,您可以看到otherButtonTitle‘完全’和actionButtonTitle‘稍后’。但是,我无法获得相同的行为来处理我的通知。我没有得到鼠标上的小箭头,我没有得到更多的选项显示在一个‘稍后’(通知只是被驳回)。更多的选项只有在按住“稍后”上的鼠标按钮时才会显示,这一点并
浏览 1
提问于2015-11-10
得票数 5
回答已采纳
2
回答
一定时间后隐藏
NSUserNotification
目前,当我使用Alert样式创建一个
NSUserNotification
时,除非手动关闭它,否则它不会隐藏。有什么办法能让我在2秒后自动关闭/隐藏它吗?
NSUserNotification
代码可供参考:notification.title
浏览 3
提问于2015-12-22
得票数 6
回答已采纳
4
回答
NSUserNotification
未显示操作按钮
applicationDidFinishLaunching:(NSNotification *)aNotification // Insert code here to initialize your application [notification setTitle: @"Title"]; [notification
浏览 2
提问于2012-07-27
得票数 40
回答已采纳
1
回答
NSUserNotification
发出声音但不显示
我的
NSUserNotification
正在交付,播放给定的声音,但如果我的应用程序不是最顶层的应用程序,则无法在屏幕上直观显示。
NSUserNotification
*notification = [[
NSUserNotification
alloc] init]; [notification setTitle- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center shouldPresentNot
浏览 9
提问于2015-01-22
得票数 1
1
回答
用NSWindow激活
NSUserNotification
我试过: - (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(
NSUserNotification
浏览 4
修改于2013-10-31
得票数 1
回答已采纳
1
回答
NSUserNotification
-点击时如何打开应用程序
我使用
NSUserNotification
来显示通知。这很好用。问题是当您单击通知时:
NSUserNotification
*notification = [[
NS
浏览 2
修改于2012-11-03
得票数 10
回答已采纳
1
回答
显示
NSUserNotification
的横幅,而app位于最前端
func userNotificationCenter(center: NSUserNotificationCenter, shouldPresentNotification notification:
NSUserNotification
true我试过一些句子,比如:var notification:
NSUserNotification
=
NSUserNotification
() var notif
浏览 6
修改于2015-08-07
得票数 1
回答已采纳
1
回答
NSUserNotification
提交了委派?
当
NSUserNotification
在超时后消失时,是否有回调?
浏览 2
提问于2012-08-17
得票数 0
2
回答
来自纯C++的
NSUserNotification
int main(int argc, char** argv) id notif = (id)objc_getClass("
NSUserNotification
浏览 20
修改于2017-12-12
得票数 0
回答已采纳
1
回答
NSUSerNotification
的自定义视图
有没有办法在Mac中将自定义视图或窗口显示为
NSUserNotification
?我想要显示额外的信息,比如图像,但据我所知,使用标准
NSUserNotification
无法做到这一点。
浏览 0
提问于2013-01-16
得票数 1
回答已采纳
2
回答
基于每个通知的
NSUserNotification
更改通知图像/徽标
在安排向NSUserNotificationCenter发送
NSUserNotification
时,是否有办法设置在每个通知的通知旁边显示的图像/徽标?
浏览 3
修改于2012-11-11
得票数 2
回答已采纳
1
回答
NSUserNotification
可定制应用图标?
有没有我不知道的无文档的
NSUserNotification
API?
浏览 2
提问于2014-07-24
得票数 9
回答已采纳
1
回答
如何处理
NSUserNotification
关闭事件
我以这种方式显示一个通知:notification.title = "Title lorem ipsum"func userNotificationCenter(_ center: NSUserNotificationCenter, didActivate notification:
NSUserNotification
浏览 0
修改于2017-10-01
得票数 2
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
点击加载更多
领券