comparison mac/dw.m @ 1314:c969db49606e

Initial commit allowing dw_window_set_style() to work on menu item handles.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 04 Nov 2011 14:13:38 +0000
parents 9f12bc79924b
children ebd67be26f43
comparison
equal deleted inserted replaced
1313:9f12bc79924b 1314:c969db49606e
7704 else 7704 else
7705 { 7705 {
7706 [button setButtonType:NSMomentaryPushInButton]; 7706 [button setButtonType:NSMomentaryPushInButton];
7707 [button setBordered:YES]; 7707 [button setBordered:YES];
7708 } 7708 }
7709 }
7710 }
7711 else if([object isMemberOfClass:[DWMenuItem class]])
7712 {
7713 if(mask & (DW_MIS_CHECKED | DW_MIS_UNCHECKED))
7714 {
7715 if(style & DW_MIS_CHECKED)
7716 [object setState:NSOnState];
7717 else if(style & DW_MIS_UNCHECKED)
7718 [object setState:NSOffState];
7719 }
7720 if(mask & (DW_MIS_ENABLED | DW_MIS_DISABLED))
7721 {
7722 if(style & DW_MIS_ENABLED)
7723 [object setEnabled:YES];
7724 else if(style & DW_MIS_DISABLED)
7725 [object setEnabled:NO];
7709 } 7726 }
7710 } 7727 }
7711 } 7728 }
7712 7729
7713 /* 7730 /*