Search results

  1. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    🙏 for the kind words and all the help. regarding keeping the app list up to date I just tried hooking the update function to the NullEvent handler and it works great. I dont know how terrible this is for processor performance tho!
  2. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Got through some of the Files and Process Manager sections of Inside Macintosh. I now have app switching working :-) See the video -- thanks all for the continued help. Yes - it's a demo - so there are plenty of missing pieces that the video doesn't expose such as: redrawing unhidden parts of...
  3. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    No need to do it with apple events. With my limited knowledge thats just what i thought was the way to do it not having seen anything about LaunchApplication in my learnings. If it isnt in the first dew chapters of the programming book this study group is following along with then theres a...
  4. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Thanks that should be lots with me to work with. Ill mess with it this weekend and post results.
  5. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Ah here was my debugging problem: In any event - I think I'm past my last issue. I spent a few hours tonight trying to find out how to construct an apple event that will launch or switch to another application. I thought using the kCoreEventClass, kAEOpenApplication and providing the...
  6. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Thanks for the suggestions. I'll play around with it all. Could be one of those things that doesn't make sense till it does. Also - how does ThinkC debugger handle multiple files. I see no way to force it to open other .c files unless I actually step->into a function that resides in another...
  7. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Thanks, Crutch, for the info. So I've nailed down the symptom a little better: I have my code split across two files. One bigger function in one fille and all the rest in the first file. When i consolidate them into one file it works no problem If i keep them split it crashes often.
  8. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    To the group: How long does my .c file have to be to where I should expect that phenomenon of the executable code being split across multiple chunks of memory or something..? And regardless, what does one have to do to account for that? Asking because I've had my whole program in a single...
  9. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    For future readers - PBDTGetIcon updates your supplied PBDTRecord’s ioDTBuffer data with the icon data(first the icon bits and then the mask bits), not a bit map directly. So yes to your final point that you can just set a BitMap’s baseAddr field to point to the first address of your bits (in...
  10. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Fruits of my labor: Now to find out why the Finder icon is a mess… and then of course make the program actually do something. thanks
  11. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Ah I’m close (and so far away). I’m at the point where I’ve set up all my stuff and can iterate through each process and then get its icon (im sure I’m doing this in a lame inefficient way setting up a PBRecord etc..). In the debugger I can see the bytes that make up the icon data and can tell...
  12. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    That’s right, I forgot! Well between LSD and the little diamond I thought maybe it was a drug reference or at least a Lucy In the Sky with diamonds thing. But Lightspeed Debugger makes more sense :)
  13. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Funny that process signature for the ThinkC debugger is LSD? Anyway thanks for the tips ok process info. I’m getting there… next I’ll pull up the icon and figure how to parse the data and then display it on my little dock!
  14. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Thanks! I have never used that but will try it for fun. I didn't do any research on whether something like my project exists mainly because I'm doing it to have a target to exercise what I'm learning in this programming tutorial so things like market acceptance and uniqueness aren't too...
  15. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Thanks yes! I was just reading up on this in Inside Macintosh! Had gotten as far as how to produce a list of running processes but hadn’t seen yet the part about PBDTGetIcon to get the icon. Thanks
  16. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Also does anyone have a good link to digital copies of Inside Macintosh volumes? Here's a link to Inside Macintosh Volumes: https://archive.org/details/inside-macintosh-1992-1994/1992-macintosh_toolbox_essentials/
  17. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    Is there a way for my program to query the OS to see what other applications are currently running? And then to access those apps' application icon? My goofball project is to make a very simple likeness to the OS X dock that hovers at the bottom of the screen. --- Playing it real simple for...
  18. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    And I figured it out… I don’t see where in the text I missed this but I have to go in Event *Trigger*’s “Set Project Type..” window and set the HIGH LEVEL EVENT AWARE flag in the SIZE flags. The book def says to do all this for Event*Tracker* but I don’t see where it says to do this for...
  19. MacOfAllTrades

    ThinkC [Study Group 2] - Events & Menu Management

    I cannot seem to get my EventTracker to respond to the AppleEvent generated by EventTrigger. I made sure to set the Creator code correctly in Tracker and to use ‘Prmr’ as the appSig that is the destination in Trigger… I’m a bit stuck!!