Skip to content

Commit

Permalink
Updated to Swift 1.2. Translated to English. Added new license GPL v3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Butron committed Apr 13, 2015
1 parent dcaff5c commit 2d0ea28
Show file tree
Hide file tree
Showing 16 changed files with 191 additions and 18 deletions.
18 changes: 10 additions & 8 deletions NSFileManager/NSFileManager.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
075FD1BF1A337DB600513A3A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1BE1A337DB600513A3A /* Images.xcassets */; };
075FD1C21A337DB600513A3A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1C01A337DB600513A3A /* LaunchScreen.xib */; };
075FD1CE1A337DB600513A3A /* NSFileManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075FD1CD1A337DB600513A3A /* NSFileManagerTests.swift */; };
075FD1D91A337DD900513A3A /* directorio.png in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1D71A337DD900513A3A /* directorio.png */; };
075FD1DA1A337DD900513A3A /* fichero.png in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1D81A337DD900513A3A /* fichero.png */; };
075FD1D91A337DD900513A3A /* dir.png in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1D71A337DD900513A3A /* dir.png */; };
075FD1DA1A337DD900513A3A /* file.png in Resources */ = {isa = PBXBuildFile; fileRef = 075FD1D81A337DD900513A3A /* file.png */; };
075FD1DD1A337DE200513A3A /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075FD1DB1A337DE200513A3A /* SecondViewController.swift */; };
075FD1DE1A337DE200513A3A /* ThirdViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 075FD1DC1A337DE200513A3A /* ThirdViewController.swift */; };
/* End PBXBuildFile section */
Expand All @@ -40,8 +40,8 @@
075FD1C71A337DB600513A3A /* NSFileManagerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NSFileManagerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
075FD1CC1A337DB600513A3A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
075FD1CD1A337DB600513A3A /* NSFileManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSFileManagerTests.swift; sourceTree = "<group>"; };
075FD1D71A337DD900513A3A /* directorio.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = directorio.png; sourceTree = "<group>"; };
075FD1D81A337DD900513A3A /* fichero.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = fichero.png; sourceTree = "<group>"; };
075FD1D71A337DD900513A3A /* dir.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = dir.png; sourceTree = "<group>"; };
075FD1D81A337DD900513A3A /* file.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = file.png; sourceTree = "<group>"; };
075FD1DB1A337DE200513A3A /* SecondViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = "<group>"; };
075FD1DC1A337DE200513A3A /* ThirdViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ThirdViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -85,8 +85,8 @@
075FD1B41A337DB600513A3A /* NSFileManager */ = {
isa = PBXGroup;
children = (
075FD1D71A337DD900513A3A /* directorio.png */,
075FD1D81A337DD900513A3A /* fichero.png */,
075FD1D71A337DD900513A3A /* dir.png */,
075FD1D81A337DD900513A3A /* file.png */,
075FD1B71A337DB600513A3A /* AppDelegate.swift */,
075FD1B91A337DB600513A3A /* ViewController.swift */,
075FD1DB1A337DE200513A3A /* SecondViewController.swift */,
Expand Down Expand Up @@ -205,9 +205,9 @@
buildActionMask = 2147483647;
files = (
075FD1BD1A337DB600513A3A /* Main.storyboard in Resources */,
075FD1D91A337DD900513A3A /* directorio.png in Resources */,
075FD1D91A337DD900513A3A /* dir.png in Resources */,
075FD1C21A337DB600513A3A /* LaunchScreen.xib in Resources */,
075FD1DA1A337DD900513A3A /* fichero.png in Resources */,
075FD1DA1A337DD900513A3A /* file.png in Resources */,
075FD1BF1A337DB600513A3A /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -421,6 +421,7 @@
075FD1D31A337DB600513A3A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
075FD1D41A337DB600513A3A /* Build configuration list for PBXNativeTarget "NSFileManagerTests" */ = {
isa = XCConfigurationList;
Expand All @@ -429,6 +430,7 @@
075FD1D61A337DB600513A3A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>8DA62841-C39D-4D3B-B9C7-8F159E171905</string>
<key>IDESourceControlProjectName</key>
<string>NSFileManager</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>https://github.com/CarlosButron/Swift.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>NSFileManager/NSFileManager.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CarlosButron/Swift.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlWCCName</key>
<string>Swift</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
10 changes: 9 additions & 1 deletion NSFileManager/NSFileManager/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSFileManager
//
// Created by Carlos Butron on 06/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
12 changes: 10 additions & 2 deletions NSFileManager/NSFileManager/SecondViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSFileManager
//
// Created by Carlos Butron on 06/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand All @@ -29,7 +37,7 @@ class SecondViewController: UIViewController, UITextFieldDelegate {

var newDirectory:NSString = documentsPath.stringByAppendingPathComponent(nameDirectory.text)
if(fileManager.createDirectoryAtPath(newDirectory, withIntermediateDirectories: true, attributes: nil, error: nil) == true){
println("creado")
println("created")
}

}
Expand Down
10 changes: 9 additions & 1 deletion NSFileManager/NSFileManager/ThirdViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSFileManager
//
// Created by Carlos Butron on 06/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
14 changes: 11 additions & 3 deletions NSFileManager/NSFileManager/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSFileManager
//
// Created by Carlos Butron on 06/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down Expand Up @@ -65,9 +73,9 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
var isDir: ObjCBool = ObjCBool(false)
if(fileManager.fileExistsAtPath(documentsPath.stringByAppendingPathComponent(files[indexPath.row] as String), isDirectory: &isDir)){
if(isDir){
cell.imageView.image = UIImage(named: "directorio.png")
cell.imageView.image = UIImage(named: "dir.png")
} else{
cell.imageView.image = UIImage(named: "fichero.png")
cell.imageView.image = UIImage(named: "file.png")
}
}

Expand Down
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>6C92BE68-A17C-49F6-8AA2-3A43B8871693</string>
<key>IDESourceControlProjectName</key>
<string>NSNotification</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>https://github.com/CarlosButron/Swift.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>NSNotification/NSNotification.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CarlosButron/Swift.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlWCCName</key>
<string>Swift</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
10 changes: 9 additions & 1 deletion NSNotification/NSNotification/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSNotification
//
// Created by Carlos Butron on 08/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion NSNotification/NSNotification/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14D131" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
</dependencies>
Expand Down
10 changes: 9 additions & 1 deletion NSNotification/NSNotification/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// NSNotification
//
// Created by Carlos Butron on 08/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2014 Carlos Butron.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>C933D52E-D1FD-4035-8416-6ED377922AF1</string>
<key>IDESourceControlProjectName</key>
<string>NSURLSession</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>https://github.com/CarlosButron/Swift.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>NSURLSession/NSURLSession.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CarlosButron/Swift.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlWCCName</key>
<string>Swift</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.

0 comments on commit 2d0ea28

Please sign in to comment.