Search results

  1. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    There is no easy way to hide any application (or all applications) with a standard toolbox call. You can do it by faking out the Layer Manager and a bunch of hackery, I think. To get the Finder to show a file’s location you need to use an AppleEvent.
  2. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    Right. You can get lucky for a while until you make some tiny code change that causes THINK to decide that it’s slightly faster to use a 68020 instruction. Then, without realizing it, you’ve suddenly introduced a bomb on an SE.
  3. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    Yeah that Macsbug dump is exactly what you needed. MULU.L (multiple two unsigned long integers in a single instruction) is a 68020 instruction that won’t work on a SE. Glad it worked!
  4. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    OH @superbenk make sure you aren’t compiling with 68020 instructions enabled. Look under edit/preferences in the “THINK C” drop-down and ensure that checkbox is unchecked.
  5. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    @superbenk is only using the legacy ForeColor and BackColor routines, which only support 8 colors but were present from day one and should work fine on an SE (or Plus, or 128k). You are correct that Color QuickDraw generally is not supported on an SE, so he could not for example call...
  6. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    If you have Macsbug properly installed and running you should never see that type of crash. Any system bomb for example “illegal instruction” should always drop into Macsbug instead. Double check that Macsbug 6.x is in your System Folder and that you are seeing “Macsbug installed” under...
  7. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    I doubt that drawing per se blocks After Dark. (It would be hard/cumbersome for them to implement that in any event.) I suspect you are doing something else in your nullEvt processing it is noticing. Are you calling BeginUpdate? (TEIdle, which is what SimpleText is certainly using, does not...
  8. Crutch

    ThinkC [Study Group 1] Drawing on the Macintosh

    Normally that happens when you use Color QuickDraw, but you don’t appear to be doing that here (ForeColor/BackColor don’t count). Have you tried running this under THINK C on an SE, rather than just running the complied app? If you run it in the THINK C environment (check “Use Debugger”...
  9. Crutch

    Color Classic analog board trouble

    Interesting. I didn’t know that and I’d like to research it someday. Thanks.
  10. Crutch

    Color Classic analog board trouble

    Sorry yes I am very familiar with PRAM and its function - but I read you to say that a CC battery drains faster when the CC is unplugged: “… the alternative of keeping that switch off is also bad because it will drain your PRAM battery dry pretty fast if you don't use that machine often”. This...
  11. Crutch

    Color Classic analog board trouble

    I’m sorry if this is in your video which I haven’t yet watched but - what is the extra work that the PRAM battery does if the Color Classic is unplugged?
  12. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    There is really no way to do this, sadly. It’s impossible for me to tell what keystrokes someone else’s _SystemEvent patch is watching for.
  13. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    I don’t think the Toolbox or OS offers a public API to hide an application (layer). To do it, you probably have to dive into the non public Layer Manager API and do some pretty heady stuff. (I hope I am wrong though — I haven’t looked deeply at the Layer Manager in probably 2 years.) If I’m...
  14. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    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...
  15. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    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.
  16. Crutch

    ThinkC MacDock dev progress -- Like today's macOS Dock but for System 7

    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...
  17. Crutch

    ThinkC New INIT for Systems 6/7: Today’s the Day

    One thing you can do is convert the resource fork to text using SADerez, a resource decompiler that comes with THINK C. (THINK will then automatically recompile the resulting .r file into resources if you just stick it in your project.) You’re right though that the project file itself is...
  18. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Nice idea, probably need a VBL task for that to check mouse location while in the background then call SetFrontProcess (which, happily, you can do from a VBL task to bring your app to the foreground).
  19. Crutch

    Mac N' Frost 🥶❄️💨

    Cool @retr01 I didn’t know about these. There’s one for sale on eBay right now, attached to an SE/30 asking $600 OBO.