This file contains hidden or 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
#import <Foundation/Foundation.h> | |
NSDictionary *dictionaryForURL(NSURL *aURL) | |
{ | |
NSLog(@"scheme = %@ host = %@ port = %@ fragment = %@ lastPathComponent = %@ parameterString = %@ " | |
@"query = %@ user = %@ password = %@ resourceSpecifier = %@", | |
[aURL scheme],[aURL host],[aURL port],[aURL fragment],[aURL lastPathComponent],[aURL parameterString], | |
[aURL query],[aURL user],[aURL password],[aURL resourceSpecifier]); | |
NSLog(@"absoluteString = %@",[aURL absoluteString]); |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSCalendarDate *cDate = [NSCalendarDate date]; | |
NSLog(@"calendar date = %@",cDate); | |
NSDate *aDate = [NSDate date]; | |
NSLog(@"calendar date = %@",aDate); |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSCalendar *japanese = [[NSCalendar alloc] initWithCalendarIdentifier:NSJapaneseCalendar]; | |
NSLocale *aLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; | |
NSDateComponents *comps = [[NSDateComponents alloc] init]; |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSCalendar *japanese = [[NSCalendar alloc] initWithCalendarIdentifier:NSJapaneseCalendar]; | |
NSLocale *aLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; | |
NSDateFormatter *aFormatter = [[NSDateFormatter alloc] init]; | |
aFormatter.calendar = japanese; |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSCalendar *japanese = [[NSCalendar alloc] initWithCalendarIdentifier:NSJapaneseCalendar]; | |
NSDateFormatter *usFormatter = [[NSDateFormatter alloc] init]; | |
usFormatter.calendar = japanese; | |
usFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
#import <mach/mach_time.h> | |
// 0 .. 4 | |
#define TEST 0 | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { |
This file contains hidden or 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
// | |
// main.m | |
// CodeTest | |
// | |
// Created by [email protected] on 2013/01/09. | |
// Copyright (c) 2013 Eien Factory. All rights reserved. | |
// | |
// ARC=OFF |
This file contains hidden or 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
// | |
// main.m | |
// CodeTest | |
// | |
// Created by [email protected] on 2013/01/11. | |
// Copyright (c) 2013 Eien Factory. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <mach/mach_time.h> |
This file contains hidden or 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
// | |
// main.m | |
// CodeTest | |
// | |
// Created by [email protected] on 2013/01/13. | |
// Copyright (c) 2013 Eien Factory. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <mach/mach_time.h> |
This file contains hidden or 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
// | |
// main.c | |
// CodeTest | |
// | |
// Created by [email protected] on 2013/02/01. | |
// Copyright (c) 2013 Eien Factory. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <mach/mach_time.h> |
OlderNewer