Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

https://github.com/holyketzer/osx-project-1 #419

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added DNA/.DS_Store
Binary file not shown.
249 changes: 249 additions & 0 deletions DNA/DNA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
FA46C743164CCE8F00A22643 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA46C742164CCE8F00A22643 /* Foundation.framework */; };
FA46C746164CCE8F00A22643 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FA46C745164CCE8F00A22643 /* main.m */; };
FA46C74A164CCE8F00A22643 /* DNA.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = FA46C749164CCE8F00A22643 /* DNA.1 */; };
FA46C7521652CEBB00A22643 /* Cell.m in Sources */ = {isa = PBXBuildFile; fileRef = FA46C7511652CEBB00A22643 /* Cell.m */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
FA46C73C164CCE8F00A22643 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
FA46C74A164CCE8F00A22643 /* DNA.1 in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
FA46C73E164CCE8F00A22643 /* DNA */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = DNA; sourceTree = BUILT_PRODUCTS_DIR; };
FA46C742164CCE8F00A22643 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
FA46C745164CCE8F00A22643 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
FA46C748164CCE8F00A22643 /* DNA-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DNA-Prefix.pch"; sourceTree = "<group>"; };
FA46C749164CCE8F00A22643 /* DNA.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = DNA.1; sourceTree = "<group>"; };
FA46C7501652CEBB00A22643 /* Cell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Cell.h; sourceTree = "<group>"; };
FA46C7511652CEBB00A22643 /* Cell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Cell.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
FA46C73B164CCE8F00A22643 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
FA46C743164CCE8F00A22643 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
FA46C733164CCE8F00A22643 = {
isa = PBXGroup;
children = (
FA46C744164CCE8F00A22643 /* DNA */,
FA46C741164CCE8F00A22643 /* Frameworks */,
FA46C73F164CCE8F00A22643 /* Products */,
);
sourceTree = "<group>";
};
FA46C73F164CCE8F00A22643 /* Products */ = {
isa = PBXGroup;
children = (
FA46C73E164CCE8F00A22643 /* DNA */,
);
name = Products;
sourceTree = "<group>";
};
FA46C741164CCE8F00A22643 /* Frameworks */ = {
isa = PBXGroup;
children = (
FA46C742164CCE8F00A22643 /* Foundation.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
FA46C744164CCE8F00A22643 /* DNA */ = {
isa = PBXGroup;
children = (
FA46C745164CCE8F00A22643 /* main.m */,
FA46C749164CCE8F00A22643 /* DNA.1 */,
FA46C747164CCE8F00A22643 /* Supporting Files */,
FA46C7501652CEBB00A22643 /* Cell.h */,
FA46C7511652CEBB00A22643 /* Cell.m */,
);
path = DNA;
sourceTree = "<group>";
};
FA46C747164CCE8F00A22643 /* Supporting Files */ = {
isa = PBXGroup;
children = (
FA46C748164CCE8F00A22643 /* DNA-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
FA46C73D164CCE8F00A22643 /* DNA */ = {
isa = PBXNativeTarget;
buildConfigurationList = FA46C74D164CCE8F00A22643 /* Build configuration list for PBXNativeTarget "DNA" */;
buildPhases = (
FA46C73A164CCE8F00A22643 /* Sources */,
FA46C73B164CCE8F00A22643 /* Frameworks */,
FA46C73C164CCE8F00A22643 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = DNA;
productName = DNA;
productReference = FA46C73E164CCE8F00A22643 /* DNA */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
FA46C735164CCE8F00A22643 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0450;
ORGANIZATIONNAME = Alex;
};
buildConfigurationList = FA46C738164CCE8F00A22643 /* Build configuration list for PBXProject "DNA" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = FA46C733164CCE8F00A22643;
productRefGroup = FA46C73F164CCE8F00A22643 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
FA46C73D164CCE8F00A22643 /* DNA */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
FA46C73A164CCE8F00A22643 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FA46C746164CCE8F00A22643 /* main.m in Sources */,
FA46C7521652CEBB00A22643 /* Cell.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
FA46C74B164CCE8F00A22643 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
FA46C74C164CCE8F00A22643 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
SDKROOT = macosx;
};
name = Release;
};
FA46C74E164CCE8F00A22643 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DNA/DNA-Prefix.pch";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
FA46C74F164CCE8F00A22643 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DNA/DNA-Prefix.pch";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
FA46C738164CCE8F00A22643 /* Build configuration list for PBXProject "DNA" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FA46C74B164CCE8F00A22643 /* Debug */,
FA46C74C164CCE8F00A22643 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
FA46C74D164CCE8F00A22643 /* Build configuration list for PBXNativeTarget "DNA" */ = {
isa = XCConfigurationList;
buildConfigurations = (
FA46C74E164CCE8F00A22643 /* Debug */,
FA46C74F164CCE8F00A22643 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = FA46C735164CCE8F00A22643 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "1.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0450"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FA46C73D164CCE8F00A22643"
BuildableName = "DNA"
BlueprintName = "DNA"
ReferencedContainer = "container:DNA.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FA46C73D164CCE8F00A22643"
BuildableName = "DNA"
BlueprintName = "DNA"
ReferencedContainer = "container:DNA.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FA46C73D164CCE8F00A22643"
BuildableName = "DNA"
BlueprintName = "DNA"
ReferencedContainer = "container:DNA.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FA46C73D164CCE8F00A22643"
BuildableName = "DNA"
BlueprintName = "DNA"
ReferencedContainer = "container:DNA.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>SchemeUserState</key>
<dict>
<key>DNA.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>FA46C73D164CCE8F00A22643</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
25 changes: 25 additions & 0 deletions DNA/DNA/Cell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Cell.h
// DNA
//
// Created by Alex on 11/13/12.
// Copyright (c) 2012 Alex. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Cell : NSObject

@property NSMutableArray *DNA;

-(int) hammingDistance: (Cell*)other;
-(NSString*) getRandomGenom;
-(void)Print;

@end

@interface Cell (mutator)

-(void) mutate: (int)count;

@end
Loading