views:

37

answers:

0

hi all, I want the date shown for when the form is loaded ,what can i do?

          NSDate* now = [NSDate date];
      NSDateFormatter * f = [[NSDateFormatter alloc] init];
          [f  setDateFormat:@" EEEE YYYY/MM/dd "];
      [date_en setStringValue:[f stringFromDate:now]];

i want to display this in window but not in the buttons action // saturday 2010/08/14