mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
add +[NSCalendar calendarWithIdentifier:]
This commit is contained in:
parent
5c7713cacc
commit
c5fac90b86
3 changed files with 11 additions and 0 deletions
|
@ -252,6 +252,11 @@ static NSRecursiveLock *classLock = nil;
|
|||
return self;
|
||||
}
|
||||
|
||||
+ (id) calendarWithIdentifier: (NSString *) string
|
||||
{
|
||||
return [[[self alloc] initWithCalendarIdentifier: string] autorelease];
|
||||
}
|
||||
|
||||
- (id) initWithCalendarIdentifier: (NSString *) string
|
||||
{
|
||||
NSAssert(0 == _NSCalendarInternal, NSInvalidArgumentException);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue