TweetFollow Us on Twitter

Jan 90 Mousehole
Volume Number:6
Issue Number:1
Column Tag:Mousehole Report

Mac IIci and TE Word Selection

By Larry Nedry, Contributing Editor

From: Wildman

Re: Mac II ci

Hey, my new Mac II ci just showed up. Did anybody else buy one of these? It is plenty fast at running programs, but Lots of programs that run on a Mac II cx don’t run on the ci. Saddest, in my opinion, is Macsbug 6.1B1. It installs with no errors, but push the programmer button and BANG your new Mac is dead in the water, cycle power switch to get things back. I suspect it is that the new wizzy video-card-on-the-motherboard circuit is not compatible with real video cards because I also have a couple of games and graphics demos that also offer one way trips to Tumbolia. Any ideas when a new debugger might be available? Any compatibility notes that I can use to spare my programs the fate of Macsbug? Anybody got a list of what works/doesn’t work with a ci, or even a list of things that Apple tried to run on it before it was sold to us public dudes?

From: Greg

Re: Mac II ci

We have six ci’s that just came in so here’s what I’ve found. You’re right about MacBugs there is a version around Apple that works, but I don’t have it. As for programs that won’t work they are limited to those that make assumptions about hardware (particularly the screen or video) because of 32 bit Quick Draw being in the ROM any program that would bomb with the 32 bit QuickDraw INIT on a II will not work in a ci for the same reason. Some games also want the CPU to run at a set speed and thus will fail on the ci. Hope this helps

From: Wildman

Re: Mac II ci

OK, A couple of further updates on MacIIci compatibility.

a) I just got MPW version 3.0, It works pretty well and is really plenty fast enough to do real work with.

b) The “TubeTest” sample program, which is a demonstration of how to use the Palette Manager, doesn’t work. It draws black circles regardless of the number of colors enabled. So much for examples to show you the way.

c) The other Apple debugger, SADE version 1.0, doesn’t work either. If you try to run it with the MultiFinder that came on the ci installation disks (6.0.4 I think) it gives you a “Bad MultiFinder version” error message. If you try to run the MultiFinder included with SADE (6.1b7) as the SADE manual tells you, it puts up trashed windows and repaints the desktop in black and white and in 5-10 clicks bombs your ci. Setting the screen to black and white mode has no visible impact.

d) It seems that some of my problems are “32-bit clean-ness” problems. The Mac I use most of the time is a Mac128->2M+SCSI Frankintosh which can pass itself off as a Mac+ with new ROMs to most software. Some tools which run on it still have dirty high order bits. They run on no machine with a 68030 in it. I will try to compile a full list and type it in soon. If you have any data, please help me and put it in here.

What do folks do for a debugger? Right now I compile programs on the ci and put them on floppies and debug them on the other Mac. I can’t really use SADE in 2MB, so I use my old buddy Macsbug. Does TMON work? I’d buy it but if Apple’s two debuggers don’t work what is the chance that somebody else’s does?

From: Walshag

Re: Patching Traps

Where should I begin to learn trap patching? I am competent with Pascal (I use LSP 2.0 for most projects), but not overly confident with the intricacies of the Mac. I own Inside Mac (I-V), a handful of MacTutors, a few Macintosh reference manuals, and a dozen or so bottles of Tylenol. I am READY!! After reading last month’s MacTutor article on INIT’s in pascal, I was inspired. I have worked out a plan to patch a trap (in an INIT):

1. Should say that in my INIT code, include the procedure that should be executed after the patch. Name this procedure MyTrapex. (ex. When another program calls Sysbeep, the MyTrap procedure is the one actually executed).

2. Move that code into system memory:

     oldZone:=GetZone;
     SetZone(SystemZone);
     SizeNeeded:=Longint(myTrap);  {does this work?}
     RervMem(SizeNeeded);
     PatchPtr := NewPtr(SizeNeeded);
     BlockMove(@myTrap,Pointer(ORD(PatchPtr)),SizeNeeded);  {How ‘bout 
this?}
     SetZone(oldZone)

3. Use NGetTrapAddress & NSetTrapAddress:

**HELP HELP HELP!!!**

I don’t want to spend my life trial and erroring these procedures, so I need some advice.

From: Inbox

Re: Patching Traps

Read p. 83-89 of October ’89 MacTutor. That should give you all the help you need.

From: Tomt

Re: printing ???

I’m having a bit of trouble printing a graphics image in LSP 2.0. I’m trying to follow the example in Macintosh Revealed VIII but I run into a problem,

  Theprintrec := ThPrint(NewHandle(sizeof(Tprint)));
  Hlock(handle(theprintrec));
  PrintDefault(Theprintrec);
  goahead := PrStlDialog(ThePrintRec);

on the last line I get an address error. I’m sure I skipping something simple but I don’t have the foggiest. Thanks for any help.

From: Dhands

Re: printing ???

You may have not called PrOpen prior to the printing calls. I added the call and the code below worked

{1}
  Theprintrec := ThPrint(NewHandle(sizeof(Tprint)));
  Hlock(handle(theprintrec));
PrOpen;
  PrintDefault(Theprintrec);
  goahead := PrStlDialog(ThePrintRec);
PrClose;

Also, occasionally I’ve had LSP continue to encounter address/runtime errors even after fixing the source code. If you’re really stumped try “remove objects” command and/or quit and relaunch LSP.

From: Tomt

Re: printing thanks

Thanks David for the info. I too have seen problems where I had to either rebuild the project or quit LSP and then restart it. I also got a rather strange error saying that there was insufficient memory for internal tables that got fixed by quitting and restarting or rebuilding. Very strange.

From: Siegel

Re: printing ???

1) Don’t lock your print handle.

2) Before calling PrintDefault, call PrOpen, and when you’re done printing, call PRClose.

From: Sonny

Re: PASCAL BOOKS

Hello! Attention all Pascal programmers. I am fairly new to programming and want to learn more. Can anyone suggest some really good books about Pascal? I was in a college library recently and saw that there are a lot of books on Pascal, but many of them seemed somewhat mediocre. I plan to post this message on a number of BBS’s, so I will be posting another message later on to let y’all know the results of this survey. By the way, I have a Mac SE and plan to use Lightspeed Pascal v2.

From: Ears

Re: PASCAL BOOKS

You might want to check out Just Enough Pascal - it covers the basics in and interesting fashion and is compatible with LSP 2.

From: Sherpa

Re: PASCAL BOOKS

I can suggest two that have helped me immeasurably: Oh Pascal! and Scott Kronick’s Fear and Loathing Guide. Lots of humor and good examples.

From: Dhands

Re: C books

What books would any of you recommend for an introduction to C in general, and C on the Mac in specific? I’ve been programming the Mac for several years using Pascal and assembly and decided to look into C. So, any suggestions?

From: Tron

Re: C books

A good introduction book on the Mac using (specifically) LightSpeed C (now called THINK C) is “Macintosh Programming Primer” by Dave Mark and Cartwright Reed. Addison Wesley Publishing. All of the examples are written in THINK C 3.0, although it will work with any C development system with a few translations here and there.

Oops. I just noticed that you were looking for books on C, not just books on Mac C. Well, one that I found helpful is “Programming in C” by Stephen G. Kochan. Hayden Books. This book, coupled with The Macintosh Programming Primer should set you on your way.

From: Tron

Re: PICT resources in dialogs

I ran into an interesting problem when I added a PICT resource to a (previously) perfectly working dialog box. I wanted to spruce up the look of the box so I created a PICT and added it to the background of the dialog. After doing so, my routine (which uses DialogSelect to receive the itemHit) no longer correctly returns the itemHit for editText items. Running through the debugger, I discovered that the itemHit returned is undefined, even though I clicked the mouse in an editText item. I made sure that the PICT resource was “sent to the back” using ResEdit, and when I enable the PICT, DialogSelect returns the item number for the PICT when I click anywhere in the box. A friend of mine tested the problem using buttons instead of editTex items and had the same results...incorrect item numbers being returned.

Has anyone ever dealt with PICT resources in Dialog boxes that are directly behind other items and how do you get around the problem?

A side note: I shortened the rect of the PICT rsrc. so that it was still in the dialog box but not directly behind my editText item and mouse clicks began working perfectly once again.

From: Apage

Re: Scrolling Window

Best advice I can give off the top of my head is to use ScrollRect (I-187) to scroll off the old data and make room for new. this will save time in redrawing(bit xfer operations are usually quite fast msec should give enough time to do so). Maintain a running buffer of data, and keep grabbing the new stuff to paste in as it is read.

From: Mward

Re: Need CDEF example

I would like to know where I can get an example of the source code for a dial type CDEF - something like the volume control in the control panel DA. I am using Think C, so any C or Pascal code will do.

From: Inbox

Re: Need CDEF example

Read MacTutor. They have loads of CDEF examples.

From: Mward

Re: Need CDEF example

I’ve been reading MacTutor since about April, and I haven’t seen what I am looking for. Can you think of any particular issues that might have an example of a dial type CDEF?

From: Inbox

Re: Need CDEF example

OK.. Nov89 - Alternate Scroll Bar CDEF, in C. You’d probably be able to convert something like this into what you’re doing. April89 - Designer CDEF’s, in Think Pascal. There are some more in The Volumes of MacTutor from previous years.

From: Mward

Re: Need CDEF example

Thanks for the info. The April CDEF article dealt with checkbox variants, and I read the tables of content in the four volumes of previous MacTutor and couldn’t find an article on CDEFs. So, I’m waiting eagerly for the November issue to hit the stands. Waiting eagerly for the issue to hit the stands is a sure sign that it’s time to subscribe.

From: Wlp

Re: LSC version for SE?

I am thinking of getting Lightspeed C. I have an SE with a 20 Meg hard drive - nothing extra. Will 4.0 run on my machine or should I try to find 3.0x? This is my first time on this BBS. I don’t know when I’ll be able to check back. If anyone still uses the US Mail to communicate, I would appreciate a written reply, giving your opinion or problems you may have encountered using an SE and Think C.

Warren Pollans

Route 2, Box 440

Orangeburg, South Carolina 29115

From: Siegel

Re: LSC version for SE?

4.0 will run fine on your machine, but to use the source debugger, you should have a minimum of 2MB. 2.5 MB is really the practical minimum, and 4MB is ideal.

From: Grendel

Re: Text Edit and word selection

I have a vexing problem. I want to write a hypertext environment which will facilitate working with texts in foreign languages. To do so, I need to have the ability to double-click on a word to select it. Of course, TextEdit can handle this just fine - for English text in a Roman script. The problem is that I need to use foreign language fonts, and especially fonts with diacritical marks - accents, umlauts, etc., created as zero-width characters. Except for the few (inadequate) diacritical characters which the Roman script system “knows” about, TextEdit selection routines routinely balk at these characters, so that only part of a word is selected by the double-click. How can I “teach” TextEdit to select the whole word in these non-Roman script systems? I would like it to be simply space delimited, except for certain punctuation characters. I’ve looked at the documentation for the Script systems in Inside Mac V, but it seems that one must depend on Apple to write the systems for you. Help!!!

From: Btoback

Re: Text Edit and word selection

If you want to write your own word break routine, you can do it by using the SetWordBreak routine or stuffing a pointer to your word break routine into the TERec at the appropriate spot. This is documented in IM-I, p. 380. Of course, you still have to write the word break routine, but presumably you can use the Script Manager for help. Also, according to IM-V (the Script Manager chapter), you can get some kind of special documentation from MacDTS for writing your own scripts.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Posterino 4.4 - Create posters, collages...
Posterino offers enhanced customization and flexibility including a variety of new, stylish templates featuring grids of identical or odd-sized image boxes. You can customize the size and shape of... Read more
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

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.