Search results

  1. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Yes! Wow.. I found it. I was declaring (and defining) my IconGetter(...) function as: Handle IconGetter(ResType iconType, Ptr data); I was missing the word pascal. Correcting it to (as your code had it): pascal Handle IconGetter(ResType iconType, Ptr data); ...fixed my problem! While...
  2. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Yes just as you said. Youre description of how it is supposed to work is totally in line with what Inside Macintosh says so I believe you and it. I must be flubbing something. ill try your code directly soon and just be sure I get your results (just for good measure). And i should spend more...
  3. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    A few questions -- My ThinkC 5.0 doesn't seem to have the GetIconMethod(..) function declared in any of its available .h files. I typed in the definition as you had it though and it seems to work because it does ultimately call my IconGetter function which I can debug with breakpoints. However...
  4. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Agreed that PlotIconID will do what you say. Inside Macintosh phrases it as "PlotIconID selects the most appropriate icon resource for the current bit depth of the display device and the rectangle in which the icon is to be drawn" However, PlotIconID(...) takes an integer as the ResourceID...
  5. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Thanks again for this awesome clue. Following up on trying it: gdPMap is a pixelMap object which has many fields itself (see Inside Macintosh - Imaging with Quickdraw - Pg 4-10) the **pixelSize** field is what I'm *guessing* you had in mind, @Crutch , but let me know if that's wrong. So see...
  6. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Yes. Inside Macintosh’s QuickDraw book explains this “DeviceLoop” callback system. It seems to be the mechanism for an app to span multiple graphics devices even if tthey have different bit depth etc.
  7. MacOfAllTrades

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

    v1.2 released! see git for the updates and the .sit file containing the code and the app Update is only cmd+click to reveal the app in finder.
  8. MacOfAllTrades

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Wondering how to determine current color depth in System 6 and 7. For example - if my app wants to know if it should show color or not - it should check something no doubt that tells it whether the current screen (GDevice likely) has color or not as well as what bit depth it's set to. Best I...
  9. MacOfAllTrades

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

    Quick update - With the great help of folks over at 68kmla, based upon the suggestion from Crutch on here, the AppleEvents thing was figured out. Link to thread here but for continuity here's the deal: Only a portion of scriptable calls are in the Finder (at least in as late as 7.5.5)...
  10. MacOfAllTrades

    ThinkC [Study Group 1] Drawing on the Macintosh

    Certain globals and functions are pulled in automatically and through the mac traps thing. Others know much more about this. But i know you do need to import certain libraries out right. Open up some of the mac libraries and you’ll see they include a lot of others so you also get a lot for...
  11. MacOfAllTrades

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

    It says “Alias for folder containing the items”. Then it says further down “List of aliases for items in the folder” does this mean the parameter to the apple event should be a list of aliases the finder should open or do i first give it an alias of the folder containing the items..?
  12. MacOfAllTrades

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

    Hey all -- Life's kept me busy with unrelated projects but I spent some time on this this week. I'm trying to work my way up to a few new features that involve MacDock getting the finder to do a few things: Show the application in the finder (e.g. command click on the dock item and this should...
  13. MacOfAllTrades

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

    Ah yes -- Resourcerer!! Link included because took me a minute to find it and then a second to find it for 68k. I'll work on this. A decent book. Ultimate Mac Programming (1994) had IMHO a better quick intro to apple events than Inside Macintosh's interprocess comm. chapters. I'm noting it...
  14. MacOfAllTrades

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

    thx for these - but :-P I've already been looking through them and haven't found any sort of Finder apple events details - just lots of general how to set up apple events stuff.
  15. MacOfAllTrades

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

    Yes - thanks. I sew this but I don't know enough to be able to turn that into a proper setup for an AppleEvent call. For example what keywords to use.. do I have to add a parameter to specify the file location etc. etc. etc. Is it possible to determine all of those nuances of setting up an...
  16. MacOfAllTrades

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

    Ok thanks -- and that "1.2 Apple Events" link you sent is promising on its own as well!