Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am muhku on github.
  • I am mmu (https://keybase.io/mmu) on keybase.
  • I have a public key whose fingerprint is 8402 2CBE 9AE7 E271 DFAF FA59 4E61 0614 5AA8 4690

To claim this, I am signing this object:

View dragdrop-weekview.diff
diff --git a/Classes/Views/MAWeekView.m b/Classes/Views/MAWeekView.m
index 0a538cb..8bbd04e 100644
--- a/Classes/Views/MAWeekView.m
+++ b/Classes/Views/MAWeekView.m
@@ -63,6 +63,7 @@ static const unsigned int TOP_BACKGROUND_HEIGHT = 35;
CGRect _textRect;
size_t _xOffset;
size_t _yOffset;
+ CGPoint _touchStart;
}
View apku-monday-as-first-weekday-2.diff
diff --git a/src/TapkuLibrary/TKCalendarMonthTiles.m b/src/TapkuLibrary/TKCalendarMonthTiles.m
index e48642d..9a2e184 100755
--- a/src/TapkuLibrary/TKCalendarMonthTiles.m
+++ b/src/TapkuLibrary/TKCalendarMonthTiles.m
@@ -57,15 +57,24 @@
NSDate *d = [NSDate dateFromDateInformation:info];
info = [d dateInformation];
- if(info.weekday > 1){
+ if((sunday && info.weekday>1) || (!sunday && info.weekday!=2)){
View tapku-monday-as-first-weekday.diff
diff --git a/src/TapkuLibrary/TKCalendarMonthTiles.m b/src/TapkuLibrary/TKCalendarMonthTiles.m
index e48642d..9a2e184 100755
--- a/src/TapkuLibrary/TKCalendarMonthTiles.m
+++ b/src/TapkuLibrary/TKCalendarMonthTiles.m
@@ -57,15 +57,24 @@
NSDate *d = [NSDate dateFromDateInformation:info];
info = [d dateInformation];
- if(info.weekday > 1){
+ if((sunday && info.weekday>1) || (!sunday && info.weekday!=2)){
View TKCalendarMonthView.m
- (id) init{
BOOL sundayAsFirst = YES;
CFCalendarRef currentCalendar = CFCalendarCopyCurrent();
if (CFCalendarGetFirstWeekday(currentCalendar) == 2) {
sundayAsFirst = NO;
}
CFRelease(currentCalendar);
return [self initWithSundayAsFirst:sundayAsFirst];
}
View tapku-monthview-markers.diff
diff --git a/src/TapkuLibrary/TKCalendarMonthView.m b/src/TapkuLibrary/TKCalendarMonthView.m
index 0de7bc8..174a5bc 100644
--- a/src/TapkuLibrary/TKCalendarMonthView.m
+++ b/src/TapkuLibrary/TKCalendarMonthView.m
@@ -812,6 +812,11 @@
dayView.frame = CGRectMake((i - 1) * 46 - 1, 0, 47, 45);
[dayView setString:[NSString stringWithFormat:@"%d",lead] selected:NO active:NO today:NO marked:NO];
+ // Because the day views are cached, remove a previous tag from
+ // the day view (if there happens to be such). Otherwise the day
View tapku-calendarmonthview-memleak.diff
diff --git a/src/TapkuLibrary/TKCalendarMonthView.m b/src/TapkuLibrary/TKCalendarMonthView.m
index 0de7bc8..02600fd 100644
--- a/src/TapkuLibrary/TKCalendarMonthView.m
+++ b/src/TapkuLibrary/TKCalendarMonthView.m
@@ -247,11 +247,12 @@
if([obj isMemberOfClass:[TKMonthGridView class]]){
//NSLog(@"RESUE");
[(TKMonthGridView*)obj setStartDate:newDate today:todayNumber marks:ar];
-
+ [ar release];
You can’t perform that action at this time.