Now we can jump in and write the program code to implement this method as follows:
NewDefaults.mfile that describes the method in plain English:
/* This method will execute the command line tool defaults to read a value from a domain for a specific key Input: a_domain - a reverse domain id for the defaults to read a_key - a key value to read Output: Either the string value of the result or Nil if there is no value to return. */
It's always a good idea to explain our methods using this kind of plain English comment block.
.hfile. So now we can add the function body to the
.mfile. Note the opening and ...