腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(97)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
创建自定义
NSUserNotificationCenter
实例
如何创建新的自定义
NSUserNotificationCenter
实例?我不是指[
NSUserNotificationCenter
defaultUserNotificationCenter],我指的是像[
NSUserNotificationCenter
new]这样的东西
浏览 6
提问于2013-06-23
得票数 0
回答已采纳
1
回答
NSUserNotificationCenter
defaultNotificationcenter返回nil
只有一个小问题:无论我在程序中的什么地方调用,[
NSUserNotificationCenter
defaultUserNotificationCenter]都会始终返回nil。像[[
NSUserNotificationCenter
defaultUserNotificationCenter] setDelegate:myDelegate]这样的东西不会崩溃,但我非常确定这是因为您可以在(这是将[
NSUserNotificationCenter
defaultUserNotificationCenter]的委托设置为为userNotific
浏览 0
提问于2014-06-28
得票数 4
1
回答
NSUserNotificationCenter
:启用了吗?
在MacOS 10.8上,如何确定通知中心是否启用?我需要知道这一点才能选择如何通知用户。
浏览 1
提问于2012-08-06
得票数 0
回答已采纳
4
回答
NSUserNotificationCenter
未显示通知
userNotification.title = @"Some title"; [[
NSUserNotificationCenter
浏览 12
提问于2013-04-09
得票数 1
1
回答
macOS中的
NSUserNotificationCenter
AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDelegate { self.NScenter.deliver(notification) func userNotificationCenter(_ center:
NSUserNotificationCenter
我试着改用这
浏览 30
修改于2018-08-01
得票数 0
回答已采纳
3
回答
NSUserNotificationCenter
解除通知
我正尝试在我的应用程序中使用新的Mountain Lion
NSUserNotificationCenter
(实际上这并不太难)。init];userNotification.informativeText = @"Some text"; [[
NSUserNotificationCenter
在那里我调用[
NSUserNotificationCenter
defaultUserNotificationCenter] r
浏览 10
修改于2012-08-25
得票数 20
回答已采纳
1
回答
$.
NSUserNotificationCenter
('defaultUserNotificationCenter')返回null
我尝试通过node和NodObjC向通知中心发送通知,但问题是:是否始终返回
浏览 0
修改于2017-12-14
得票数 6
1
回答
斯威夫特
NSUserNotificationCenter
didActivateNotification不工作
notification.actionButtonTitle = "Lookup" var center:
NSUserNotificationCenter
=
NSUserNotificationCenter
.defaultUserNotificationCenter() center.scheduleNotification(notification) func notify
浏览 7
提问于2014-12-11
得票数 7
回答已采纳
1
回答
何时应该删除
NSUserNotificationCenter
中的通知?
我想问一下在
NSUserNotificationCenter
中使用
NSUserNotificationCenter
()的最佳编程实践。如果
NSUserNotificationCenter
在一段时间后自动删除交付的通知,或者开发人员负责删除通知,我在任何文档中都找不到。
浏览 2
提问于2016-11-17
得票数 0
回答已采纳
2
回答
如何在py2app中包含
NSUserNotificationCenter
我正在用Python2.7在MacOSX10.8.5上做一个应用程序,我想要显示通知的次数,因此使用
NSUserNotificationCenter
。在eclipse上运行代码时会收到通知。delay=0, sound=False, userInfo={}):
NSUserNotificationCenter
= objc.lookUpClass('
NSUserNotificationCe
浏览 11
修改于2013-11-12
得票数 4
2
回答
可可/
NSUserNotificationCenter
获得所有NSUserNotification通知
[
NSUserNotificationCenter
defaultCenter]及其委托只在我自己的应用程序发送通知时通知我。
浏览 3
修改于2013-03-23
得票数 4
1
回答
NSUserNotificationCenter
.defaultUserNotificationCenter()在python中返回None
Foundation, objcimport sys
NSUserNotificationCenter
= objc.lookUpClass('
NSUserNotificationCenter
') def notify(title, subtitle, info_text, delay=0, soundnotification.setDeliveryDate_(Foun
浏览 6
修改于2017-05-23
得票数 6
1
回答
NSUserNotificationCenter
.defaultUserNotificationCenter()使用PyInstaller返回无
我使用的代码片段如下:import objc¬
NSUserNotificationCenter
= objc.lookUpClass('
NSUserNotificationCenter
')¬ notification.setTitle_("Test
浏览 10
提问于2014-08-08
得票数 3
回答已采纳
1
回答
当应用程序没有焦点时,
NSUserNotificationCenter
委托不工作
[[
NSUserNotificationCenter
defaultUserNotificationCenter] deliverNotification:notification]; [[
NSUserNotificationCenter
浏览 1
提问于2013-12-30
得票数 0
回答已采纳
1
回答
NSUserNotificationCenter
defaultUserNotificationCenter在Qt应用程序中返回null
userNotification.title = title.toNSString();
NSUserNotificationCenter
* center = [
NSUserNotificationCenter
defaultUserNotificationCenter];} 问题是
NSUserNotificationCenter<
浏览 5
修改于2016-09-13
得票数 2
1
回答
获取
NSUserNotificationCenter
的首选项/权限
我用
NSUserNotificationCenter
编写的代码在实现shouldDeliver、didActivate等的自定义代理程序中运行得很好。不幸的是,
NSUserNotificationCenter
和相关类似乎没有像新API ()那样具有决定权限的功能。不幸的是,正如
NSUserNotificationCenter
本身所述,无论首选项是否允许通知,它的行为都是相同的。
浏览 1
提问于2019-04-25
得票数 2
回答已采纳
1
回答
在Xcode4.5中找不到
NSUserNotificationCenter
的协议声明
我已经创建了一个空的应用程序,并添加了一个从NSObject派生的类,但是当我想为我的类实现一个
NSUserNotificationCenter
协议时,编译器抛出错误:找不到
NSUserNotificationCenter
我是IPhone开发的新手,如何确保我有一个正确的
NSUserNotificationCenter
开发工具包/框架。 提前谢谢。
浏览 0
修改于2012-11-01
得票数 0
回答已采纳
1
回答
有没有办法知道
NSUserNotificationCenter
中有多少个NSUserNotifications?
有没有什么非私人的方法可以知道在Mountain Lion的通知中心(
NSUserNotificationCenter
)中有多少通知?不仅仅是来自我的应用程序的通知,还有来自所有应用程序的通知。
浏览 3
修改于2013-05-28
得票数 3
回答已采纳
1
回答
如何构建一个运行在MacOS10.6上并支持
NSUserNotificationCenter
的应用程序?
不幸的是,该应用程序在10.6上崩溃,崩溃报告详细说明了无法找到
NSUserNotificationCenter
(没有OS版本处理)。--notificationCenterIsAvailable = (NSClassFromString(@"
NSUserNotificationCenter
但是,不能基于此标志的代码呢,比如: 还是类属性
浏览 3
修改于2017-05-23
得票数 10
回答已采纳
1
回答
显示NSUserNotification的横幅,而app位于最前端
NSUserNotificationCenterDelegate {
NSUserNotificationCenter
.defaultUserNotificationCenter().delegate = self func userNotificationCenter(center:
NSUserNotificationCenter
, shouldPresentNotificationMyNotificat
浏览 6
修改于2015-08-07
得票数 1
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
点击加载更多
领券