Commit Graph

48 Commits

Author SHA1 Message Date
Robert McGovern 0d3d4c2781 Some more import switches. Missed them earlier. 2022-04-20 13:43:50 +01:00
Robert McGovern eb4f8474e7 Added Image asset catalogue and populated it with a temporary icon. 2022-04-20 13:23:08 +01:00
Robert McGovern 14adf09020 Renamed the info.plist 2022-04-20 12:53:08 +01:00
Robert McGovern a13af98dee added gitignore 2022-04-20 12:43:47 +01:00
Robert McGovern 16e138204b added untracked carthage files. Pretty sure I should exclude the build directory but for now it remains. 2022-04-20 12:39:58 +01:00
Robert McGovern d861a1abec Used Xcode's "Convert to Modern Objective-C syntax" 2022-04-18 12:43:58 +01:00
Robert McGovern 566470bb29 Updated project file to only build active architecture (just to shut Xcode up) 2022-04-18 12:39:30 +01:00
Robert McGovern 5ce6feae92 Switched from linking macOS frameworks to using Clang Modules, dropped the pre-compiled header (although I may put that back) 2022-04-18 12:35:04 +01:00
Robert McGovern 0f341f7a50 Updated readme with details of plan, and libraries I want to use 2022-04-18 12:06:11 +01:00
Robert McGovern 9c7124e283 Quiet the compiler complaining about RARGetDLLVersion, specficially "function declaration isn't a prototype" 2022-04-18 11:53:30 +01:00
Robert McGovern 072130be6a Prevent Xcode compiler warning that methodImpl was not initialised when taking the default path. It should never go there, and will raise an NSAssert if it does, so this is just shutting the compiler up :) 2022-04-18 11:51:39 +01:00
Robert McGovern b6b4fdfc92 Renamed executable and active scheme. Switched to using unrarkit. Debating uning unzipkit or different options. Fixed a couple of issues where I was updating the UI (hiding window, and showing password dialog) off the main thread 🙈 2022-04-18 05:16:38 +01:00
Robert McGovern bc011c0cbf Updated packages from Carthage 2022-04-18 05:14:03 +01:00
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