0

我想使用 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];

但实际上什么也没发生。如何签署应用程序?

4

1 回答 1

3

2 秒的谷歌会带你到这里:https ://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

于 2012-04-09T14:15:20.923 回答