-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,794 additions
and
119 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// MZDateFormatter.h | ||
// MetaZ | ||
// | ||
// Created by Brian Olsen on 08/08/11. | ||
// Copyright 2011 Maven-Group. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
|
||
@interface MZDateFormatter : NSDateFormatter { | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// MZDateFormatter.m | ||
// MetaZ | ||
// | ||
// Created by Brian Olsen on 08/08/11. | ||
// Copyright 2011 Maven-Group. All rights reserved. | ||
// | ||
|
||
#import "MZDateFormatter.h" | ||
|
||
|
||
@implementation MZDateFormatter | ||
|
||
- (NSDate *)dateFromString:(NSString *)string; | ||
{ | ||
return [super dateFromString:string]; | ||
} | ||
|
||
- (NSString *)stringFromDate:(NSDate *)date; | ||
{ | ||
return [super stringFromDate:date]; | ||
} | ||
|
||
|
||
- (BOOL)isPartialStringValid:(NSString **)partialStringPtr proposedSelectedRange:(NSRangePointer)proposedSelRangePtr originalString:(NSString *)origString originalSelectedRange:(NSRange)origSelRange errorDescription:(NSString **)error; | ||
{ | ||
BOOL ret = [super isPartialStringValid:partialStringPtr proposedSelectedRange:proposedSelRangePtr originalString:origString originalSelectedRange:origSelRange errorDescription:error]; | ||
return ret; | ||
} | ||
|
||
- (BOOL)getObjectValue:(id *)obj forString:(NSString *)string errorDescription:(NSString **)error; | ||
{ | ||
if(!string || [string length]==0) | ||
{ | ||
if(obj) | ||
*obj = nil; | ||
return YES; | ||
} | ||
BOOL ret = [super getObjectValue:obj forString:string errorDescription:error]; | ||
return ret; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
// | ||
// MZYearDateFormatter.h | ||
// MetaZ | ||
// | ||
// Created by Brian Olsen on 08/08/11. | ||
// Copyright 2011 Maven-Group. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "MZDateFormatter.h" | ||
|
||
@interface MZYearDateFormatter : NSFormatter { | ||
NSDateFormatter* dateFormatter; | ||
} | ||
-(id)init; | ||
|
||
#pragma mark NSCoder | ||
|
||
-(id)initWithCoder:(NSCoder *)aDecoder; | ||
- (void)encodeWithCoder:(NSCoder *)aCoder; | ||
|
||
#pragma mark NSDateFormatter | ||
|
||
- (NSString *)dateFormat; | ||
|
||
#if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED | ||
|
||
- (NSDateFormatterStyle)dateStyle; | ||
- (void)setDateStyle:(NSDateFormatterStyle)style; | ||
|
||
- (NSDateFormatterStyle)timeStyle; | ||
- (void)setTimeStyle:(NSDateFormatterStyle)style; | ||
|
||
- (NSLocale *)locale; | ||
- (void)setLocale:(NSLocale *)locale; | ||
|
||
- (BOOL)generatesCalendarDates; | ||
- (void)setGeneratesCalendarDates:(BOOL)b; | ||
|
||
- (NSDateFormatterBehavior)formatterBehavior; | ||
- (void)setFormatterBehavior:(NSDateFormatterBehavior)behavior; | ||
|
||
- (void)setDateFormat:(NSString *)string; | ||
|
||
- (NSTimeZone *)timeZone; | ||
- (void)setTimeZone:(NSTimeZone *)tz; | ||
|
||
- (NSCalendar *)calendar; | ||
- (void)setCalendar:(NSCalendar *)calendar; | ||
|
||
- (BOOL)isLenient; | ||
- (void)setLenient:(BOOL)b; | ||
|
||
- (NSDate *)twoDigitStartDate; | ||
- (void)setTwoDigitStartDate:(NSDate *)date; | ||
|
||
- (NSDate *)defaultDate; | ||
- (void)setDefaultDate:(NSDate *)date; | ||
|
||
- (NSArray *)eraSymbols; | ||
- (void)setEraSymbols:(NSArray *)array; | ||
|
||
- (NSArray *)monthSymbols; | ||
- (void)setMonthSymbols:(NSArray *)array; | ||
|
||
- (NSArray *)shortMonthSymbols; | ||
- (void)setShortMonthSymbols:(NSArray *)array; | ||
|
||
- (NSArray *)weekdaySymbols; | ||
- (void)setWeekdaySymbols:(NSArray *)array; | ||
|
||
- (NSArray *)shortWeekdaySymbols; | ||
- (void)setShortWeekdaySymbols:(NSArray *)array; | ||
|
||
- (NSString *)AMSymbol; | ||
- (void)setAMSymbol:(NSString *)string; | ||
|
||
- (NSString *)PMSymbol; | ||
- (void)setPMSymbol:(NSString *)string; | ||
|
||
#endif | ||
|
||
- (NSArray *)longEraSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setLongEraSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)veryShortMonthSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setVeryShortMonthSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)standaloneMonthSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setStandaloneMonthSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)shortStandaloneMonthSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setShortStandaloneMonthSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)veryShortStandaloneMonthSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setVeryShortStandaloneMonthSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)veryShortWeekdaySymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setVeryShortWeekdaySymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)standaloneWeekdaySymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setStandaloneWeekdaySymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)shortStandaloneWeekdaySymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setShortStandaloneWeekdaySymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)veryShortStandaloneWeekdaySymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setVeryShortStandaloneWeekdaySymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)quarterSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setQuarterSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)shortQuarterSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setShortQuarterSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)standaloneQuarterSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setStandaloneQuarterSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSArray *)shortStandaloneQuarterSymbols AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setShortStandaloneQuarterSymbols:(NSArray *)array AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
- (NSDate *)gregorianStartDate AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
- (void)setGregorianStartDate:(NSDate *)date AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; | ||
|
||
@end |
Oops, something went wrong.