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

Chromium 119.0.6044.0 - Fast and stable...
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. List of changes available here. Version for Apple... Read more
Spotify 1.2.21.1104 - Stream music, crea...
Spotify is a streaming music service that gives you on-demand access to millions of songs. Whether you like driving rock, silky R&B, or grandiose classical music, Spotify's massive catalogue puts... Read more
Tor Browser 12.5.5 - Anonymize Web brows...
Using Tor Browser you can protect yourself against tracking, surveillance, and censorship. Tor was originally designed, implemented, and deployed as a third-generation onion-routing project of the U.... Read more
Malwarebytes 4.21.9.5141 - Adware remova...
Malwarebytes (was AdwareMedic) helps you get your Mac experience back. Malwarebytes scans for and removes code that degrades system performance or attacks your system. Making your Mac once again your... Read more
TinkerTool 9.5 - Expanded preference set...
TinkerTool is an application that gives you access to additional preference settings Apple has built into Mac OS X. This allows to activate hidden features in the operating system and in some of the... Read more
Paragon NTFS 15.11.839 - Provides full r...
Paragon NTFS breaks down the barriers between Windows and macOS. Paragon NTFS effectively solves the communication problems between the Mac system and NTFS. Write, edit, copy, move, delete files on... Read more
Apple Safari 17 - Apple's Web brows...
Apple Safari is Apple's web browser that comes bundled with the most recent macOS. Safari is faster and more energy efficient than other browsers, so sites are more responsive and your notebook... Read more
Firefox 118.0 - Fast, safe Web browser.
Firefox offers a fast, safe Web browsing experience. Browse quickly, securely, and effortlessly. With its industry-leading features, Firefox is the choice of Web development professionals and casual... Read more
ClamXAV 3.6.1 - Virus checker based on C...
ClamXAV is a popular virus checker for OS X. Time to take control ClamXAV keeps threats at bay and puts you firmly in charge of your Mac’s security. Scan a specific file or your entire hard drive.... Read more
SuperDuper! 3.8 - Advanced disk cloning/...
SuperDuper! is an advanced, yet easy to use disk copying program. It can, of course, make a straight copy, or "clone" - useful when you want to move all your data from one machine to another, or do a... Read more

Latest Forum Discussions

See All

‘Monster Hunter Now’ October Events Incl...
Niantic and Capcom have just announced this month’s plans for the real world hunting action RPG Monster Hunter Now (Free) for iOS and Android. If you’ve not played it yet, read my launch week review of it here. | Read more »
Listener Emails and the iPhone 15! – The...
In this week’s episode of The TouchArcade Show we finally get to a backlog of emails that have been hanging out in our inbox for, oh, about a month or so. We love getting emails as they always lead to interesting discussion about a variety of topics... | Read more »
TouchArcade Game of the Week: ‘Cypher 00...
This doesn’t happen too often, but occasionally there will be an Apple Arcade game that I adore so much I just have to pick it as the Game of the Week. Well, here we are, and Cypher 007 is one of those games. The big key point here is that Cypher... | Read more »
SwitchArcade Round-Up: ‘EA Sports FC 24’...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for September 29th, 2023. In today’s article, we’ve got a ton of news to go over. Just a lot going on today, I suppose. After that, there are quite a few new releases to look at... | Read more »
‘Storyteller’ Mobile Review – Perfect fo...
I first played Daniel Benmergui’s Storyteller (Free) through its Nintendo Switch and Steam releases. Read my original review of it here. Since then, a lot of friends who played the game enjoyed it, but thought it was overpriced given the short... | Read more »
An Interview with the Legendary Yu Suzuk...
One of the cool things about my job is that every once in a while, I get to talk to the people behind the games. It’s always a pleasure. Well, today we have a really special one for you, dear friends. Mr. Yu Suzuki of Ys Net, the force behind such... | Read more »
New ‘Marvel Snap’ Update Has Balance Adj...
As we wait for the information on the new season to drop, we shall have to content ourselves with looking at the latest update to Marvel Snap (Free). It’s just a balance update, but it makes some very big changes that combined with the arrival of... | Read more »
‘Honkai Star Rail’ Version 1.4 Update Re...
At Sony’s recently-aired presentation, HoYoverse announced the Honkai Star Rail (Free) PS5 release date. Most people speculated that the next major update would arrive alongside the PS5 release. | Read more »
‘Omniheroes’ Major Update “Tide’s Cadenc...
What secrets do the depths of the sea hold? Omniheroes is revealing the mysteries of the deep with its latest “Tide’s Cadence" update, where you can look forward to scoring a free Valkyrie and limited skin among other login rewards like the 2nd... | Read more »
Recruit yourself some run-and-gun royalt...
It is always nice to see the return of a series that has lost a bit of its global staying power, and thanks to Lilith Games' latest collaboration, Warpath will be playing host the the run-and-gun legend that is Metal Slug 3. [Read more] | Read more »

Price Scanner via MacPrices.net

Clearance M1 Max Mac Studio available today a...
Apple has clearance M1 Max Mac Studios available in their Certified Refurbished store for $270 off original MSRP. Each Mac Studio comes with Apple’s one-year warranty, and shipping is free: – Mac... Read more
Apple continues to offer 24-inch iMacs for up...
Apple has a full range of 24-inch M1 iMacs available today in their Certified Refurbished store. Models are available starting at only $1099 and range up to $260 off original MSRP. Each iMac is in... Read more
Final weekend for Apple’s 2023 Back to School...
This is the final weekend for Apple’s Back to School Promotion 2023. It remains active until Monday, October 2nd. Education customers receive a free $150 Apple Gift Card with the purchase of a new... Read more
Apple drops prices on refurbished 13-inch M2...
Apple has dropped prices on standard-configuration 13″ M2 MacBook Pros, Certified Refurbished, to as low as $1099 and ranging up to $230 off MSRP. These are the cheapest 13″ M2 MacBook Pros for sale... Read more
14-inch M2 Max MacBook Pro on sale for $300 o...
B&H Photo has the Space Gray 14″ 30-Core GPU M2 Max MacBook Pro in stock and on sale today for $2799 including free 1-2 day shipping. Their price is $300 off Apple’s MSRP, and it’s the lowest... Read more
Apple is now selling Certified Refurbished M2...
Apple has added a full line of standard-configuration M2 Max and M2 Ultra Mac Studios available in their Certified Refurbished section starting at only $1699 and ranging up to $600 off MSRP. Each Mac... Read more
New sale: 13-inch M2 MacBook Airs starting at...
B&H Photo has 13″ MacBook Airs with M2 CPUs in stock today and on sale for $200 off Apple’s MSRP with prices available starting at only $899. Free 1-2 day delivery is available to most US... Read more
Apple has all 15-inch M2 MacBook Airs in stoc...
Apple has Certified Refurbished 15″ M2 MacBook Airs in stock today starting at only $1099 and ranging up to $230 off MSRP. These are the cheapest M2-powered 15″ MacBook Airs for sale today at Apple.... Read more
In stock: Clearance M1 Ultra Mac Studios for...
Apple has clearance M1 Ultra Mac Studios available in their Certified Refurbished store for $540 off original MSRP. Each Mac Studio comes with Apple’s one-year warranty, and shipping is free: – Mac... Read more
Back on sale: Apple’s M2 Mac minis for $100 o...
B&H Photo has Apple’s M2-powered Mac minis back in stock and on sale today for $100 off MSRP. Free 1-2 day shipping is available for most US addresses: – Mac mini M2/256GB SSD: $499, save $100 –... Read more

Jobs Board

Licensed Dental Hygienist - *Apple* River -...
Park Dental Apple River in Somerset, WI is seeking a compassionate, professional Dental Hygienist to join our team-oriented practice. COMPETITIVE PAY AND SIGN-ON Read more
Sublease Associate Optometrist- *Apple* Val...
Sublease Associate Optometrist- Apple Valley, CA- Target Optical Date: Sep 30, 2023 Brand: Target Optical Location: Apple Valley, CA, US, 92307 **Requisition Read more
*Apple* / Mac Administrator - JAMF - Amentum...
Amentum is seeking an ** Apple / Mac Administrator - JAMF** to provide support with the Apple Ecosystem to include hardware and software to join our team and Read more
Child Care Teacher - Glenda Drive/ *Apple* V...
Child Care Teacher - Glenda Drive/ Apple ValleyTeacher Share by Email Share on LinkedIn Share on Twitter 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.