Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Existing TAP/SNA on Open #1416

Open
robpearmain opened this issue Nov 27, 2024 · 4 comments
Open

Replace Existing TAP/SNA on Open #1416

robpearmain opened this issue Nov 27, 2024 · 4 comments

Comments

@robpearmain
Copy link

I am using the excellent CLK for ZX Spectrum development.

If I reassemble and then Open my TAP/SNA file, and CLK is currently displaying the TAP/SNA, it doesn't replace the existing tab with the new image.

It would be great if when I click "Open With" on the TAP/SNA, if it is already running, the tab is closed or replaced.

Currently I need to close CLK, then click Open for the new image to appear

@hippietrail
Copy link

It could check if its timestamp or checksum has changed and reload it only if so.

@robpearmain
Copy link
Author

robpearmain commented Nov 27, 2024 via email

@TomHarte
Copy link
Owner

TomHarte commented Dec 1, 2024

There seems to be a func presentedItemDidChange() on NSDocument and therefore I could easily override that on my MachineDocument, make sure I ignore metadata changes and... I'm not sure. It's probably correct to wait for user action before doing a machine restart; I'll have to see whether I can catch a second attempt to open the same document. No doubt there's something on NSDocumentController.

@robpearmain
Copy link
Author

robpearmain commented Dec 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants