Correctly create menu bar status items in 64- as well as 32-bit targets.

Wed, 29 Jul 2009 11:57:40 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 29 Jul 2009 11:57:40 +0200
changeset 8
07bbe272a9be
parent 7
0c0e4024a98e
child 9
63171f06503f

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.

mercurial