[comp.sys.mac.programmer] Months, Days and Dates

resnick@cogsci.uiuc.edu (Pete Resnick) (10/12/90)

I am doing a little program which will have a date that you can change
using pop-up menu's. So, I need to have a menu for Day of Week, Month,
and Date. Day of Week and Month I can do pretty easily; just roll
through the itl1 resource for the names of the months and the names
of the days and Append them to the respective menus (if you have a
niftier way to do this, I would be open to it). But there is no nifty
system-defined way of finding out how many days go with each month.
I can teach my program the little "Thirty days has September, April,
June and November" quip, but I know the system figures this out from
time to time all by itself. Any way for my program to do this easily?

pr
--
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet/ARPAnet/EDUnet  : resnick@cogsci.uiuc.edu
BITNET (if no other way) : FREE0285@UIUCVMD

resnick@cogsci.uiuc.edu (Pete Resnick) (10/15/90)

OK, OK, before I get any more of these, please don't send me a message
saying "But Pete, you dope, you can just write the 10 lines (or less) of
code yourself." Rick Holzgrafe and Brian Arnold were the first two to
tell me this. (Thanks, guys! :-) ). I was just looking for a way to do
this that was pretty, not workable. Sheesh, the flack one gets for
wanting cute code.

pr
--
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet/ARPAnet/EDUnet  : resnick@cogsci.uiuc.edu
BITNET (if no other way) : FREE0285@UIUCVMD