Wed, 29 Jul 2009 11:57:40 +0200
Correctly create menu bar status items in 64- as well as 32-bit targets.
It is unclear why the hack to include a priority and a hack on top of
that to determine the correct platform-dependent priority is desired.
tunblick/MenuController.m | file | annotate | diff | comparison | revisions |
1.1 --- a/tunblick/MenuController.m Wed Jul 29 11:52:41 2009 +0200 1.2 +++ b/tunblick/MenuController.m Wed Jul 29 11:57:40 2009 +0200 1.3 @@ -53,7 +53,7 @@ 1.4 } 1.5 1.6 if (!theItem) { 1.7 - theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: priority] retain]; 1.8 + theItem = [[bar statusItemWithLength: NSVariableStatusItemLength] retain]; 1.9 //theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: 0] retain]; 1.10 } 1.11 // Dirk: For Tiger and up, re-insert item to place it correctly.