Skip to content

Commit

Permalink
Added os independent file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonBein committed Oct 29, 2018
1 parent a23d728 commit 426900a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
evaluation
createAForm
createAForm
^ Form fromFileNamed: 'D:\Users\Leon Bein\Pictures\Saved Pictures\lion-06.jpg'
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
solution
solutionCreateAForm

^ Form fromFileNamed: 'C:\path\to\your\file.png'
"Mind the FileDirectory uri: ... This allows OS independent file paths"
^ Form fromFileNamed: (FileDirectory uri: 'C:/path/to/your/file.png') fullName
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"openMorphIn:" : "ps 5/23/2018 16:19" },
"instance" : {
"checkLectureMethod:" : "ps 7/22/2018 23:34",
"createAForm" : "LM 10/19/2018 13:20",
"createAForm" : "LB 10/27/2018 17:15",
"descriptionBoxContent" : "LM 9/10/2018 17:34",
"lectureMethod" : "js 6/16/2018 10:02",
"lectureName" : "ps 6/9/2018 19:15",
"solutionCreateAForm" : "LB 10/27/2018 17:15",
"solutionCreateAForm" : "LB 10/29/2018 17:14",
"solutionMethod" : "js 7/9/2018 11:05" } }
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
evaluation
openMorphIn
openMorphIn

^ ImageMorph new image:(Form fromFileNamed: 'D:\Users\Leon Bein\Pictures\Saved Pictures\lion-06.jpg')
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
solution
solutionOpenMorphIn

"Again: FileDirectory uri: ..."
^ ImageMorph new
image: (Form fromFileNamed: 'C:\path\to\your\file.png')
image: (Form fromFileNamed: (FileDirectory uri: 'C:/path/to/your/file.png') fullName)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"descriptionBoxContent" : "LM 9/10/2018 17:35",
"lectureMethod" : "js 6/16/2018 10:02",
"lectureName" : "hks 6/3/2018 14:51",
"openMorphIn" : "LM 10/19/2018 13:20",
"openMorphIn" : "LB 10/27/2018 17:16",
"solutionMethod" : "js 7/9/2018 11:05",
"solutionOpenMorphIn" : "LB 10/27/2018 17:16" } }
"solutionOpenMorphIn" : "LB 10/29/2018 17:15" } }

0 comments on commit 426900a

Please sign in to comment.