Welcome, Guest. Please login or register.

Author Topic: ADF Viewer/Manager for macOS  (Read 12247 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #14 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 »
 

guest6931

  • Guest
Re: ADF Viewer/Manager for macOS
« Reply #15 on: January 14, 2017, 02:24:04 PM »
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.
 

guest6931

  • Guest
Re: ADF Viewer/Manager for macOS
« Reply #16 on: January 14, 2017, 02:28:51 PM »
Something else that might be useful for someone:

Saving icons as two-state pngs.  From what I remember, writing the two pngs to one file is sufficient. (even catting them seems to work)

This is the png style used by AROS and MorphOS.
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #17 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #18 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 Acill

Re: ADF Viewer/Manager for macOS
« Reply #19 on: January 15, 2017, 07:02:41 AM »
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?
Proud Retired Navy Chief!

A4000T - CSPPC - Mediator
Powerbook G4 15", 17"
Powermac G5 2GHZ
AmigaOne X5000
Need Amiga recap or other services in the US? Visit my website at http://www.acill.com and take a look or on facebook at http://facebook.com/acillclassics
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #20 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #21 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #22 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 only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #23 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 »
 

Offline golem

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 432
    • Show only replies by golem
Re: ADF Viewer/Manager for macOS
« Reply #24 on: January 28, 2017, 09:10:43 PM »
Thanks bloodline. I've downloaded and will give this a shot. Always interested in more modern ways to back up my aging Amigas.
                                                             
A1200 desktop, Blizzard 1260, OS3.9BB2, Indivision Mk II, SCSI Jaz, Ethernet
A1200 desktop, Blizzard 1230, OS3.1, Ethernet
A500, OS1.3
 

Offline nicholas

Re: ADF Viewer/Manager for macOS
« Reply #25 on: January 29, 2017, 06:12:45 PM »
Nice work Matt!

Does it only support OFS/FFS at the moment?

SFS and PFS3 might be useful additions for HDF or even physical drive reading in the future.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #26 on: January 29, 2017, 07:49:48 PM »
Quote from: nicholas;821034
Nice work Matt!

Does it only support OFS/FFS at the moment?

SFS and PFS3 might be useful additions for HDF or even physical drive reading in the future.
Hey Nick, yeah just OFS/FFS as I don't have any SFS or PFS disk images to test.

I want to add real drive access later too.

Once all that works, I'll see about supporting other file systems.

To be honest the real fun is making a "workbench" clone to access them... there is also a 68k emulator in there too... just not doing anything at the moment :)
« Last Edit: January 29, 2017, 07:52:44 PM by bloodline »
 

Offline nyteschayde

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 643
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: ADF Viewer/Manager for macOS
« Reply #27 on: January 30, 2017, 12:31:36 AM »
Quote from: bloodline;821039
Hey Nick, yeah just OFS/FFS as I don't have any SFS or PFS disk images to test.

I want to add real drive access later too.

Once all that works, I'll see about supporting other file systems.

To be honest the real fun is making a "workbench" clone to access them... there is also a 68k emulator in there too... just not doing anything at the moment :)


Are you going to put the source on GitHub or some other public place. I understand if you might not want to, but learning is awesome. I'd love to see how you did all this.

I can't wait to download a build and try it out.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline nicholas

Re: ADF Viewer/Manager for macOS
« Reply #28 on: January 30, 2017, 01:29:39 AM »
Quote from: bloodline;821039
Hey Nick, yeah just OFS/FFS as I don't have any SFS or PFS disk images to test.

I want to add real drive access later too.

Once all that works, I'll see about supporting other file systems.

To be honest the real fun is making a "workbench" clone to access them... there is also a 68k emulator in there too... just not doing anything at the moment :)


I was actually wondering if you'd done it that way so you could use the actual 68k filesystem handlers.  Well done,  I'm impressed.  :)

I've not got a working Intel Mac anymore so I can't have a play with it sadly.   Maybe I should build a Hackintosh.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: ADF Viewer/Manager for macOS
« Reply #29 from previous page: January 30, 2017, 09:38:00 AM »
Quote from: nyteschayde;821051
Are you going to put the source on GitHub or some other public place. I understand if you might not want to, but learning is awesome. I'd love to see how you did all this.

I can't wait to download a build and try it out.

Hey there,
 
 I don't want to release the code in its current state, some of it is 6 years old and written before I properly understood the Appkit and Cocoa... I'm still not sure why some of it works (the .info icon reading code really shouldn't work), so I simply won't be able to support it :(
 
 I am rewriting as I add more features, and when the code looks better I will share it :)
 
 I'm replacing a lot of target/action patterned sections with closures.
 
 Little easter-egg for you; if you run ADFBench from the terminal, it dumps out all my debugging printf()s as it runs... some of my statements are simply embarrassing, others give a fascinating insight into my state of mind.