Hi Folks,
I've just updated github. I did many changes, to adopt FileMan almost everywhere in Cuis and core packages.I did a few changes to FileMan and the API. The one you might notice is that I've made FmFileEntry and FmDirectoryEntry siblings, under a new FmEntry. Now, each class is more specific: FmFileEntry doesn't handle Directory responsibilities (like creating files in it) and FmDirectoryEntry doesn't support File responsibility (like creating a FileStream on itself). I think it is much cleaner this way. The change you might need to care about is that 'dirName' asDirectoryEntry / 'subdir' answers an FmDirectoryEntry and the new #//: 'dirName' asDirectoryEntry // 'filename' answers an FmFileEntry. Please adapt your packages to the new FileMan API, as the old FileDirectory hierarchy will be deprecated soon, and later removed from Cuis. Oh, this commit also includes new versions of TerseGuide and ClassCommentBrowser by Dan Norton. (Thanks Dan!) Cheers, Juan Vuletich _______________________________________________ Cuis mailing list [hidden email] http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org |
On Fri, 23 Oct 2015 15:49:15 -0300
Juan Vuletich <[hidden email]> wrote: > Hi Folks, > > I've just updated github. I did many changes, to adopt FileMan almost > everywhere in Cuis and core packages. You might want to update: SystemDictionary>>openSourcesAndChanges BTW, I was using String>>upToLastPathSeparator Any chance of getting it back? Cheers, -KenD _______________________________________________ Cuis mailing list [hidden email] http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
-KenD
|
Hi Ken,
On 10/24/2015 12:50 AM, KenD wrote: > On Fri, 23 Oct 2015 15:49:15 -0300 > Juan Vuletich<[hidden email]> wrote: > >> Hi Folks, >> >> I've just updated github. I did many changes, to adopt FileMan almost >> everywhere in Cuis and core packages. > You might want to update: > SystemDictionary>>openSourcesAndChanges Of course. Done. I've just commited an image that no longer includes FileDirectory!!! > BTW, I was using String>>upToLastPathSeparator > > Any chance of getting it back? Sure. Added it back. > Cheers, > -KenD Cheers, Juan Vuletich _______________________________________________ Cuis mailing list [hidden email] http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org |
So now, for importing a new wallpaper, instead of doing:
| filename | filename _ 'Pluto.png'. self runningWorld backgroundImageData: (FileStream readOnlyFileNamed: filename) binary contentsOfEntireFile. What Class and method should I use? Because FileStream>>readOnlyFileNamed: is no longer there. thanks in advance! nacho
Nacho
Smalltalker apprentice.
Buenos Aires, Argentina.
|
| filename |
filename _ 'Pluto.png'. self runningWorld backgroundImageData: filename asFileEntry binaryContents. On 10/28/15, nacho <[hidden email]> wrote: > So now, for importing a new wallpaper, instead of doing: > > | filename | > filename _ 'Pluto.png'. > self runningWorld backgroundImageData: > (FileStream readOnlyFileNamed: filename) binary > contentsOfEntireFile. > > What Class and method should I use? Because FileStream>>readOnlyFileNamed: > is no longer there. > thanks in advance! > nacho > > > > > ----- > Nacho > Smalltalker apprentice. > Buenos Aires, Argentina. > -- > View this message in context: > http://forum.world.st/New-Commit-FileMan-adoption-and-tweaks-tp4857651p4858359.html > Sent from the Cuis Smalltalk mailing list archive at Nabble.com. > > _______________________________________________ > Cuis mailing list > [hidden email] > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > _______________________________________________ Cuis mailing list [hidden email] http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org |
N.B.
Have a look at the class comment of FmFileEntry and the seven example methods on the class side. And String>>asFileEntry There is a need for an example for #binaryContents and #binaryContents: On 10/28/15, H. Hirzel <[hidden email]> wrote: > | filename | > filename _ 'Pluto.png'. > self runningWorld backgroundImageData: filename asFileEntry > binaryContents. > > > On 10/28/15, nacho <[hidden email]> wrote: >> So now, for importing a new wallpaper, instead of doing: >> >> | filename | >> filename _ 'Pluto.png'. >> self runningWorld backgroundImageData: >> (FileStream readOnlyFileNamed: filename) binary >> contentsOfEntireFile. >> >> What Class and method should I use? Because >> FileStream>>readOnlyFileNamed: >> is no longer there. >> thanks in advance! >> nacho >> >> >> >> >> ----- >> Nacho >> Smalltalker apprentice. >> Buenos Aires, Argentina. >> -- >> View this message in context: >> http://forum.world.st/New-Commit-FileMan-adoption-and-tweaks-tp4857651p4858359.html >> Sent from the Cuis Smalltalk mailing list archive at Nabble.com. >> >> _______________________________________________ >> Cuis mailing list >> [hidden email] >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org >> > _______________________________________________ Cuis mailing list [hidden email] http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org |
Free forum by Nabble | Edit this page |