Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Add a new test app
Browse files Browse the repository at this point in the history
  • Loading branch information
danielctull committed Jul 19, 2012
1 parent 8dfc2be commit a7a4bc5
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DCTMusicModelApp/AppDelegate.h
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// DCTMusicModelApp
//
// Created by Daniel Tull on 19.07.2012.
//
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
49 changes: 49 additions & 0 deletions DCTMusicModelApp/AppDelegate.m
@@ -0,0 +1,49 @@
//
// AppDelegate.m
// DCTMusicModelApp
//
// Created by Daniel Tull on 19.07.2012.
//
//

#import "AppDelegate.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
38 changes: 38 additions & 0 deletions DCTMusicModelApp/DCTMusicModelApp-Info.plist
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>uk.co.danieltull.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
14 changes: 14 additions & 0 deletions DCTMusicModelApp/DCTMusicModelApp-Prefix.pch
@@ -0,0 +1,14 @@
//
// Prefix header for all source files of the 'DCTMusicModelApp' target in the 'DCTMusicModelApp' project
//

#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
2 changes: 2 additions & 0 deletions DCTMusicModelApp/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

18 changes: 18 additions & 0 deletions DCTMusicModelApp/main.m
@@ -0,0 +1,18 @@
//
// main.m
// DCTMusicModelApp
//
// Created by Daniel Tull on 19.07.2012.
//
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
154 changes: 154 additions & 0 deletions DTMusicModel.xcodeproj/project.pbxproj
Expand Up @@ -41,6 +41,15 @@
24700D7215B853B300FA5843 /* _DCTPlaylist.m in Sources */ = {isa = PBXBuildFile; fileRef = 24700D5615B853B300FA5843 /* _DCTPlaylist.m */; };
24700D7315B853B300FA5843 /* _DCTSong.h in Headers */ = {isa = PBXBuildFile; fileRef = 24700D5715B853B300FA5843 /* _DCTSong.h */; settings = {ATTRIBUTES = (Public, ); }; };
24700D7415B853B300FA5843 /* _DCTSong.m in Sources */ = {isa = PBXBuildFile; fileRef = 24700D5815B853B300FA5843 /* _DCTSong.m */; };
24700D7B15B8579C00FA5843 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
24700D7C15B8579C00FA5843 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
24700D7D15B8579C00FA5843 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
24700D8315B8579C00FA5843 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 24700D8115B8579C00FA5843 /* InfoPlist.strings */; };
24700D8515B8579C00FA5843 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 24700D8415B8579C00FA5843 /* main.m */; };
24700D8915B8579C00FA5843 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 24700D8815B8579C00FA5843 /* AppDelegate.m */; };
24700D8D15B857AD00FA5843 /* libDCTMusicModel.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 24700CA215B843E200FA5843 /* libDCTMusicModel.a */; };
24700D8E15B857B000FA5843 /* DCTMusicModel.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 24700CB615B8495000FA5843 /* DCTMusicModel.bundle */; };
24700D8F15B857B800FA5843 /* libDCTCoreDataStack.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 24700D0315B84D9700FA5843 /* libDCTCoreDataStack.a */; };
24845AAE104C7EE300489910 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 24845AAD104C7EE300489910 /* Icon.png */; };
24C28FFA104C774D004513D3 /* DTAlbum+Extras.m in Sources */ = {isa = PBXBuildFile; fileRef = 24C28FE0104C774D004513D3 /* DTAlbum+Extras.m */; };
24C28FFB104C774D004513D3 /* DTAlbum.m in Sources */ = {isa = PBXBuildFile; fileRef = 24C28FE2104C774D004513D3 /* DTAlbum.m */; };
Expand Down Expand Up @@ -143,6 +152,13 @@
24700D5615B853B300FA5843 /* _DCTPlaylist.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _DCTPlaylist.m; sourceTree = "<group>"; };
24700D5715B853B300FA5843 /* _DCTSong.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _DCTSong.h; sourceTree = "<group>"; };
24700D5815B853B300FA5843 /* _DCTSong.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _DCTSong.m; sourceTree = "<group>"; };
24700D7915B8579C00FA5843 /* DCTMusicModelApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DCTMusicModelApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
24700D8015B8579C00FA5843 /* DCTMusicModelApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DCTMusicModelApp-Info.plist"; sourceTree = "<group>"; };
24700D8215B8579C00FA5843 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
24700D8415B8579C00FA5843 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
24700D8615B8579C00FA5843 /* DCTMusicModelApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DCTMusicModelApp-Prefix.pch"; sourceTree = "<group>"; };
24700D8715B8579C00FA5843 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
24700D8815B8579C00FA5843 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
24845AAD104C7EE300489910 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
24C28FDF104C774D004513D3 /* DTAlbum+Extras.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DTAlbum+Extras.h"; sourceTree = "<group>"; };
24C28FE0104C774D004513D3 /* DTAlbum+Extras.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "DTAlbum+Extras.m"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -228,6 +244,18 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
24700D7615B8579C00FA5843 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
24700D8F15B857B800FA5843 /* libDCTCoreDataStack.a in Frameworks */,
24700D8D15B857AD00FA5843 /* libDCTMusicModel.a in Frameworks */,
24700D7B15B8579C00FA5843 /* UIKit.framework in Frameworks */,
24700D7C15B8579C00FA5843 /* Foundation.framework in Frameworks */,
24700D7D15B8579C00FA5843 /* CoreGraphics.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -250,6 +278,7 @@
1D6058910D05DD3D006BFB54 /* MusicModel.app */,
24700CA215B843E200FA5843 /* libDCTMusicModel.a */,
24700CB615B8495000FA5843 /* DCTMusicModel.bundle */,
24700D7915B8579C00FA5843 /* DCTMusicModelApp.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -340,6 +369,27 @@
path = Generated;
sourceTree = "<group>";
};
24700D7E15B8579C00FA5843 /* DCTMusicModelApp */ = {
isa = PBXGroup;
children = (
24700D8715B8579C00FA5843 /* AppDelegate.h */,
24700D8815B8579C00FA5843 /* AppDelegate.m */,
24700D7F15B8579C00FA5843 /* Supporting Files */,
);
path = DCTMusicModelApp;
sourceTree = "<group>";
};
24700D7F15B8579C00FA5843 /* Supporting Files */ = {
isa = PBXGroup;
children = (
24700D8015B8579C00FA5843 /* DCTMusicModelApp-Info.plist */,
24700D8115B8579C00FA5843 /* InfoPlist.strings */,
24700D8415B8579C00FA5843 /* main.m */,
24700D8615B8579C00FA5843 /* DCTMusicModelApp-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
24C28FDE104C774D004513D3 /* DTMusicModel */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -403,6 +453,7 @@
29B97317FDCFA39411CA2CEA /* Resources */,
24700CA415B843E200FA5843 /* DCTMusicModel */,
24700CB915B8495000FA5843 /* DCTMusicModelBundle */,
24700D7E15B8579C00FA5843 /* DCTMusicModelApp */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */,
24700CFA15B84D9700FA5843 /* DCTCoreDataStack.xcodeproj */,
Expand Down Expand Up @@ -523,6 +574,23 @@
productReference = 24700CB615B8495000FA5843 /* DCTMusicModel.bundle */;
productType = "com.apple.product-type.bundle";
};
24700D7815B8579C00FA5843 /* DCTMusicModelApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 24700D8A15B8579C00FA5843 /* Build configuration list for PBXNativeTarget "DCTMusicModelApp" */;
buildPhases = (
24700D7515B8579C00FA5843 /* Sources */,
24700D7615B8579C00FA5843 /* Frameworks */,
24700D7715B8579C00FA5843 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = DCTMusicModelApp;
productName = DCTMusicModelApp;
productReference = 24700D7915B8579C00FA5843 /* DCTMusicModelApp.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand Down Expand Up @@ -551,6 +619,7 @@
1D6058900D05DD3D006BFB54 /* DTMusicModel */,
24700CA115B843E200FA5843 /* DCTMusicModel */,
24700CB515B8495000FA5843 /* DCTMusicModelBundle */,
24700D7815B8579C00FA5843 /* DCTMusicModelApp */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -592,6 +661,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
24700D7715B8579C00FA5843 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
24700D8315B8579C00FA5843 /* InfoPlist.strings in Resources */,
24700D8E15B857B000FA5843 /* DCTMusicModel.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -654,6 +732,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
24700D7515B8579C00FA5843 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
24700D8515B8579C00FA5843 /* main.m in Sources */,
24700D8915B8579C00FA5843 /* AppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -678,6 +765,14 @@
name = InfoPlist.strings;
sourceTree = "<group>";
};
24700D8115B8579C00FA5843 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
24700D8215B8579C00FA5843 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -832,6 +927,57 @@
};
name = Release;
};
24700D8B15B8579C00FA5843 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DCTMusicModelApp/DCTMusicModelApp-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
INFOPLIST_FILE = "DCTMusicModelApp/DCTMusicModelApp-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
24700D8C15B8579C00FA5843 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DCTMusicModelApp/DCTMusicModelApp-Prefix.pch";
GCC_WARN_UNINITIALIZED_AUTOS = YES;
INFOPLIST_FILE = "DCTMusicModelApp/DCTMusicModelApp-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PRODUCT_NAME = "$(TARGET_NAME)";
VALIDATE_PRODUCT = YES;
WRAPPER_EXTENSION = app;
};
name = Release;
};
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -885,6 +1031,14 @@
);
defaultConfigurationIsVisible = 0;
};
24700D8A15B8579C00FA5843 /* Build configuration list for PBXNativeTarget "DCTMusicModelApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
24700D8B15B8579C00FA5843 /* Debug */,
24700D8C15B8579C00FA5843 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "DTMusicModel" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down

0 comments on commit a7a4bc5

Please sign in to comment.