This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 258
DNA Project Final #268
Open
anton-tars
wants to merge
1
commit into
Hexlet:master
Choose a base branch
from
anton-tars:master
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
DNA Project Final #268
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
C98DFF531648482800ED2015 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C98DFF521648482800ED2015 /* Foundation.framework */; }; | ||
C98DFF561648482800ED2015 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C98DFF551648482800ED2015 /* main.m */; }; | ||
C98DFF5A1648482800ED2015 /* DNA_App.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C98DFF591648482800ED2015 /* DNA_App.1 */; }; | ||
C98DFF621648486F00ED2015 /* Cell.m in Sources */ = {isa = PBXBuildFile; fileRef = C98DFF611648486F00ED2015 /* Cell.m */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXCopyFilesBuildPhase section */ | ||
C98DFF4C1648482800ED2015 /* CopyFiles */ = { | ||
isa = PBXCopyFilesBuildPhase; | ||
buildActionMask = 2147483647; | ||
dstPath = /usr/share/man/man1/; | ||
dstSubfolderSpec = 0; | ||
files = ( | ||
C98DFF5A1648482800ED2015 /* DNA_App.1 in CopyFiles */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 1; | ||
}; | ||
/* End PBXCopyFilesBuildPhase section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
C98DFF4E1648482800ED2015 /* DNA_App */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = DNA_App; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
C98DFF521648482800ED2015 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | ||
C98DFF551648482800ED2015 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | ||
C98DFF581648482800ED2015 /* DNA_App-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DNA_App-Prefix.pch"; sourceTree = "<group>"; }; | ||
C98DFF591648482800ED2015 /* DNA_App.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = DNA_App.1; sourceTree = "<group>"; }; | ||
C98DFF601648486F00ED2015 /* Cell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Cell.h; sourceTree = "<group>"; }; | ||
C98DFF611648486F00ED2015 /* Cell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Cell.m; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
C98DFF4B1648482800ED2015 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
C98DFF531648482800ED2015 /* Foundation.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
C98DFF431648482800ED2015 = { | ||
isa = PBXGroup; | ||
children = ( | ||
C98DFF541648482800ED2015 /* DNA_App */, | ||
C98DFF511648482800ED2015 /* Frameworks */, | ||
C98DFF4F1648482800ED2015 /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
C98DFF4F1648482800ED2015 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
C98DFF4E1648482800ED2015 /* DNA_App */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
C98DFF511648482800ED2015 /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
C98DFF521648482800ED2015 /* Foundation.framework */, | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
C98DFF541648482800ED2015 /* DNA_App */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
C98DFF551648482800ED2015 /* main.m */, | ||
C98DFF591648482800ED2015 /* DNA_App.1 */, | ||
C98DFF571648482800ED2015 /* Supporting Files */, | ||
C98DFF601648486F00ED2015 /* Cell.h */, | ||
C98DFF611648486F00ED2015 /* Cell.m */, | ||
); | ||
path = DNA_App; | ||
sourceTree = "<group>"; | ||
}; | ||
C98DFF571648482800ED2015 /* Supporting Files */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
C98DFF581648482800ED2015 /* DNA_App-Prefix.pch */, | ||
); | ||
name = "Supporting Files"; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
C98DFF4D1648482800ED2015 /* DNA_App */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = C98DFF5D1648482800ED2015 /* Build configuration list for PBXNativeTarget "DNA_App" */; | ||
buildPhases = ( | ||
C98DFF4A1648482800ED2015 /* Sources */, | ||
C98DFF4B1648482800ED2015 /* Frameworks */, | ||
C98DFF4C1648482800ED2015 /* CopyFiles */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = DNA_App; | ||
productName = DNA_App; | ||
productReference = C98DFF4E1648482800ED2015 /* DNA_App */; | ||
productType = "com.apple.product-type.tool"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
C98DFF451648482800ED2015 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastUpgradeCheck = 0450; | ||
ORGANIZATIONNAME = home; | ||
}; | ||
buildConfigurationList = C98DFF481648482800ED2015 /* Build configuration list for PBXProject "DNA_App" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
); | ||
mainGroup = C98DFF431648482800ED2015; | ||
productRefGroup = C98DFF4F1648482800ED2015 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
C98DFF4D1648482800ED2015 /* DNA_App */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
C98DFF4A1648482800ED2015 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
C98DFF561648482800ED2015 /* main.m in Sources */, | ||
C98DFF621648486F00ED2015 /* Cell.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
C98DFF5B1648482800ED2015 /* 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; | ||
}; | ||
C98DFF5C1648482800ED2015 /* 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; | ||
}; | ||
C98DFF5E1648482800ED2015 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "DNA_App/DNA_App-Prefix.pch"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
}; | ||
name = Debug; | ||
}; | ||
C98DFF5F1648482800ED2015 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "DNA_App/DNA_App-Prefix.pch"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
C98DFF481648482800ED2015 /* Build configuration list for PBXProject "DNA_App" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
C98DFF5B1648482800ED2015 /* Debug */, | ||
C98DFF5C1648482800ED2015 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
C98DFF5D1648482800ED2015 /* Build configuration list for PBXNativeTarget "DNA_App" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
C98DFF5E1648482800ED2015 /* Debug */, | ||
C98DFF5F1648482800ED2015 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = C98DFF451648482800ED2015 /* Project object */; | ||
} |
7 changes: 7 additions & 0 deletions
7
DNA_App/DNA_App.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
...proj/project.xcworkspace/xcuserdata/psyhosonic.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...App/DNA_App.xcodeproj/xcuserdata/psyhosonic.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
This file contains 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
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> |
86 changes: 86 additions & 0 deletions
86
DNA_App/DNA_App.xcodeproj/xcuserdata/psyhosonic.xcuserdatad/xcschemes/DNA_App.xcscheme
This file contains 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
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 = "C98DFF4D1648482800ED2015" | ||
BuildableName = "DNA_App" | ||
BlueprintName = "DNA_App" | ||
ReferencedContainer = "container:DNA_App.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 = "C98DFF4D1648482800ED2015" | ||
BuildableName = "DNA_App" | ||
BlueprintName = "DNA_App" | ||
ReferencedContainer = "container:DNA_App.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 = "C98DFF4D1648482800ED2015" | ||
BuildableName = "DNA_App" | ||
BlueprintName = "DNA_App" | ||
ReferencedContainer = "container:DNA_App.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
buildConfiguration = "Release" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "C98DFF4D1648482800ED2015" | ||
BuildableName = "DNA_App" | ||
BlueprintName = "DNA_App" | ||
ReferencedContainer = "container:DNA_App.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
22 changes: 22 additions & 0 deletions
22
...pp/DNA_App.xcodeproj/xcuserdata/psyhosonic.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains 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
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_App.xcscheme</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>C98DFF4D1648482800ED2015</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Cell.h | ||
// DNA_App | ||
// | ||
// Created by Anton Stepanov on 05.11.12. | ||
// Copyright (c) 2012 home. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface Cell : NSObject { | ||
NSMutableArray *DNA; | ||
} | ||
|
||
-(id) init: (int) count; | ||
-(int) hammingDistance: (Cell*) cell; | ||
-(void) showDNA; | ||
|
||
@end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше так не делать. init - это конструктор по умолчанию, его делают без передаваемых параметров. Его можно реализовать в данном случае для инициализации массива строго из 100 символов, и сделать дополнительный конструктор на подобии такого:
-(id) initWithCapacity: (int)capacity;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ИМХО в нашем случае лучше было вообще сделать длину ДНК константой, это избавило бы от необходимости проверки длин ДНК разных клеток в hammingDistance.