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
YOUR_PROJECT="プロジェクト名" | |
YOUR_COMPANY="会社名" | |
REFERENCE_DIR="ドキュメント生成の元になるディレクトリ" | |
DOCUMENTATION_DIR="ドキュメント生成先のディレクトリ" | |
#GENERATE_REFERENCE_HTML | |
if [ -e /usr/local/bin/appledoc ] ; then | |
/usr/local/bin/appledoc --project-name $YOUR_PROJECT --project-company $YOUR_COMPANY --create-html --no-create-docset --no-repeat-first-par --output $DOCUMENTATION_DIR $REFERENCE_DIR | |
fi |
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 "SongListWorkSpace.h" | |
@interface SongListWorkSpace () | |
@end | |
@implementation SongListWorkSpace { | |
C4Button *songButton; | |
C4Image *songImage; | |
C4Label *songTitleLabel; |
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 "C4CanvasController.h" | |
typedef enum songListTag : NSUInteger { | |
Beethoven, | |
Ravel, | |
Bizet, | |
Dvorak, | |
Rachmaninov, | |
songListCount |
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 "CoreDataController.h" | |
@interface CoreDataController () | |
@property (strong, nonatomic) NSManagedObjectContext *masterManagedObjectContext; | |
@property (strong, nonatomic) NSManagedObjectContext *backgroundManagedObjectContext; | |
@property (strong, nonatomic) NSManagedObjectModel *managedObjectModel; | |
@property (strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator; | |
@end |
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> | |
//Thanks to | |
//http://www.raywenderlich.com/15916/how-to-synchronize-core-data-with-a-web-service-part-1# | |
@interface CoreDataController : NSObject | |
+ (id)sharedInstance; | |
- (NSURL *)applicationDocumentsDirectory; |
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 "SyncEngine.h" | |
#import "CoreDataController.h" | |
#import "ParseApiClient.h" | |
#import "AFHTTPRequestOperation.h" | |
NSString * const kSDSyncEngineInitialCompleteKey = @"SDSyncEngineInitialSyncCompleted"; | |
NSString * const kSDSyncEngineSyncCompletedNotificationName = @"SDSyncEngineSyncCompleted"; | |
NSString * const kSDSyncEngineDownloadCompleteNotification = @"SDSyncEngineDownloadComplete"; | |
@interface SyncEngine () |
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> | |
extern NSString * const kSDSyncEngineDownloadCompleteNotification; | |
extern NSString * const kSDSyncEngineSyncCompletedNotificationName; | |
typedef enum { | |
ObjectSynced = 0, | |
} ObjectSyncStatus; | |
//Thanks to |
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 "ParseApiClient.h" | |
static NSString * const kSDFParseAPIBaseURLString = @"https://api.parse.com/1/"; | |
static NSString * const kSDFParseAPIApplicationId = YOUR_APPLICATION_ID; | |
static NSString * const kSDFParseAPIKey = YOUR_PARSE_API_KEY; | |
@implementation ParseApiClient | |
+ (ParseApiClient *)sharedClient { | |
static ParseApiClient *sharedClient = nil; |
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 "AFHTTPClient.h" | |
@interface ParseApiClient : AFHTTPClient | |
+ (ParseApiClient *)sharedClient; | |
- (NSMutableURLRequest *)GETRequestForClass:(NSString *)className parameters:(NSDictionary *)parameters; | |
- (NSMutableURLRequest *)GETRequestForAllRecordsOfClass:(NSString *)className updatedAfterDate:(NSDate *)updatedDate; | |
@end |
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
// | |
// C4WorkSpace.m | |
// SeekAndScale | |
// | |
// Created by SOMTD on 2013/12/04. | |
// | |
@implementation C4WorkSpace { | |
C4Sample *sample; | |
C4Slider *slider; |
NewerOlder