Forráskód Böngészése

Cast nils to compatible types. (#76)

Brucey 11 hónapja
szülő
commit
596d42abdd
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      cocoamaxgui.mod/cocoa.macos.m

+ 2 - 2
cocoamaxgui.mod/cocoa.macos.m

@@ -3051,11 +3051,11 @@ void NSPopupMenu(nsgadget *gadget,nsgadget *menugadget){
 	event=[NSEvent 
 	event=[NSEvent 
 		mouseEventWithType:NSRightMouseUp 
 		mouseEventWithType:NSRightMouseUp 
 		location:[window convertScreenToBase:[NSEvent mouseLocation]]
 		location:[window convertScreenToBase:[NSEvent mouseLocation]]
-		modifierFlags:nil 
+		modifierFlags:(NSEventModifierFlags)nil 
 		timestamp:0 
 		timestamp:0 
 		windowNumber:[window windowNumber] 
 		windowNumber:[window windowNumber] 
      	context:nil
      	context:nil
-		eventNumber:nil
+		eventNumber:(NSInteger)nil
 		clickCount:1 
 		clickCount:1 
 		pressure:0];
 		pressure:0];
 	[NSMenu popUpContextMenu:[menuitem submenu] withEvent:event forView:view];		
 	[NSMenu popUpContextMenu:[menuitem submenu] withEvent:event forView:view];