|
About Andrew Choi
MIDI Programs
MIDI File Player (External Device)
MIDI Destination Pop-Up Button
Other Programs Cocoa Sample Programs Syntax Coloring Using Flex Algorithms Jazz Chord Analysis as Optimization
|
A blog where I will write mostly about programming in Cocoa and CoreMIDI, and experiences from my ports of Emacs and XEmacs to the Mac OS.
Now that I have written MidnamUtility to generate
--- main.m.orig Mon Dec 15 21:46:38 2003
+++ main.m Mon Dec 15 08:38:12 2003
@@ -30,7 +30,8 @@
/* Note that date parameter is always a Sunday. */
NSCalendarDate *d = date;
int month = [d monthOfYear];
- while ([d monthOfYear] >= month)
+ int year = [d yearOfCommonEra];
+ while ([d monthOfYear] >= month && [d yearOfCommonEra] == year)
d = [d dateByAddingYears:0 months:0 days:-7 hours:0 minutes:0 seconds:0];
/* Use this value when the search fails */
previousMonth = [d descriptionWithCalendarFormat:@"%b"];
|
Lists
Less-Known Facts About Emacs
Chinese Restaurants in Calgary
Calgary/Banff Tourist Attractions
Top-10 Reason I Stopped Working on Emacs
Misc
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 2003, 2004, 2005 Andrew Choi (Contact Information). | Created with FCBlog |