Returns focus to finder after unarchiving a file IF app already open. Not ideal solution as noted in the comment, causes preferences window to disappear.
Code smell atm, duplicated code, needs improvement
Will now appear on status bar if unarchiving a file, disappear on completion
Now shows preferences window when in hide in dock mode (if opening app without a file)
Currently wont close the app if in hidedock mode and user closes the window. -- Not sure about this behaviour. Should probably close
Will unarchive files if the app is already open (loose testing works, but needs proper testing)
Added UserDefaults support for 3 settings.
App when run without files will either open in the dock and show the preferences window, or in the statusbar with no window shown (don't understand why yet).
Moved extraction code out of the App delegate into its own class.
Added window for setting preferences (doesn't do anything atm except hide dock icon, experiment)
Added Readme
With later versions of libunrar the method used to supply the password to an archive through the callback changed. Previously you called RARSetPassword, however that does not work with header passwords, so they came up with a different approach. The library passes the address of a wchar character buffer and its size as parameterOne and parameterTwo, and you need to copy the password string into that buffer.