51 if (systemIsTigerOrNewer()) { |
51 if (systemIsTigerOrNewer()) { |
52 priority = MIN(priority, 2147483646); // found by experimenting - dirk |
52 priority = MIN(priority, 2147483646); // found by experimenting - dirk |
53 } |
53 } |
54 |
54 |
55 if (!theItem) { |
55 if (!theItem) { |
56 theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: priority] retain]; |
56 theItem = [[bar statusItemWithLength: NSVariableStatusItemLength] retain]; |
57 //theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: 0] retain]; |
57 //theItem = [[bar _statusItemWithLength: NSVariableStatusItemLength withPriority: 0] retain]; |
58 } |
58 } |
59 // Dirk: For Tiger and up, re-insert item to place it correctly. |
59 // Dirk: For Tiger and up, re-insert item to place it correctly. |
60 if ([bar respondsToSelector: @selector(_insertStatusItem:withPriority:)]) { |
60 if ([bar respondsToSelector: @selector(_insertStatusItem:withPriority:)]) { |
61 [bar removeStatusItem: theItem]; |
61 [bar removeStatusItem: theItem]; |