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.

 
AAPL
$517.96
Apple Inc.
-3.72
MSFT
$39.75
Microsoft Corpora
+0.57
GOOG
$536.44
Google Inc.
+3.92

MacTech Search:
Community Search:

Software Updates via MacUpdate

Starcraft II: Wings of Liberty 1.1.1.180...
Download the patch by launching the Starcraft II game and downloading it through the Battle.net connection within the app. Starcraft II: Wings of Liberty is a strategy game played in real-time. You... Read more
Sibelius 7.5.0 - Music notation solution...
Sibelius is the world's best-selling music notation software for Mac. It is as intuitive to use as a pen, yet so powerful that it does most things in less than the blink of an eye. The demo includes... Read more
Typinator 5.9 - Speedy and reliable text...
Typinator turbo-charges your typing productivity. Type a little. Typinator does the rest. We've all faced projects that require repetitive typing tasks. With Typinator, you can store commonly used... Read more
MYStuff Pro 2.0.16 - Create inventories...
MYStuff Pro is the most flexible way to create detail-rich inventories for your home or small business. Add items to MYStuff by dragging and dropping existing information, uploading new images, or... Read more
TurboTax 2013.r17.002 - Manage your 2013...
TurboTax guides you through your tax return step by step, does all the calculations, and checks your return for errors and overlooked deductions. It lets you file your return electronically to get... Read more
TrailRunner 3.8.769 - Route planning for...
Note: While the software is classified as freeware, it is actually donationware. Please consider making a donation to help support development. TrailRunner is the perfect companion for runners,... Read more
Flavours 1.1.10 - Create and apply theme...
Flavours is a Mac application that allow users to create, apply and share beautifully designed themes. Classy Give your Mac a gorgeous new look by applying delicious themes! Easy Unleash your... Read more
Spotify 0.9.8.296. - Stream music, creat...
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... Read more
SlingPlayer Plugin 3.3.20.475 - Browser...
SlingPlayer is the screen interface software that works hand-in-hand with the hardware inside the Slingbox to make your TV viewing experience just like that at home. It features an array of... Read more
S.M.A.R.T. for USB and FireWire Drives 0...
S.M.A.R.T. for USB and FireWire Drives is a kernel driver for OS X external usb or firewire drives. It extends the standard driver behaviour by providing access to drive smart data. The interface to... Read more

Latest Forum Discussions

See All

148Apps Live on Twitch: Pivvot’s Looper...
On our latest Twitch stream, we’ll be playing a pair of minimalist arcade games, one that just got a big content update in Pivvot, and another that was inspired by it in 15 Coins. Whitaker Trebella, creator of Pivvot, will discuss the new modes... | Read more »
Word Cubes Review
Word Cubes Review By Jordan Minor on April 15th, 2014 Our Rating: :: SQUARESVILLEUniversal App - Designed for iPhone and iPad Word Cubes is fine, but it is barely any different from any other word game.   | Read more »
PAX East 2014 – Desert Fox: The Battle o...
PAX East 2014 – Desert Fox: The Battle of El Alamein is Coming to iOS Soon Posted by Rob Rich on April 15th, 2014 [ permalink ] Shenandoah Studio has become one of the go-to developers for war games on iOS, with | Read more »
Tank of Tanks Review
Tank of Tanks Review By Carter Dotson on April 15th, 2014 Our Rating: :: TANKS A LOT!iPad Only App - Designed for the iPad This multiplayer game played on a single iPad is simple, chaotic fun.   | Read more »
PAX East 2014 – Dungeon of the Endless J...
PAX East 2014 – Dungeon of the Endless Just Might Have a Shot at an iPad Release Posted by Rob Rich on April 15th, 2014 [ permalink ] I think it’s fair to say that | Read more »
SideSwype Review
SideSwype Review By Carter Dotson on April 15th, 2014 Our Rating: :: ON YOUR SIDEUniversal App - Designed for iPhone and iPad SideSwype is a puzzler that takes inspiration from Threes, but becomes its own incredibly fun game.   | Read more »
PAX East 2014 – Bigfoot Hunter Invites P...
PAX East 2014 – Bigfoot Hunter Invites Players on a Wild and Wooly Photo Safari Posted by Rob Rich on April 15th, 2014 [ permalink ] Yeti. Sasquatch. Wendigo. | Read more »
Dungeon Quest Review
Dungeon Quest Review By Cata Modorcea on April 15th, 2014 Our Rating: :: NO STORY, BUT GOOD FUNUniversal App - Designed for iPhone and iPad Dungeon Quest does a lot of things right, but ultimately forgets about one of the core... | Read more »
Tempo AI and Speek Join Forces to “Kill...
Tempo AI and Speek Join Forces to “Kill the Conference Call PIN” Posted by Rob Rich on April 15th, 2014 [ permalink ] Today Tempo AI, makers of Tempo Smart Calendar, and | Read more »
Fighting Fantasy: Starship Traveller Rev...
Fighting Fantasy: Starship Traveller Review By Jennifer Allen on April 15th, 2014 Our Rating: :: A SIGNIFICANT VOYAGEUniversal App - Designed for iPhone and iPad Continuing the release of Fighting Fantasy titles, Starship Traveller... | Read more »

Price Scanner via MacPrices.net

Save $50 on Mac mini Server
B&H Photo has the 2012 Mac mini Server on sale for $949 including free shipping plus NY sales tax only. Their price is $50 off MSRP. Read more
PhatWare’s “Ultimate Writing App For iOS” Ren...
PhatWare Corp. has announced it has renamed its new WritePro word processing app for iPhone and iPad: WritePad Pro. The decision to change the app’s name to leverages the strong brand awareness and... Read more
Full Resolution Photo Editor Tint Mint 1.0 Re...
California based independent developer, Jeffrey Sun, creator of the iOS app Modern Editor, has released Tint Mint, a new photography app for editing enthusiasts. The app costs a dollar, and it packs... Read more
16GB iPad mini (Apple refurbished) available...
The Apple Store has refurbished 1st generation 16GB iPad minis available for $249 including free shipping. Both black and white models are available. Read more
Save $120 on the 27-inch 3.2GHz Haswell iMac
B&H Photo has the 27″ 3.2GHz iMac on sale for $1679.99 including free shipping plus NY sales tax only. Their price is about $120 off MSRP. Read more
Using a Mac Doesn’t Eliminate The Heartbleed...
Low End Mac’s Dan Knight notes that any time you visit a website with an https: prefix or see that secure lock icon on your browser, some type of security software is busy trying to protect your data... Read more
AirPrint Basics Tutorial Posted
A new Apple Knowledge Base article helps get you started using AirPrint, the Apple protocol that enables instant printing from iPad, iPhone, iPod touch, and Mac without the need to install drivers or... Read more
Speed Tips For Running LibreOffice On The Mac
LibreOffice is my favorite of several free, open-source application suites, and the one I have configured on my Mac as my default app for Word documents that one frequently has to deal with. It also... Read more
Snag a 15-inch Retina MacBook Pro for $115 of...
B&H Photo has 2013 15″ Retina MacBook Pros on sale for up to $115 off MSRP for a limited time. Shipping is free, and B&H charges NY sales tax only: - 15″ 2.3GHz Retina MacBook Pro: $2489.99... Read more
MacBook Airs on sale for $50 to $100 off MSRP
Several resellers are offering $50-$100 discounts on 11″ and 13″ MacBook Airs today, including Amazon, Best Buy, B&H, and others. See the breakdown of deals on our MacBook Air Price Tracker,... Read more

Jobs Board

*Apple* Retail - Manager - SoHo - Apple (Uni...
Job SummaryKeeping an Apple Store thriving requires a diverse set of leadership skills, and as a Manager, you're a master of them all. In the store's fast-paced, dynamic Read more
Position Opening at *Apple* - Apple (United...
**Job Summary** Every day, business customers come to the Apple Store to discover what powerful, easy-to-use Apple products can do for them. As a Business Leader, Read more
Position Opening at *Apple* - Apple (United...
…challenges of developing individuals, building teams, and affecting growth across Apple Stores. You demonstrate successful leadership ability - focusing on excellence Read more
Position Opening at *Apple* - Apple (United...
…Summary** As a Specialist, you help create the energy and excitement around Apple products, providing the right solutions and getting products into customers' hands. You Read more
Position Opening at *Apple* - Apple (United...
**Job Summary** The Apple Store is a retail environment like no other - uniquely focused on delivering amazing customer experiences. As an Expert, you introduce people Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.