Initially I set up the variables and constants to be used. I have not yet factored it into function calls, so it reads linearly, which should make it easier to follow here. Apart from one function in my scripting library (to display an error alert), the entire code is in the View Controller source file. Its standard output then contains the required log extracts, which are displayed in a scrolling panel on the same window. The interface therefore provides a suite of controls, which are then converted into the various options passed with the basic command. The command at the heart, log, is particularly complex even for those happy to hack in Terminal. Hopefully the next version of Xcode might fix that.Ĭonsolation is a good example of what we used to accomplish in AppleScript, which is to wrap a Terminal command in an accessible user interface so that ordinary users can use the command to do what Apple’s apps fail to provide us with. ![]() It’s not a major issue, but it means that every time I go back to work on Consolation, I have to replace those three horizontal lines. Every time that I open my Consolation project, those lines appear in different locations. ![]() If you look at Consolation’s window, you’ll notice that there are three horizontal lines, used to divide its controls into sections. I promised there that I would explain how it works, in other words walk you through the code.įirst, though, I have another warning about a bug in Xcode 8.2.1: its Interface Builder throws horizontal lines around. Yesterday I released the first beta of my log browser app, Consolation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |