diff --git a/DCTMusicModelApp/AppDelegate.h b/DCTMusicModelApp/AppDelegate.h new file mode 100644 index 0000000..ba7254a --- /dev/null +++ b/DCTMusicModelApp/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// DCTMusicModelApp +// +// Created by Daniel Tull on 19.07.2012. +// +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/DCTMusicModelApp/AppDelegate.m b/DCTMusicModelApp/AppDelegate.m new file mode 100644 index 0000000..6ba4a5e --- /dev/null +++ b/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 diff --git a/DCTMusicModelApp/DCTMusicModelApp-Info.plist b/DCTMusicModelApp/DCTMusicModelApp-Info.plist new file mode 100644 index 0000000..ba21ffc --- /dev/null +++ b/DCTMusicModelApp/DCTMusicModelApp-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + uk.co.danieltull.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/DCTMusicModelApp/DCTMusicModelApp-Prefix.pch b/DCTMusicModelApp/DCTMusicModelApp-Prefix.pch new file mode 100644 index 0000000..b9e450f --- /dev/null +++ b/DCTMusicModelApp/DCTMusicModelApp-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'DCTMusicModelApp' target in the 'DCTMusicModelApp' project +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/DCTMusicModelApp/en.lproj/InfoPlist.strings b/DCTMusicModelApp/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/DCTMusicModelApp/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/DCTMusicModelApp/main.m b/DCTMusicModelApp/main.m new file mode 100644 index 0000000..8fa2de8 --- /dev/null +++ b/DCTMusicModelApp/main.m @@ -0,0 +1,18 @@ +// +// main.m +// DCTMusicModelApp +// +// Created by Daniel Tull on 19.07.2012. +// +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/DTMusicModel.xcodeproj/project.pbxproj b/DTMusicModel.xcodeproj/project.pbxproj index 0b9eb99..b62a465 100755 --- a/DTMusicModel.xcodeproj/project.pbxproj +++ b/DTMusicModel.xcodeproj/project.pbxproj @@ -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 */; }; @@ -143,6 +152,13 @@ 24700D5615B853B300FA5843 /* _DCTPlaylist.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _DCTPlaylist.m; sourceTree = ""; }; 24700D5715B853B300FA5843 /* _DCTSong.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _DCTSong.h; sourceTree = ""; }; 24700D5815B853B300FA5843 /* _DCTSong.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _DCTSong.m; sourceTree = ""; }; + 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 = ""; }; + 24700D8215B8579C00FA5843 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 24700D8415B8579C00FA5843 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 24700D8615B8579C00FA5843 /* DCTMusicModelApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DCTMusicModelApp-Prefix.pch"; sourceTree = ""; }; + 24700D8715B8579C00FA5843 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 24700D8815B8579C00FA5843 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24845AAD104C7EE300489910 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; 24C28FDF104C774D004513D3 /* DTAlbum+Extras.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DTAlbum+Extras.h"; sourceTree = ""; }; 24C28FE0104C774D004513D3 /* DTAlbum+Extras.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "DTAlbum+Extras.m"; sourceTree = ""; }; @@ -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 */ @@ -250,6 +278,7 @@ 1D6058910D05DD3D006BFB54 /* MusicModel.app */, 24700CA215B843E200FA5843 /* libDCTMusicModel.a */, 24700CB615B8495000FA5843 /* DCTMusicModel.bundle */, + 24700D7915B8579C00FA5843 /* DCTMusicModelApp.app */, ); name = Products; sourceTree = ""; @@ -340,6 +369,27 @@ path = Generated; sourceTree = ""; }; + 24700D7E15B8579C00FA5843 /* DCTMusicModelApp */ = { + isa = PBXGroup; + children = ( + 24700D8715B8579C00FA5843 /* AppDelegate.h */, + 24700D8815B8579C00FA5843 /* AppDelegate.m */, + 24700D7F15B8579C00FA5843 /* Supporting Files */, + ); + path = DCTMusicModelApp; + sourceTree = ""; + }; + 24700D7F15B8579C00FA5843 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 24700D8015B8579C00FA5843 /* DCTMusicModelApp-Info.plist */, + 24700D8115B8579C00FA5843 /* InfoPlist.strings */, + 24700D8415B8579C00FA5843 /* main.m */, + 24700D8615B8579C00FA5843 /* DCTMusicModelApp-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; 24C28FDE104C774D004513D3 /* DTMusicModel */ = { isa = PBXGroup; children = ( @@ -403,6 +453,7 @@ 29B97317FDCFA39411CA2CEA /* Resources */, 24700CA415B843E200FA5843 /* DCTMusicModel */, 24700CB915B8495000FA5843 /* DCTMusicModelBundle */, + 24700D7E15B8579C00FA5843 /* DCTMusicModelApp */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, 24700CFA15B84D9700FA5843 /* DCTCoreDataStack.xcodeproj */, @@ -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 */ @@ -551,6 +619,7 @@ 1D6058900D05DD3D006BFB54 /* DTMusicModel */, 24700CA115B843E200FA5843 /* DCTMusicModel */, 24700CB515B8495000FA5843 /* DCTMusicModelBundle */, + 24700D7815B8579C00FA5843 /* DCTMusicModelApp */, ); }; /* End PBXProject section */ @@ -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 */ @@ -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 */ @@ -678,6 +765,14 @@ name = InfoPlist.strings; sourceTree = ""; }; + 24700D8115B8579C00FA5843 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 24700D8215B8579C00FA5843 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -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 = { @@ -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 = (