🙏 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!
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...
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...
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...
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...
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.
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...
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...
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...
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 :)
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!
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...
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
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/
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...
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...
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!!