Skip to main content


I'm going to try to make a pixel perfect port of the Note Pad application :mac:
in reply to Devine Lu Linvega

I believe you need both a caret and a sticc to really be convincing.
in reply to Devine Lu Linvega

It's strange how the traps for the cursor are not really aligned to the grid and the caret changes to a mouse before the menubar begins.
in reply to cancel

@cancel wait, should I have used bitmasks for this? I'm just doing if x and y are more than half the height/width of the selection, then pick the other.
in reply to Devine Lu Linvega

Nah that's fine. If it gets more fancy, you might consider it, though. Since it lets you adjust the graphics and hit zones really precisely without having to write custom logic each time. And the size of a small bitmask is often smaller than the bytes of code needed to do a custom hit test.
in reply to Devine Lu Linvega

loving how it's shaping up. Makes a good friend to Decker, a modern reimagination of Hypercard, which looks very similar! I want to see more Macintosh software reimagined like that. I wonder what is the next good candidate.
in reply to bouncepaw 🍄

hmm, it uses the multi-window paradigm. One would either implement a window manager in the port, or... embed it in Potato 😳
in reply to bouncepaw 🍄

@bouncepaw I'd implement it with its own window handling, I've done some of that in potato and noodle, it's not too much trouble.
in reply to Devine Lu Linvega

Found some screenshots where people have the NewYork12 font in their Note Pad application instead. I'm not sure why that's different from the one I have, but I much prefer NewYork12 to mine.
This entry was edited (1 year ago)
in reply to mcc

@mcc what does cmd-drag does? It doesn't seem to do anything for me.
@mcc
in reply to Devine Lu Linvega

in every Mac OS 6 (or before?) to current, if you hold command (Apple) and drag a window which is *backgrounded*, the window will move without being foregrounded.

Other hidden operations which are related but not relevant to Notepad: Holding option and clicking close closes all windows in the current application; holding cmd and clicking the title bar title shows the path the file is at (if the window represent a file).

in reply to mcc

@mcc I'm not planning on implementing operating system and windowing behaviours, I'll end at the Note Pad application I think ^^;
@mcc
in reply to Devine Lu Linvega

lovely!
I think you’ll want to reset the blink timer on user input (and when cursor moves for any reason) so that it is always visible when “syncing your brain to the screen”
in reply to Rasmus Andersson

@rsms I did after I recorded the last clip, but I noticed that the macintosh doesn't do it, the cursor keeps showing up briefly while I type at intervals.
in reply to Devine Lu Linvega

@rsms it does in some software. also, this might be one of the things that sometimes goes wrong in Mini vMac, but I could be misremembering.
in reply to Devine Lu Linvega

@rsms cool exercise in observation skills. trying to recreate something as it actually is and not as you think it should be.
in reply to Devine Lu Linvega

@rsms install WindowShade extension. Everyone used it. It was so popular Apple put it into the OS later.
in reply to Devine Lu Linvega

Curious about your approach to text wrapping here. How whitespace gets handled (on modern systems) was hell in a hand basket.
in reply to Devine Lu Linvega

Usually in text editors, during a block selection, moving first deselects the block, and moves the cursor to the end, or keeps it in place.

I guess back during Macintosh era, that behaviour was not standardized and moving left after a block selection would move the cursor.

in reply to Devine Lu Linvega

That's one behavior that I will NOT replicate, perhaps it was a mistake on Apple's part, but I know it'll annoy me if the cursor shifts each time I go from a block selection to a position.
This entry was edited (1 year ago)
in reply to Devine Lu Linvega

that's an interesting detail. If you run simpletext (or teachtext if the OS is too old for simpletext) does the selection behavior replicate the oddity?
in reply to Devine Lu Linvega

That's how macOS X still behaves today. I think it's more a Windows thing to behave differently (Not 100% sure which way Linux leans, I'd guess it imitates Windows like in most UI things).
in reply to Uli Kusterer

Or wait, you mean it doesn't go to the end of the selection, but actually already advances by one character? Yeah, that seems odd.
in reply to Uli Kusterer

@uliwitness yeah, on macintosh, it moves one character further than the selection.
in reply to Devine Lu Linvega

Interesting, I never realized classic MacOS did that. Happens all the way from TeachText in System 6 to SimpleText on MacOS 9.

But MacOS X behaves differently there (as you expected and I expect today), I was wrong.

However, CodeWarrior doesn't. So it could be that WASTE behaved differently and that's why most apps didn't have that issue, because they didn't use the TextEdit Manager.

in reply to Devine Lu Linvega

you should imitate nisus writer or BBEdit or something for text editing behavior, not this neglected desktop accessory, haha
in reply to cancel

@cancel yeah that's what I did hehe
https://merveilles.town/@neauoire/110271727070127134


That's one behavior that I will NOT replicate, perhaps it was a mistake on Apple's part, but I know it'll annoy me if the cursor shifts each time I go from a block selection to a position.
in reply to Devine Lu Linvega

There should be a keybinding in i3 to remove the window border.
I think it's $mod-u by default
in reply to Devine Lu Linvega

what programming language/editor is that? It looks really cool!
in reply to Devine Lu Linvega

Not sure how you're doing that, but I once did a diagonal collision check like that using the sum of x and y like if(x+y < 10) and I thought that's so neat.
Unknown parent

Devine Lu Linvega
@eli_oat what's a windowshade?
Unknown parent

Devine Lu Linvega

Oh, that's an easy one to add, but I can't seem to be able to do with in Note Pad application, was that added later than system 7?

What's the interaction like, could you make me a video?

This entry was edited (1 year ago)
Unknown parent

Devine Lu Linvega
@eli_oat might add it anyways, just for kicks.
Unknown parent

Devine Lu Linvega
@eli_oat @jameschip yeah, a sort of context collapse
Unknown parent

Devine Lu Linvega
@jameschip @eli_oat it's time people make fun beautiful software again 🌻

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.