Search results

  1. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Agree, an even easier approach would be to call WaitNextEvent with a sleep time of at least that minimum desired time interval. (About half a second seems reasonable to me.) The Process Manager won’t give you a null event more often than your sleep interval calls for. And of course it can’t...
  2. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    This is beyond awesome, well done! Probably updating the app list on a timer is the best approach. It should work fine. Otherwise you have to do wonky things like patch Launch and ExitToShell from an INIT, which might actually be impossible in the case of ExitToShell. The floating window...
  3. Crutch

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

    (Cross posting from 68kmla but figure some here may also find interesting): Here’s a new little utility INIT for Systems 6/7 (and probably much earlier versions): Drop this in your System Folder (or Extensions folder under System 7) so that the Finder will show files modified today or...
  4. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Oh okay! You should read the process manager chapter of Inside Macintosh Volume VI. You don’t need to (and should not) send an Apple Event to the Finder to launch or switch to a process. The process manager has routines to do that for you!
  5. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Why are you trying to do this with Apple Events? To launch an application, call LaunchApplication. To switch to one that’s already running, call SetFrontProcess. You don’t need to use any Apple Events.
  6. Crutch

    MODE32/System compatability

    I think @speakers is mistaken. I don’t believe MODE32 is built into 7.5.3 or 7.5.5. To my knowledge, all flavors of System 7 that don’t require 32-bit clean ROMs (i.e. 7.6 and higher … in which case MODE32 is useless) need MODE32.
  7. Crutch

    WarpSE: 25 MHz 68HC000-based accelerator for Mac SE

    To my knowledge, the ability to read 400K floppies with any format was never dropped during the System 7 era. Certainly my SE/30 running 7.5.5 can read MFS-formatted 400k floppies just fine. (The folders don’t show up … but the files are all there.) (While it was theoretically possible to...
  8. Crutch

    WarpSE: 25 MHz 68HC000-based accelerator for Mac SE

    The ability to write 400K disks was dropped at some point I think (but believe it was later than 7.1?? maybe I’m wrong). But you can certainly still read 400K disks with later system versions. I do it all the time on my SE/30 running 7.5.5.
  9. Crutch

    MODE32/System compatability

    I’ve never used 32 bit addressing under System 6 and certainly didn’t know it was possible. That said, this Optima product looks interesting but it says “not compatible with MultiFinder” so … it lets you run just one giant application at a time using your more-than-8MB RAM? Sounds …. not very...
  10. Crutch

    MODE32/System compatability

    How do you switch to 32-bit mode in System 6?
  11. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    I think that’s right. Or of course you can just add a breakpoint in one of those files by calling the Debugger() trap from any function therein.
  12. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    That’s weird. There is no natural reason for that to happen. Is there any chance you have accidentally declared separate but identically-named globals in each file, such that moving the function causes it to use the wrong (perhaps uninitialized) global for some purpose? If you use Macsbug you...
  13. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    The only time you should need to split your code into multiple segments is if your total complied code + string/data exceeds 32K. But the compiler will always tell you when that happens. Simply adding more C code to a file should never cause a successful-but-buggy compilation. I’m pretty sure...
  14. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    PlotIcon is what you need, confusingly in the Toolbox Utilities chapter. Or of course you can always stuff your icon into a bitmap and use CopyBits. Edit: of course you aren’t actually getting an ICON resource this is just showing you how to draw it. I don’t remember if PBDTGetIcon() gives...
  15. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Well, both things could certainly be true 🥳
  16. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    It stands for LightSpeed Debugger 😊 THINK C’s original name was LightSpeed C (because it was fast!).
  17. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    By the way - your project sounds really cool! If you just want to try something like this that’s already available today, I highly recommend Program Switcher https://macintoshgarden.org/apps/program-switcher It allows your to Cmd-Tab between open applications, and also permanently include...
  18. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    Yes. You want the Process Manager to get a list of all the apps running, and the Desktop Database to get icon information. To walk the list of all currently running processes, call GetNextProcess() repeatedly. The first time, pass it kNoProcess. Thereafter, pass it the prior processes’...
  19. Crutch

    Raiders of the Lost Icon: search for long-forgotten iconic treasure!

    This is cool! An amazing enhancement would be to add some pretty basic machine learning logic to classify “things that are probably icons” vs. everything else, then put those right at the top! It would probably not be hard to do, since icons vs. white noise are very distinct. (Of course you...
  20. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    You do have it set to get background NULL events. Check your SIZE flags popup there, you’ll find it’s checked (I can tell because the first digit of 0x50E0 implies the high byte has bit 5 set). Turn that off and this issue should stop happening, I think.