pascalpp / freeruler Goto Github PK
View Code? Open in Web Editor NEWA ruler application for Mac OS X
Home Page: https://www.pascal.com/freeruler
License: MIT License
A ruler application for Mac OS X
Home Page: https://www.pascal.com/freeruler
License: MIT License
On a non-retina display, the ticks which are drawn at every second pixel are actually joined. I am unsure why, but wondering if instead of pixels 2, 4, 6 etc they should be draw at 2.5, 4.5, 6.5 etc
Interesting stackoverflow thread on this, with multiple good answers. https://stackoverflow.com/questions/24220638/subclassing-nswindowcontroller-in-swift-and-initwindownibname
Is Sparkle still the best way to do this?
some way to tell which window is frontmost and will respond to arrow keys, etc
Remove menu items not relevant to this app.
First off, thanks for this! I was just wondering what would become of this app when my laptop gets upgraded to 10.15, and you're already here (before a few paid apps I'm waiting on even).
Second, should this be able to run on 10.12? I know I can use the old version, but was just curious if the compatibility was a "new at cocoa" issue or if the ruler is using some fancy features that aren't in 10.12.
Update about window with credits, paypal link?
create a new RulerVerticalWindow: NSWindowController class and corresponding XIB, set all that up, and add to the AppDelegate.
expected:
actual:
Assuming you're thinking of just two rulers at this stage, in a nutshell I think it will involve:
AppDelegate
NSWindowDelegate
extension, and passing it back up to the AppDelegate. Something roughly like:
extension RulerHorizontalWindow: NSWindowDelegate {
...
func windowDidMove(_ notification: Notification) {
let appDelegate = NSApplication.shared.delegate as? AppDelegate
appDelegate?.windowDidMove(notification)
}
}
windowDidMove
, as called by the two windows as per above .You'd likely need to:
guard let window = notification.object as? NSWindow
or similar)window.windowController as? RulerHorizontalWindow
perhaps?)Please let me know which parts of the above make no sense whatsoever! :)
Now that MacOS Catalina is upon us, the old 32-bit 1.7b5 app does not work any more.
In the meantime, I made a local build for myself.
Could I help in any way to speed up the release 2.0?
This looks promising: https://www.mokacoding.com/blog/automatic-xcode-versioning-with-git/
Hi, and thank you for releasing this great tool!
I'd like to request a future enhancement - would you consider adding a Crosshair function to this? Something that can be toggled on/off and would just be a fullscreen crosshair centered on the mouse cursor position, e.g:
This could be very useful and a good complement to this tool I think.
Hi Pascal,
Just add all the features that were in previous versions- like those found in Version 1.7b5.
Cheers,
Steve
just an idea I had, maybe not a real pressing user need, but could be a fun learning exercise.
Not sure we need close buttons, but here's an interesting article on custom positioning of window controls: https://zhenchao.li/posts/2018-07-04-positioning-traffic-lights-of-your-cocoa-app.html
After implementing UserDefaults #16
Hello,
I have been using the ruler for quite a while and enjoy using it. I am wondering the new version of the ruler will be available in inches instead of pixels and if it will have a conversion settings available like it did in the previous versions. It sucks that with the new Mac Catalina update, it doesn't allow for the old version to work. This ruler rocks!
I really appreciate the simple, basic way that FreeRuler meets an occasional need. I'm wondering if there is any way that the option could be added to rotate the ruler, so that, for example, measurements of objects that are at an angle in a photo could be made. Simply choosing a degree of rotation would be great; having live rotation would be even better. Thank you for providing this great tool, and for reading my suggestions!
Regards,
Dave B.
Hi, the specific feature your previous version that was invaluable was the ability to scale the ruler. It allowed me to scale to a pdf set of plans and measure areas of a drawing. Please add this back. Thank you
Super cool that you're re-doing this in Swift. I've used your REALbasic version for so many years I can't even remember :)
Let me know if you have any particular questions about reimplementing this in Cocoa and Swift. I'd love to try to help.
MIT, Apache, what?
See links in #24 for help on saving NSColor to UserDefaults
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.