Commit Graph

35 Commits

Author SHA1 Message Date
Robert McGovern d46c9ee32a minor tweak per https://stackoverflow.com/a/65043277 to allow it to build on an M1 mac, for Intel / Rosetta.
Add Excluded_ARCHS for arm64
Add ONLY_ACTIVE_ARCH = NO
Remove VALID_ARCHS line
2021-07-05 19:44:08 +01:00
Robert McGovern 5f628ee106 Returns focus to finder after unarchiving a file
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.
2021-06-01 00:09:33 +01:00
Robert McGovern 3280ecffe2 Updated bundle id 2021-06-01 00:05:41 +01:00
Robert McGovern bba540f8b6 Made preferences window get focus
Made it get focus when opening from the status bar menu.
2021-05-31 23:03:20 +01:00
Robert McGovern 4a18277a3a Cleaned up code for status bar and status bar menu 2021-05-31 22:42:01 +01:00
Robert McGovern 86effa4e2f Reindented code with Xcode 2021-05-31 22:40:09 +01:00
Robert McGovern b1337f11ca Some cleanup + behaviour improvements - code smell
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)
2021-05-31 22:31:45 +01:00
Robert McGovern e7b7a375e4 Set window title for preferences window 2021-05-31 22:22:04 +01:00
Robert McGovern 739b94d15b Too much in a single commit again - WIP
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).
2021-05-31 20:42:30 +01:00
Robert McGovern 19766c83d9 Code refactoring and other changes
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
2021-05-31 13:07:27 +01:00
Robert McGovern 929688681b Added DockProgress to Carthage
Added DockProgress, plus commited projects
2021-05-27 18:06:29 +01:00
Robert McGovern 3413ef5210 Moved location of header 2021-05-26 17:18:00 +01:00
Robert McGovern c8eca51309 Added Cathage for UnrarKit and UnzipKit
Not using them yet. Also removed Growl fully
2021-05-26 17:15:39 +01:00
Robert McGovern 0cffe85ce5 Update to use new method of passing password
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.
2021-05-26 13:49:40 +01:00
Robert McGovern e1707a7d1c Added UnrarKit
Prebuilt based on version 2.10b8 (iirc) - should use either cathage or pod, or convert unrarkit to work with swift package manager. For now this is just for experimentation.
2021-05-25 13:09:07 +01:00
Robert McGovern bd1c709eda Added gitignore 2021-05-25 13:05:32 +01:00
Robert McGovern 1cc5b41074 Removed deleted file 2021-05-24 16:38:28 +01:00
Robert McGovern 043a11ec6d Upgrade to libunrar 6.06, tweaked the PasswordView xib to have hint text, and clear the field if dialog reappears. Password unraring not working, not sure why. Cstring passed in is perfectly valid. 2021-05-24 16:37:15 +01:00
Robert McGovern c78276aeeb Minor tidy ups. Ran through converters for Modern Objective-C and ARC. Removed couple of depreciated warnings. 2021-05-24 10:24:32 +01:00
Robert McGovern def0536866 Renamed old libunrar.xcodeproj file and updated new version of it to latest build settings 2020-07-14 23:58:55 +01:00
Robert McGovern 619cdeee73 WIP: Updated project to build for Apple Silicon, and updated included version of libunrar. haven't looked into how to compile the lib to include both platforms. (Commented out Growl for the moment as Framework doesn\t have aarm symbols yet) 2020-07-14 23:40:26 +01:00
Robert McGovern d4aea239c6 Added Growl output on the successful extraction of an archive.
Note it will also display the Growl status if you skip over extracting files in the archive.
2009-11-17 00:04:22 +01:00
Robert McGovern ca9df1a6c0 Tiny bit of tidy up. 2009-11-16 22:11:00 +01:00
Robert McGovern dac909cd3a Added a condition that prevents the Skip/Overwrite dialog appearing if libunrar is trying to extract a folder that already exists (due to the files having been extracted first) 2009-11-16 19:37:46 +01:00
Robert McGovern fedc56fa1a Renamed variable 2009-11-16 16:02:10 +01:00
Robert McGovern 78d571ec79 Some refactoring and added a bunch of comments.
More to do.
2009-11-16 15:00:11 +01:00
Robert McGovern e9ad5c518c Bah did last commit wrong. Only added the password view.
Added support for handling archives with passwords.
2009-11-15 18:50:12 +01:00
Robert McGovern 9452ac9c87 Added support for archives that require passwords.
Having to use an ugly global variable to provide the requestArchivePassword method with access to the archive data so we can use RARSetPassword
2009-11-15 18:06:59 +01:00
Robert McGovern 6de31455d3 Added support to use the Escape key for the Skip button on the Overwrite dialog 2009-11-15 15:54:55 +01:00
Robert McGovern b208b2e332 Report to the user when part of the archive set is missing. Needs to be enhanced so that if file to be extracted was already there that it is left intact. 2009-11-15 15:43:54 +01:00
Robert McGovern d828736bc8 Code will now extract the RAR file to a subfolder of the name of the rar file (without the .rar extension). If that a file already exists the user will be asked if they wish to Skip the file or Overwrite it via an Alert dialog.
Code still needs a proper tidy up but is working well. Support for Password archives or missing parts is not yet implemented.
2009-11-15 13:54:07 +01:00
Robert McGovern d41600f137 Renamed some variables to be Cocoa like. Also added in the callback methods to examine their output. 2009-11-15 00:18:58 +01:00
Robert McGovern b3188496c3 Updated project to properly link & use the custom built libunrar library.
Also initial code to handle rar extraction. No handling or errors like missing RAR files, or requiring a password.
2009-11-14 23:12:16 +01:00
Robert McGovern f4630a44be Setup libunrars build properly and now link against the .so & copy it into the Resources folder. 2009-11-14 18:44:36 +01:00
Robert McGovern 9929851140 Adding initial files which contains the unrar.3.9.6 sources and a patch for the Makefile 2009-11-10 16:48:42 +01:00