|
* TinkerDifferent *
Retro Computing Community |
| Home | Forums | What's New | Search | Settings |
| ThinkCMacDock dev progress -- Like today's macOS Dock but for System 7 |
Forums > Vintage Apple > Software & Operating Systems > Software | Development
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 26, 2023 - #1
4/30 Update -- RELEASED!!:
I filled up a few of the pages in the Study Group 2 thread with questions and progress on this program. It started as the thought "Ok - I've been through the first 5 chapters of the "Macintosh C Programming Primer" diligently typing in all the sample programs along the way and tinkering with them. But to really practice I have to write my OWN program... now wtf do I try and make?" After seeing fun reddit post on r/vintageApple where someone posted a mock up of what the Dock might look like in the old System software, I thought that'd be it. I have it working to switch apps and auto update (though performance tweaks may be in order some day -- it's not at all slow but I can tell it could easily be more efficient). Possible future enhancements:
I have it on a Git repo as well but am not quite ready to share it just I'd like to have it working more before I do)
Liked by jibsaramnim,RetroTechTom,RickLawsonand 14 others |
|
Crutch Tinkerer Chicago -------- Joined: Jul 10, 2022 Posts: 293 Likes: 228 |
Apr 26, 2023 - #2
Great work so far!
One more suggestion if you don't mind: It looks in the GIF like you have to click twice to switch apps: once to bring MacDock to the front, and again to click the app icon. Is that right? If so, you could eliminate that requirement by checking theEvent->where when you get a resume event (I believe it's populated for resume events), and if it's in one of your icons, going ahead and acting like the icon was clicked. The Dave Mark book should describe how to check for a resume event, I'm pretty sure. Liked by retr01andMacOfAllTrades |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 26, 2023 - #3
And yes that's a great idea. I'll give it a look. Im interested in any method to help aboid the extra click into the app and this sounds quite plausible. |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 26, 2023 - #4
Here is a GIF animation of the System 7 Dock concept that @MacOfAllTrades is working on. :)
Woot! So exciting! :D
Liked by JDW,Ubik,-SE40-and 2 others |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 26, 2023 - #5
What does it take to use the same action as the pull-down menu to drag down the mouse and release for the proper selection? |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 26, 2023 - #6
from what i know that is pretty straightforward! |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 27, 2023 - #7
Ok
Liked by JDW,jibsaramnim,rjkuciaand 7 others |
|
ClassicHasClass Tinkerer -------- Joined: Aug 30, 2022 Posts: 386 Likes: 215 |
Apr 27, 2023 - #8
Nicely done!
Liked by MacOfAllTrades |
|
Patrick Tinkerer -------- Joined: Oct 26, 2021 Posts: 435 Likes: 226 |
Apr 27, 2023 - #9
I noticed in the video the icons look like they are being double clicked. (they flash twice)
I feel like in the modern dock they only flash once when you are simply switching to them. This is really cool and i bet a lot of fun to recreate. edit: i meant to ask originally. >Is that flashing twice thing intentional ? Liked by MacOfAllTrades |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 27, 2023 - #10
Liked by Patrick |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 27, 2023 - #11
IMHO, the OS X and System 7 behavior should be respected and appropriate for their respective eras. For example, as I explained earlier, when clicking on a pull-down menu in the classic Macintosh OS, drag the mouse down until the desired selection and release the mouse button, in which the highlighted selection flashes multiple times quickly to indicate the choice. It can be the same for the MacDock concept under Systems 6 and 7.
I was trying to convey in my animation that when the Mac sees the mouse on the dock, it will act like the pull-down menu, and then when the mouse button is released over the desired app to run or switch over to a running app. Options could be made in the MacDock control panel to double-click, drag and release, etc. |
|
Crutch Tinkerer Chicago -------- Joined: Jul 10, 2022 Posts: 293 Likes: 228 |
Apr 27, 2023 - #12
I see these icons as buttons rather than a menu. I think single clicking is more intuitive personally and is also consistent with Apple's Launcher app of the same era.
Liked by robin-fo,retr01andPatrick |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 27, 2023 - #13
That is a valid point, indeed. Intended for novice computer users or simplifying things such as at a kiosk, the Launcher app started in System 7.0.1P with the Performa Macs. Then, by System 7.1P3, sections could be formed within the Launcher. Finally, the Launcher became standard in System 7.5 and on. Check out what Apple had to say about the Launcher on pages 57 and 58 in the Macintosh System 7.5 Upgrade Guide.
|
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 28, 2023 - #14
Good back and forth guys.
i did try the single blink and it feels solid. I also added code to automatically position the dock at the bottom center of the screen (before it was hard coded to bottom center of a compact mac screen. Heads up to future readers "resolution" meand dots per inch as far as Inside Macintosh terminology is concerned. So the ScreenSize function kept telling me 72, 72 and i thought hmmmmm sounds like dpi. Anyway i got the monitor resolution from the gDevice hbdle returned by GetMainScreen (primary monitor representation as a graphics device) Liked by Patrickandretr01 |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 28, 2023 - #15
Yeah. 72 ppi (pixels per inch) was the Apple standard screen resolution on Macs until soon after higher resolutions became available. :)
DPI refers to dots per inch for print.
Liked by PatrickandMacOfAllTrades |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 28, 2023 - #16
Anyone know where to point me in creating custom window frames? I'm using a borderless rectangle window from the ResEdit window options but Id like to have a rounded-corner one (not offered as an option as far as i can find). Figured i needed to do some kind of custom deal.
|
|
Crutch Tinkerer Chicago -------- Joined: Jul 10, 2022 Posts: 293 Likes: 228 |
Apr 28, 2023 - #17
Yeah you would need to write your own WDEF for that. It's not particularly hard but slightly cumbersome and you have to do some things a bit carefully, and ideally to be correct (but not actually necessarily in practice) compile into a separate code resource. I would call it a Slightly Advanced Topic and might recommend saving that for slightly further down the road unless you really want to dive into code resource construction right now.
Liked by MacOfAllTradesandretr01 |
|
retr01 Senior Tinkerer Utah, USA -------- Joined: Jun 6, 2022 Posts: 2,474 Likes: 810 |
Apr 28, 2023 - #18
Flesh out the program, make sure it works and tackle your goals. Can rounded corners be part of an update? Just my two cents. :)
Liked by MacOfAllTrades |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 28, 2023 - #19
Ok heres the update:
In addition to the earlier post on supporting non-compact-mac resolutions and the single blink, I added an option for auto hide. Auto Hide isn't all the way like macOS Dock's auto hide where it goes all the way away until you mouse hover the bottom (maybe some other day...). Instead my Auto Hide just drops the dock window halfway when in the background so that when you're in another app with a bunch of windows covering most of your screen and you maybe have a sliver of visibility of the Dock at the bottom if your screen youll see a more "valuable" sliver of your apps' icons. Anyway, default for this option is OFF but heres a video showing without it, flipping it on, and then showing with it. I'll probably take a pause on the program after this. Been playing with it a ton every night :). Maybe next week ill pick it up and add more features or maybe move on to the next chapter of the programming book. Liked by jibsaramnim |
|
MacOfAllTrades Tinkerer -------- Joined: Oct 5, 2022 Posts: 169 Likes: 191 |
Apr 28, 2023 - #20
Liked by retr01,mmu_man,rjkuciaand 3 others |
| Page 1 of 7 | Next > | Last >> |
| Home | Forums | What's New | Search | Bookmarks | RSS | Original | Settings |
| XenForo Retro Proxy by TinkerDifferent.com |