comparison mac/dw.m @ 714:cf6246f86c04

Fixed the percent/progress indicators from always being indeterminate.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 12 Mar 2011 15:44:51 +0000
parents 2c8fc0fd8c11
children 5f8102bd7646
comparison
equal deleted inserted replaced
713:2c8fc0fd8c11 714:cf6246f86c04
2721 * id: An ID to be used with dw_window_from_id() or 0L. 2721 * id: An ID to be used with dw_window_from_id() or 0L.
2722 */ 2722 */
2723 HWND API dw_percent_new(ULONG cid) 2723 HWND API dw_percent_new(ULONG cid)
2724 { 2724 {
2725 DWPercent *percent = [[DWPercent alloc] init]; 2725 DWPercent *percent = [[DWPercent alloc] init];
2726 [percent setStyle:NSProgressIndicatorBarStyle];
2726 [percent setBezeled:YES]; 2727 [percent setBezeled:YES];
2727 [percent setMaxValue:100]; 2728 [percent setMaxValue:100];
2728 [percent setMinValue:0]; 2729 [percent setMinValue:0];
2730 [percent incrementBy:1];
2731 [percent setIndeterminate:NO];
2729 /*[percent setTag:cid]; Why doesn't this work? */ 2732 /*[percent setTag:cid]; Why doesn't this work? */
2730 return percent; 2733 return percent;
2731 } 2734 }
2732 2735
2733 /* 2736 /*