【发布时间】:2012-04-21 21:39:48
【问题描述】:
我想使用 Mountain Lion 的新功能通知中心。在NSUserNotification.h 中,我发现以下语句:
// Use of these classes requires your application be signed.
这是什么意思?我应该拥有 Apple 开发者帐户和证书吗?我在控制台应用程序中使用这样的类。
NSUserNotificationCenter * center = [NSUserNotificationCenter defaultUserNotificationCenter];
NSUserNotification *notification = [[NSUserNotification alloc] init];
notification.title = @"asdasdasdasd";
notification.informativeText = @"text text";
[center deliverNotification:notification];
但实际上什么也没发生。如何签署应用程序?
【问题讨论】:
-
注:在发布前已放弃签名要求。
标签: objective-c macos osx-mountain-lion