Code Monkey home page Code Monkey logo

Comments (9)

JoseAlban avatar JoseAlban commented on July 30, 2024 3

I had this issue on version 1.5 (2011) recently on OS X 10.8.5, and realised that checking the preference "Dropbox Sync" was screwing it up.

Now I've it unchecked and it saves my preferences normally when I quit.

from flycut.

TermiT avatar TermiT commented on July 30, 2024 1

@bool-dev Apple forbids to use CGEventPost call for sandboxed apps. And this part is very import as we use CGEventPost to emulate Command+V shortcut. So there is no way to update AppStore version without breaking main functionality.

from flycut.

cwrea avatar cwrea commented on July 30, 2024

I'm seeing this problem too, exactly as @douglsmith has described.

from flycut.

MarkJerde avatar MarkJerde commented on July 30, 2024

This appears to be a defect of meaning originating somewhere back in the jumpcut code, though I haven't done the full archaeology on it. The "Save" preference is linked to the "savePreference" user default which appears to be used in the code to indicate for saving of preferences as well as saving of clippings (they are both saved to the same file, fwiw). I would suggest that we change Flycut to always save preferences and use the "Save" preference exclusively to control saving of clippings.

Thoughts? Is there any scenario where saving of Flycut preferences would be undesirable? Preferences and clippings are stored in ~/Library/Application Support/Flycut/com.generalarcade.flycut.plist.

  • Mark

from flycut.

MarkJerde avatar MarkJerde commented on July 30, 2024

My initial analysis was incorrect. After digging into DBUserDefaults, NSUserDefaults, and the Flycut / Jumpcut code history I figured out how the preferences are saved. A fix has been submitted via pull request #40.

The problem originated in revision 8 of Jumpcut, which added use of NSUserDefaults without a call to NSUserDefaults's synchronize function on exit. NSUserDefaults documentation states that synchronize is automatically invoked at periodic intervals but not automatically at exit and thus was unreliable without an explicit call. The problem was masked by a call to synchronize whenever a clipping was added if save is enabled. Gennadiy improved synchronization in 2011 when he added clip storage to the same file as preferences. At exit, if the preferences say to save the clippings list, the change Gennadiy made will save the preferences. I extended upon that by calling synchronize at exit if the preferences say not to save the clippings list.

  • Mark

from flycut.

bool-dev avatar bool-dev commented on July 30, 2024

Still not fixed!! On El Capitan.

from flycut.

TermiT avatar TermiT commented on July 30, 2024

@bool-dev version 1.8?

from flycut.

bool-dev avatar bool-dev commented on July 30, 2024

@TermiT Sorry missed your comment. Version 1.5 from AppStore, any reason that isn't updated as yet?

from flycut.

bool-dev avatar bool-dev commented on July 30, 2024

@TermiT thanks for explaining that! Done, 1.8 works as expected!

from flycut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.