Welcome, Guest. Please login or register.

Author Topic: ADF Viewer/Manager for macOS  (Read 12294 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
ADF Viewer/Manager for macOS
« on: November 30, 2016, 11:11:40 PM »
I was cleaning through some old files and found some old code for an ADF manager I wrote for the Mac some time ago.

I have compiled the code and amazingly it works... if anyone here find it useful, let me know and I might add more features :)

https://drive.google.com/file/d/0B3CMG5yqFK4janJFaS1CUFRFek0/view?usp=sharing

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #1 on: December 01, 2016, 07:34:17 AM »
Quote from: Matt_H;817120
Er, any chance you can do an OSX 10.6 compatible compile? ;)



I'll see if I still have an OS 10.6 sdk :)

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #2 on: December 01, 2016, 05:28:26 PM »
Quote from: Jason___;817136
This  runs fine on Sierra.  Good job!

Is there any way you could add to this app to export the .info icons to the desktop as icns files, or png files?  I'd love to be able to replace icons in macos with amiga icons.

I can add the feature for you :)

Things on the current todo list:
1. Implement 1.3 style window borders (no code yet)
2. Activate the missing gadgets (the code for scrolling and resizing is buggy)
3. Saving files to your Mac (I'll add saving out the icon image to this as well)
« Last Edit: December 01, 2016, 05:32:49 PM by bloodline »
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #3 on: December 01, 2016, 05:30:11 PM »
Quote from: Jason___;817137
Chances are your adf has glowicons or newicons, which crashes ADFBench.


I don't have any ADFs with GlowIcons or NewIcons so I couldn't test them :(

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #4 on: December 02, 2016, 09:27:07 AM »
@Matt_H: I can't compile for OS 10.6 because I have used ARC (Automatic reference counting) throughout the code, which is only supported in later versions of macOX :(

-Edit- I noticed that the error message code was disabled for some reason, I've reactivated it so the next release should now give a message when something goes wrong.

Screenshot:


https://drive.google.com/open?id=0B3CMG5yqFK4jeGZiZ2R0U1ZmMEE
« Last Edit: December 02, 2016, 10:37:16 AM by bloodline »
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #5 on: December 03, 2016, 01:23:25 PM »
I have uploaded a new build.

To save the icon file to your Mac, right click on it and select the "Save Icon" option.

Enjoy :)


https://drive.google.com/file/d/0B3CMG5yqFK4janJFaS1CUFRFek0/view?usp=sharing

Note: this version is developer signed, I might add it to the Mac App store if there is enough demand. :)
« Last Edit: December 03, 2016, 02:52:38 PM by bloodline »
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #6 on: December 06, 2016, 10:11:18 AM »
Quote from: Matt_H;817241
Ah well, thanks for trying. Will give it a spin on my 10.10 partition next time I have it booted. :)
Here is a 10.10 (Yosemite) build just for you :)

https://drive.google.com/open?id=0B3CMG5yqFK4jbE1pNjIxUDJPN2M

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #7 on: December 07, 2016, 09:15:09 PM »
Quote from: Jason___;817418
Just discovered a bad bug for saving icons.  The OSX display antialiases the icon image, so when saved, its not in its original 4 colors. (lots of extraneous colours and data)
I appreciate the feedback! I'll get to work fixing the bugs and implementing the features you requested.

PS I'm not planning on charging for this, I just hope someone finds it useful :)

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #8 on: January 14, 2017, 12:17:39 PM »
Quote from: Jason___;817418
Just discovered a bad bug for saving icons.  The OSX display antialiases the icon image, so when saved, its not in its original 4 colors. (lots of extraneous colours and data)

I've implemented a "Save All Icons" feature in the "Amiga Disk Files" menu, which will save all the icons it finds in your ADF as tiff files. The normal and selected states are placed one on top of the other... that's the only way I can make this work for now (I'll see what I can do). I have removed the antialiasing so the original 4 colours are used.

I few little improvements as well, windows can now be resized, double clicking a window will raise it to the front most view.
The screen area can be any size you like... which includes full screen (looks awesome... especially in 1.3 view mode: atl-cmd-t).

The browser supports multiple ADFs, I want to implement greater interaction between disk files at some point.


Keep the suggestions coming :)
« Last Edit: January 14, 2017, 12:25:56 PM by bloodline »
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #9 on: January 14, 2017, 02:38:45 PM »
Quote from: Jason___;819711
An option to save only the unclicked state would be useful, especially since OSX doesn't support two-state icons :O

The save all icons feature is great.

Opening HDFs (or other hardfiles) would be good too--you could save a huge amount of icons all at the same time.

The program seems to be able to open disk images with other types of icons now, but still crashes under certain conditions. Not sure why.


if an ADF crashes the App, then email it to punysupport@gmail.com so I can examine it an figure out what is going wrong.

Hardfiles shouldn't be too difficult to add.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #10 on: January 14, 2017, 10:19:33 PM »
Jason, do you have a link to a known good HDF file, I can't seem to get UAE to work with any.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #11 on: January 15, 2017, 10:39:19 AM »
Quote from: Acill;819756
Seems I cant find any way to view files with no icons on an ADF? Is this missing or am I just not finding the option?


I'm working on adding a "Show All Files" option, which will be useful when I activate the rest of the disk operations.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #12 on: January 24, 2017, 11:42:17 AM »
I have rewritten the actual ADF code, as my old code (written well over 5 years ago) made too many assumptions and optimisations to allow it to read High Density ADF and HDF files.

It has been quite an intensive rewrite (reading/writing amiga disks/files is a byte swapping nightmare), but should allow access to real amiga formatted hard disks in the future too! But will now work even if the disk doesn't have an icon (i.e. no disk.info file).

This has also allowed me to change the oldest supported macOS to 10.10 (Yosemite).

Please email me a disk image if it doesn't work, so I can make my code support it.

I will now try to get the "Show All Files" option working :)

https://drive.google.com/file/d/0B3CMG5yqFK4janJFaS1CUFRFek0/view?usp=sharing

Ultimately this app should become an ADFOpus for macOS.
« Last Edit: January 24, 2017, 01:10:55 PM by bloodline »
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #13 on: January 24, 2017, 09:54:26 PM »
"Show All Files" now works, but needs to be activated on a per disk basis in the "Amiga Disk Files" menu :)

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show all replies
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #14 on: January 28, 2017, 01:40:56 PM »
It's been a while coming, but right clicking on an icon now gives the option to save the file to your Mac hard drive, ideal for recovering files from old ADF/HDF.

I will add a menu option to save all files to your Mac in one go.

Other bug fixes and under-the-hood improvements have been made as well.

-edit- I will activate writing to the ADF/HDF files once I can be sure that it doesn't corrupt the disk :)
« Last Edit: January 28, 2017, 01:44:31 PM by bloodline »