-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linked repeat button to Core Data / Sorted sounds
- Loading branch information
Thomas Di Meco
committed
Mar 22, 2016
1 parent
06448f5
commit d398132
Showing
8 changed files
with
55 additions
and
52 deletions.
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
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="9525" systemVersion="15D21" minimumToolsVersion="Xcode 7.0"> | ||
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10171" systemVersion="15E65" minimumToolsVersion="Xcode 7.0"> | ||
<entity name="Sound" representedClassName=".Sound" syncable="YES"> | ||
<attribute name="filePath" attributeType="String" syncable="YES"/> | ||
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="repeatEnabled" attributeType="Boolean" defaultValueString="NO" syncable="YES"/> | ||
</entity> | ||
<elements> | ||
<element name="Sound" positionX="-63" positionY="-18" width="128" height="75"/> | ||
<element name="Sound" positionX="-63" positionY="-18" width="128" height="90"/> | ||
</elements> | ||
</model> |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
// | ||
// Utils.swift | ||
// QuickSound | ||
// | ||
// Created by Thomas Di Meco on 22/03/2016. | ||
// Copyright © 2016 Thomas Di Meco. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
struct Utils { | ||
|
||
static func filePathToFileNameWithoutExtension(filePath: String) -> String? { | ||
guard let lastPathComponent = NSURL(string: filePath)?.lastPathComponent else { return nil } | ||
return NSString(string: lastPathComponent).stringByDeletingPathExtension | ||
} | ||
} |