一番上の三角形はとても素敵に見えますが、私はそのような三角形を作成することはできません。
以下のようなコードを書いてみましたが、普通のメニューが見えました。
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {// Insert code here to initialize your application
NSStatusItem * statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:110] retain];
[statusItem setTitle:@"Test"];
[statusItem setEnabled:YES];
[statusItem setHighlightMode:YES];
statusItem.menu = [[NSMenu alloc] initWithTitle:@"menu"];
NSMenuItem * menuItem = [[NSMenuItem alloc] initWithTitle:@"menuItem1" action:NULL keyEquivalent:@""];
[statusItem.menu addItem:menuItem]; }
それを実行するために私が何かをするのを手伝ってください。どうもありがとう!