TweetFollow Us on Twitter

May 90 Mousehole
Volume Number:6
Issue Number:5
Column Tag:Mousehole Report

HyperCard XCMD DB Routines

By Larry Nedry, Contributing Editor

From: Jhannah

Re: Using Copybits()

The structure of a PICT resource is a bit different than a bitmap! You need to create an offscreen bitmap, paint the PICT to that offscreen bitmap, then make your own bitmap’s baseAddr point to the offscreen bitmap’s baseAddr and then you may use CopyBits with your own bitmap.

From: Scope

Re: Text Rotation - HELP!

I thought that it would be simple, but I am stuck. I want to be able to write a vertical (up or down) text string on a Mac. I can easily do it under HALO or GSS on the IBM by simply setting the text rotation to the desired angle and writing away, but I can’t find any related commands in IM I..V. The only solution to providing a rotated object I have ever seen mentioned was in “The Best of MacTutor-I”, which had an algorithm for bitmap rotation. This seems too complicated for such a (seemingly) simple operation. Can it be that the Mac can’t do it? Or did I just miss something. Please help.

[Check out John Olsen’s article in Vol. 4 No. 2 on page 62 for a 90 degree text rotation article (it is also found in the Definitive MacTutor on page 9. The source code is found on disk #29.-ed]

From: Dont

Re: HyperCard XCMD db routines

From that terminal illness Married & Mortgaged. The programming I do get a chance

From one of the above. It must be multiuser and be able to use the Mac as a host.It must be able

Flipping through MacTutor one finds four obvious choices...

1. c-tree from Faircom

2. db_VISTA ||| from Raima

3. Inside Out from Shana Corp.

4. HyperHit from SoftStream.

Items 1-3 are C routines designed for developers and would require XCMD routines. Item 4 is already built for HyperCard. Does anyone have experience with these products? If so, do the perform as advertised. For items 1-3 are there any XCMD implementations?

From: Drunkle

Re: HyperCard XCMD db routines

DonT -- Something you may want to investigate is the XCMD package being marketed by Dan Shafer: HyperFox. Allows opening, reading, updating FoxBASE format data and index files from within HyperCard. Single User commercial license is $75, multi-user and site licensing also priced on a sliding scale. Marketing company is Apricot Press, 277 Hillview Ave., Redwood City, CA 94062. Shafer is available via CompuServe [71246,402], MacNET or AppleLink (DSHAFER). I’ve sent for a copy but haven’t yet received it.

From: Tomt

Re: HyperCard XCMD db routines

I think that several other mainline databases have Hypercard front ends available. You might check on that first before buying one of the products you listed. There was a review of HyBase and HyperHit in this weeks Macweek.

From: Jersquare

Re: Floating Windows

Floating windows “float” over any active window. They are windoids. But lately I have found if I ask for windoids I get advice on WDEF’s I needed to know how to make my windoids work once I had them on the screen.

The rules seem to be these

1. Windoids are always in front of document windows.

2. When you leave the Application (under multifinder) they disappear. That seems to be it really. I needed to know how to make it look like they were always on top, especially when I moved a document window.

From: Rastamon

Re: Floating Windows

Regarding, when floating windows should be hidden:

Although I haven’t (yet) seen any Human Interface notes on it yet, I would say that floating windows should be hidden ANY time the “parent” window is deactivated, not just when swapped out under MultiFinder (ie. DA to front, unrelated window to front). They should probably be hidden when alerts are brought to the front, but since this situation does not “truly” deactivate the front window, lots of apps don’t take care this case.

Not all applications behave this way, but they probably should.

H.I. notes for Layer Manager (or present ones I haven’t seen, yet) may prove me wrong, but I believe the notes will probably say something similar.

From: Dorothy

Re: Modifying ‘STR ‘s in LSP on Mac

Hi, I’m trying to update my two games Glider+ and Glypha. Problem: Too dumb!

Well, everyone has insisted on a highscores board that saves. I’ve tried both reading in from a ‘STR ‘ resource and then, at the close of the game, modifying it. I’ve tried AddResource after a RemoveResource, etc... Well, with Lightspeed Pascal and 1 meg of memory, I keep damaging my application zone or crashing the whole system. It will claim address errors or low memory errors.

That could well be. I have sampled sounds (although very short ones) and a couple of offscreen ports open during the games. So, I close them, dispose their pointers and still get crashes.

What am I forgetting here? Is there a good way to insure the memory? And how much do I need?

Well, so I tried just creating and opening a file on the disk to save the scores. No. No memory for that operation either. Crash, crash. I’ve bumped the Stack and Zone settings in Lightspeed as high as I dare, but still run out of memory.

From within the program? Specifically ‘STR ‘ resources. How do you correctly define the resource handle so that it’s pointing

Also, what does MoreMasters do? Do I need to call that routine a dozen times?

From: Jhowarth

Re: Modifying ‘STR ‘s in LSP on Mac

I have a STR resource that I change and save in my Reminder INIT. The code is

{1}
var
   myStringHandle:StringHandle
   myNewString:STR255;

begin
...
  myStringHandle := StringHandle(GetResource(‘STR ‘,theID));
  myNewString := myStringHandle^^;
.... Do whatever you need to with the STR255 myNewString ...
  SetString(myStringHandle,myNewString);
  ChangedResource(handle(myStringHandle));
  WriteResource(handle(MyStringHandle));
...
end

You may want to lock the StringHandle when you work on it. ChangedResource marks it for writing out and WriteResource is there for good measure to make the Mac do it immediately and not later. Hope this helps out.

From: Beamer

Re: Moon Phases

Does anyone out there have a formula(e) for calculating the date of the next New Moon, or the current phase of the moon? I program in C, but C or Pascal source, or pseudocode, or even good ol’ algebraic formulas would be greatly appreciated!

From: Venture

Re: Just black screen saver ?

From the stock market opening to the closing bell I would like to blank the screens when there has been no user interaction for a few minutes. Is there a package which just blanks the screens to save them. Packages like Pyro take up

As a last resort I would build the save function into the application, but that is a less than optimal solution.

Your ideas would be appreciated.

From: Jmoreno

Re: Just black screen saver ?

I don’t know of any offhand but blanking the screen is very simple. It takes about six or seven lines of code to do it. Doing it yourself would seem to me to be a better answer than the hassle sure to be involved in bundling someone else’s INIT.

From: Venture

Re: Just black screen saver ?

Thanks, you may be right. My main reason for not wanting to stick it into my own application is that I am running under multifinder and I was anticipating problems with handoffs when running in the background.

I may not have thought enough about it yet and have never written an init so that did not occur to me.

Thanks for the reply.

From: Jmoreno

Re: Just black screen saver ?

A simple way to check to see if you might be interfering with somebody elses app is to make sure that your window is the FrontWindow if it’s not then you can forget about blanking the screen under the theory that the user is working and doesn’t want to see a black screen.

From: Darryl

Re: Where’s the PiMI? (In SuperPaint)

I just finished typing in the ‘Fuzzy Brush’ SuperPaint Plug-In as featured in the Feb. 1990 issue of MacTutor. Every thing that is present in the article looks fine, but what happened to the ‘PiMI’ resource? Looks like I’ll be designing my own About box and icon while a certain editor turns slightly red... I was hoping I could find it here, but I haven’t had any luck. If I can get it here, will someone leave me a message? Either here or (preferably, since this is long distance) on CompuServe (User ID 70157,751). Thanks in advance.

[The PiMI Resource has an ID number of 1600 and only contains $0001 which is the version number. Just create it with ResEdit or another resource editor- ed]

From: Yoda

Re: Tear Off Menus & Palettes

From the routine in the MDEF called DragMenu() where the position is set to the rgnBBox of the dragRgn. Interestingly if the position is set to say (100,100) it works just fine positioning all palettes to (100,100). Somewhere along the way for the Mac IIci the dragRgn’s rgnBBox is getting corrupted. Has anyone else seen this behavior? Anyone know the reason and a solution?

Any help appreciated. Is any one interested in the code for the MPW 3.0 version - particularly if this problem is solved?

From: Madmacs

Re: Multifinder

I need to use a program to start up another program and not to exit itself, sort of the way Multifinder does. I guess the easiest way to explain it is that I want to do a unix like fork() and exec(). I have looked but I can’t find mention of this anywhere and I have never seen a program that needs it. But now I do, does anyone have any suggestions??

From: Pkram

Re: C++ compiler

What really IRRITATES me about Apple’s C++ interpreter, is that it is not a compiler. Why can’t they come up with an AT&T 2.0 true compiler. That they haven’t is truly PATHETIC.

Anyone read the “Nanobytes” section of the Nov ’89 BYTE? AT&T is offering a deal to colleges and universities for students to purchase an AT&T C++ compiler for $25.00. A toll free number 800-828-8649 was also listed in the article.

It is necessary for someone either faculty or administration to purchase the source code for $300.00. After porting the code to the target machine, then students may be licensed to use the binary (not the source) compiler. When I called the 800 number, they said that porting the source should not be very difficult. Now I ask, if a professor at a college or university can produce C++ compilers by porting the source, why can’t Apple do the same? Sure this particular offer is only for educational or non-profit research institutions, but surely Apple could purchase the source for a higher than $300 price.

Surely some decent arrangement between Apple and AT&T could make true C++ compilers for the Mac development community available. Why oh why hasn’t this happened????????

I will NEVER pay more than a few (and I mean $25 or less) for a C++ interpreter. If its not a compiler and if its not TRUE C++ FORGET IT!

From: Siegel

Re: C++ compiler

Actually, Apple C++ is C++ 2.0, with a couple of extensions for greater Mac compatibility. Also, MPW C++ is a preprocessor, not an interpreter. It’s a legitimate, if not ideal, way to implement a C++ compiler.

From: Jhannah

Re: More pixels for your video!

Has anyone ever hacked around and tried to get a Hold-And-Modify effect so that we could have an 8 bit card think it is 16 or 32 bit (or should I say 15 or 24 bit)... is there a small hardware modification to any of the video cards out there that could do this?

By the way, does BIGVIDEO increase the DPI or the # of lines & column of pixels on the monitor?

From: Sysop

Re: More pixels for your video!

BIGVIDEO which is actually called MaxAppleZoom is pretty slick. The DPI is the same at 72 DPI and width and height are increased to use ALL of the screen including the edges that are normally black. Try it if you have a single video card Mac. (It doesn’t work with multiple video cards).

From: Jhannah

Re: More pixels for your video!

Yes but have you ever heard of Hold-And-Modify for the Mac II? (the Amiga sometimes uses this to get more colors).... also, some alternate video cards on the market can squeeze out 768x512 pixels.. thats 64 more horizontal pixels then MaxAppleZoom... is it just a matter of how much video memory is available?

From: Wildman

Re: Tickcount accuracy for stopwatch routine

Another option you consider if you really need better accuracy is to make a little hardware widget to hook to your serial port. A crystal and a driver chip could generate 1Khz square waves. This would give you a character input interrupt 100 times a second. The accuracy could be made comparable to an electronic stopwatch. With a little cleverness and a UART you could even clock in inputs like gun-fired and feet-in- blocks and finish-ribbon-broken. This would get your human reaction time out of the loop, a considerable improvement in timing accuracy. It you are willing to live with keyboard scan randomness, then I suspect that the error drift between Macs is nominal.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.