我想使用 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];
但实际上什么也没发生。如何签署应用程序?