TweetFollow Us on Twitter

Jun 91 Mousehole
Volume Number:7
Issue Number:6
Column Tag:Mousehole Report

Development Tools

By Larry Nedry, Mousehole, Sysop

From: Sysop

Re: System 7.0

I have just added a new SIG called “System70” for discussion about using System 7.0 and developing applications for System 7.0.

Check it out.

From: Vegard

Re: Development tools

Has anybody got experience or opinions about any of the following:

Serius Developer

Prograph

AppMaker

Prototyper

V.I.P.

I have read the reviews in MacUser, MacWorld and BYTE, but would appreciate personal opinions and experiences. For instance what about AppMaker using the TCL. Is this smart, or are Prototyper’s generated classes just as good? Has anybody run up against serious limitations with any of these tools? Can I expand on the standard User Interface elements that are being provided/generated?

If for instance I would like to make a scroll bar with three different arrows at each end for different scrolling speed, which I guess none of the above offers. (Example only)

What about OWL’s Guide? Anybody used it? How well does it integrate with other tools, for instance the ones above, Think C or HyperCard?

I’d appreciate your comments.

From: Thehulk

Re: Development tools

I like AppMaker and have used it on many occasions. The thing that I like about AppMaker the most is that it has a template language that is modifiable. In other words, with ResEdit you can modify the output of AppMaker and customize it to your hearts content. Yes, people are even using AppMaker to generate (ouch) Windows code. This is possible by creating the correct templates. The 3 different arrows scroll bar would be considered a user defined item (which AppMaker handles). The code that is generated for Think C TCL is not bad. I have not played with the latest version of Prototyper but it generated pretty bad code with version 2.x. That was why I used AppMaker. I have found that AppMaker will generate about 40 to 60 percent of the needed code. I only use AppMaker in the Think C TCL mode. I have heard that the code generated in other modes are not as good as could be but better than the old Prototyper code. All in all, I like AppMaker and I believe it’s worth the price. I used Serius and did not take to it too well. I used VIP and felt that any serious development could not take place with it.

From: Frankh

Re: Development tools

I’ve used both AppMaker and Prototyper, and the code generated by AppMaker is much, much better than the stuff Prototyper produces. Prototyper has *slightly* better tools, but the code is so absolutely awful that you *have* to re-write it. The AppMaker generated code is quite good, modular and you can use it without re-writing it. AppMaker also lets you modify the code templates, so you can fine tune the code AppMaker generates. It’s a good program, far better than Prototyper. As for expanding on the user interface elements - as you mentioned, all of these tools (at least Prototyper and AppMaker) are limited.

The only exposure I’ve had to OWL’s hypertext system is through the PageMaker 3 “help” DA. It was useless - nice looking, but useless.

From: Smug1

Re: Development tools

I am still at the beginning stage, although I have been at it awhile, time devoted... anyway, I have tried V.I.P., as an easy way to program, but since it uses so many of the information used in a “regular” environment (in my case, Think Pascal) I just turned back in. For the trouble (in MY case) I would rather get more versatile with the native code. Also I have Prototyper 2.X, and, if you are not into OOP, it is a much easier environment to use. It generates a LOT of stuff you don’t need, but the interface is pretty good. I am currently using AppMaker, trying to get into the OOP thing. It is not as fun to use as Prototyper, but it has more bells and whistles, and in general gives better code from what I can tell. Of all three, for the future of OOP, AppMaker may be your best choice. (Before buying AppMaker, I contacted SmethersBarnes for update, OOP info, they said maybe in the future it would support OOP & TCL, but when.....???)

[Bowers Development just announced a MacApp compatible version of AppMaker (version 1.2) which will generate code for Object Pascal and C++. This makes it even a better value since SmethersBarnes latest release of Prototyper (version 3.0) had not been updated for awhile, and they declined to give me a shipping date for their update. Translated, this means they are not close to shipping. Maybe we'll hear more at MacWorld in Boston.-ed]

From: Jcm

Re: Concerning SFPGetFile and

multiple selections

I’m trying to write a Think C object using SFPGetFile to get a list of files. Everything works correctly EXCEPT that I am unable to find the correct volume/directory information concerning the file to be added to the list.

While the fName field of my global SFReply record is correctly set at the time of a openButton event in the GetDLOGHook, the vRefNum field is seemingly not valid.

Does anyone have any ideas? Oh yes, I’m using boomerang and need to stay compatible with it.

[The vRefNum is a working directory number under HFS. You should use PBGetWDInfo() to get the real volume reference number and directory ID in ioWDVRefNum and ioWDDirID, respectively. If you are saving this information for future reference, you will need to get the volume’s name with PBGetVInfo() because the volume reference numbers are assigned at mounting time. This will not help you though with volumes of the same name, but it is a start.

You can also get set the globals CurDirStore with the directory id and SFSaveDisk with the negative of the volume id before calling SFGet or SFPut File routines. You should check Inside Macintosh Volume IV and Mac DTS sample code on file management and the standard file manager which has examples on multiple file selections.-ed]

From: Arlen

Re: Mac to Vax...burp!

I’ve had some fun working between Vaxen and Macs in the past.

First, command-K won’t prepend the laser prep file to the postscript code, but command-F (I believe) does. In any case, I don’t believe this will work (at least I’ve never gotten it to). I haven’t completely hacked the prep file, but there’s a place in it where it asks if the device is “LaserWriter” (dictionary, not Appletalk name). The DEC lasers aren’t called that, and I believe this is the root of the troubles I’ve had.

Second, in the download area “System” is a DA called AddLPrep. This takes a file gathered by command-K and prepends some of the laser prep file to it. Then try uploading it and printing it. Mark Seeburn of Seeburn Engineering in Cedarburg WI gave AddLPrep to me and he’s used it often. The one uploaded here is for laserwriter driver 5.x, I think so if you’re using 6.x you may be out of luck.

Third, just for grins, did you try activating the print to file button on the laserwriter dialogue with ResEdit? That might trap the full prep file (I don’t know, as I’ve never tried it) and you could hack from there.

General Vax info: Vax uses <cr> for end of record when there is one. Binary files don’t have one. Have you tried “Set File Type Binary” from within Vax Kermit before sending the file up? The VAX print queue will also do some interpretation of the characters sent it, so try /parameter=(data=postscript) on the print command. Don’t know that it’ll work, but its worth a shot.

Wise to pass on Pathworks. Unless your printer is directly connected to the VAX (not attached to a terminal server or such) you still won’t be able to reach it. Silly, yes, but typical of DEC.

From: Jumpcut

Re: ANSI-A4 Help

I’m in the middle of this project and stupidly I loaned out my Think manuals. Can anyone answer this off the top of their head?

I’m writing an INIT that installs a patch that writes to a text file, and I was using fopen(), fseek(), fprintf(), and fclose(). However, I get link errors on these four when building my code resource.

Obviously, they’re not in ANSI-A4. So where are they? They are in the regular ANSI, but that won’t work. The source code for fseek() is on my program disk, but it won’t compile-- it gets some register error.

Any ideas?

From: Lawson

Re: bitmapped image outlining

Youse guys... MacTutor had an article about converting PICTs to Regions (the exact title as a matter of fact). To do so one converts a bitmap to a region, then one can inset region and use FrameRegion to do what you need. Handles donuts, is extremely fast, and the source code is available from MacTutor...June 89, by Ted Cohn... I plan on downloading it myself (that is why I am here today...)...

BTW, for color quick draw, there is a 32-bit QD routine that does all of this for you (BitMapToRgn or somesuch...). It is documented in Vol 1 #1 of develop magazine from Apple.

From: Lawson

Re: THINK C Compilation and RAM cache

The latest issue of Thinkin’ Cap from SPLAh contains benchmarks on speeding up Think C/Pascal. They suggest that 96K for the cache is about optimal...

From: Champ

Re: Asynch Sound and Debug Code

The debug code is messing things up. Apparently, Think’s debug code gets in the way of the callback routine which is called at interrupt time. As soon as I surrounded all the code that gets called at interrupt time with {$D-}...{$D+} everything worked fine. Hope this helps someone else.

From: Derek

Re: Serial Port

I have a question and hope someone can help me. :)

First I was looking for the program called: BusyOut for my BBS, then I decided that since my modem already has a ‘strange’ Hayes command set, that I wanted to write my own equivalent program. :)

The question is how can I do this in Think C? I have written programs in C and Pascal for the Mac, IBM and VAX. I have used the Mac toolbox a lot. But I am kinda rusty. :)

Anyone have a simple code example that I can learn from on how to do this? For this program, the serial port is already open. How I know how large the buffer is, what baud rate? How I send a simple Hayes command, and receive the OK or 0 it returns?

I also want (for another program) to know how to open the port & buffer and also read from it). Sorry if my questions are a bit basic, but I been a little stuck on the serial port and also rusty with the Mac toolbox. :)

Derek Beda

The Next Generation

408-432-3424

FidoNet: 143/270

From: Frankh

Re: Serial Port

I was about to upload my Pascal translation of some simple serial port code (in assembly) that I wrote for MacTutor a while back. Seems that someone has already uploaded it! It’s in the Language library, and it’s called Serial.sit (requires Stuffit Classic to unstuff). Even though it’s in Pascal, it should be easy to translate into C.

From: Emrte

Re: List Manager

I’ve written some number crunching code, the results of which are tables.

So, I thought, here’s the time to get familiar with the List Manager. Using Think C 4.02 and Prototyper 3.0, I generated what I needed (after some mods to the Prototyper code). My next attempt was to try and copy selected cells (which could be disjointed) into the clipboard for copying to a spreadsheet or data graphics app. That’s where I ran into trouble. My routine can follow each selected cell and get its contents, but is there a way to directly access the cell contents of selected cells from the List Record? I guess field delimiters would have to be inserted too.

I’d appreciate any help for this back burner project, perhaps even article or so for those of us in scientific/engineering areas that have worked for ages with Fortran formatting.

Tony Euser

EMR-Canada

MTL@EMRCAN

From: Rguerra

Re: Monitor Depths

Can anyone tell me how one can poll the Slot Manager to find the exact pixel depths that are supported by a given monitor? The Slot Manager chapter isn’t exactly straightforward in this matter. Is there a reference or (better still) a code example showing the data structures or parameter blocks used to do this? I need to be able to grab this info on systems that do NOT implement the newer “HasDepth” calls documented in recent tech notes. Thanks for any help

From: Morendil

Re: video slot

Yep. You have to scan the ‘scrn’ resource Id=0 in the System file. There is a field that gives the screen’s slot number. But this will work only if the resource has been set up correctly. (Some bit in the GDevice tells you whether that is the case). Otherwise, the base address of the bitmap should look like FsXXXXXX, or sXXXXXXX, where s is the slot number.

From: Johnbaro

Re: video slot

Thanks for the info. Is this documented anywhere that you know of?

From: Morendil

Re: video slot

No... At least not in IM. I might send source code, but I can’t upload it here (I’m writing this on a PC !). If you have a fax number maybe... Anyway it’s pretty straightforward once you know what to look for... Try IM V, the chapter on GDevices, it’ll give you a lot of info.

From: Johnbaro

Re: video slot

IM V, the chapter on GDevices doesn’t say much about how to find a video card’s slot - the only place slot is mentioned is in the procedure definitions. You need to pass slot as a parameter in all Retrace Manager calls. Sample code would be great.

From: Michael

Re: OOP

I want to learn OOP; currently, I have Think Pascal 3.0.1, and the TCL that comes with it. Is there a book that someone can recommend to me? I don’t have the money (or the yen currently) to get MPW. What I would like is a book on OOP techniques that uses examples, and that doesn’t rely upon MPW--because I don’t have MPW.

From: Lawson

Re: OOP

The Macintosh Programming Primer (Pascal) vol. II has a tad in the last couple of chapters on Think Pascal and the TCL’s. Thinkin’ CAP from SPLAsh (Symantec Programming Languages Association) has articles about the TCL’s. The editor/publisher is Greg (TCL) Dow. Can’t find the address, but it is available from Symantec.

The MacApp books from the Macintosh Inside Out series are pretty good, but MPW-oriented. Object Oriented Programming for the Macintosh uses MPW Pascal, but Think Pascal is pretty much compatible with MPW (Object) Pascal. Hope this helps...

From: Thehulk

Re: irregular windows

You need to familiarize yourself with WDEF’s to get irregular shaped windows.

From: Don

Re: irregular windows

Thanks for the response I’m new at BBS operation and am looking for a couple of examples so that I can understand what’s in Inside Macintosh. If you have some suggestions I would very much appreciate them. I will work on the WDEFs though in the mean time.

From: Thehulk

Re: irregular windows

Do yourself a favor and order the compiled versions of MacTutor. They have articles on things like irregular window WDEFs. Good Luck.

From: Thehulk

Re: Mouse Drawing

Are you looking for specific code to do this or the general idea? I’ll give you the general idea but you really should try to work this out yourself if you are learning to program. First you look for a mouse down event and get the position of the mouse (in the current grafport) and then you wait for a mouse up event and note the new position of the mouse (in the event record) and the use a QuickDraw call LineTo() with the coordinates of the mousedown position. Sounds like you could use the book Macintosh Programming Primer by Mark & Reed. (Actually you don’t really even need to note the mouse up position for simple line drawing.)

From: Don

Re: Mouse Drawing

Thanks again for the info I am currently working my way through the Macintosh Programming Primer when I have the time (I don’t have much), and I’ll go ahead and try to puzzle out the code. Thanks again

From: Richard

Re: Think C error message

WindowInit() {

gHelloWindow=GetNewWindow( BASE_RES_ID,

NIL_POINTER, MOVE_TO_FRONT );

ShowWindow (gHelloWindow );

SetPort (gHelloWindow );

MoveTo (HORIZONTAL_PIXEL, VERTICAL_PIXEL );

DrawString(“\pHello, World”);

}

I type in the sample program from Macintosh Programming PRIMER Volume I and try to run this program. At line-8 “DrawString(“\pHello, World”);”, I have an error message which said “illegal instruction” when I run the program. Could someone tell me what wrong with it? I believe there is no typing error.

From: Istewart

Re: Think C error message

I presume that this is just a fragment of the complete program. Have you made sure that you’ve added the appropriate WIND resource to your project’s .rsrc (resource) file? This routine ISN’T checking that the GetNewWindow completed properly, and if the resource isn’t there, it won’t.

 
AAPL
$97.67
Apple Inc.
+0.64
MSFT
$44.50
Microsoft Corpora
+0.10
GOOG
$589.02
Google Inc.
-4.33

MacTech Search:
Community Search:

Software Updates via MacUpdate

TinkerTool 5.3 - 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
Audio Hijack Pro 2.11.0 - Record and enh...
Audio Hijack Pro drastically changes the way you use audio on your computer, giving you the freedom to listen to audio when you want and how you want. Record and enhance any audio with Audio Hijack... Read more
Intermission 1.1.1 - Pause and rewind li...
Intermission allows you to pause and rewind live audio from any application on your Mac. Intermission will buffer up to 3 hours of audio, allowing users to skip through any assortment of audio... Read more
Autopano Giga 3.6 - Stitch multiple imag...
Autopano Giga allows you to stitch 2, 20, or 2,000 images. Version 3.0 integrates impressive new features that will definitely make you adopt Autopano Pro or Autopano Giga: Choose between 9... Read more
Airfoil 4.8.7 - Send audio from any app...
Airfoil allows you to send any audio to AirPort Express units, Apple TVs, and even other Macs and PCs, all in sync! It's your audio - everywhere. With Airfoil you can take audio from any... Read more
Microsoft Remote Desktop 8.0.8 - Connect...
With Microsoft Remote Desktop, you can connect to a remote PC and your work resources from almost anywhere. Experience the power of Windows with RemoteFX in a Remote Desktop client designed to help... Read more
xACT 2.30 - Audio compression toolkit. (...
xACT stands for X Aaudio Compression Toolkit, an application that encodes and decodes FLAC, SHN, Monkey’s Audio, TTA, Wavpack, and Apple Lossless files. It also can encode these formats to MP3, AAC... Read more
Firefox 31.0 - Fast, safe Web browser. (...
Firefox for Mac 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... Read more
Little Snitch 3.3.3 - Alerts you to outg...
Little Snitch gives you control over your private outgoing data. Track background activityAs soon as your computer connects to the Internet, applications often have permission to send any... Read more
Thunderbird 31.0 - Email client from Moz...
As of July 2012, Thunderbird has transitioned to a new governance model, with new features being developed by the broader free software and open source community, and security fixes and improvements... Read more

Latest Forum Discussions

See All

Reddme for iPhone - The Reddit Client (...
Reddme for iPhone - The Reddit Client 1.0 Device: iOS iPhone Category: News Price: $.99, Version: 1.0 (iTunes) Description: Reddme for iPhone is an iOS 7-optimized Reddit client that offers a refreshing new way to experience Reddit... | Read more »
Jacob Jones and the Bigfoot Mystery : Ep...
Jacob Jones and the Bigfoot Mystery : Episode 2 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Jacob Jones is back in Episode 2 of one of Apples 'Best of 2013' games and an App Store... | Read more »
New Trailer For Outcast Odyssey, A New K...
New Trailer For Outcast Odyssey, A New Kind of Card Battler Posted by Jennifer Allen on July 25th, 2014 [ permalink ] Out this Fall is a new kind of card battle game: Outcast Odyssey. | Read more »
Garfield: Survival of the Fattest Coming...
Garfield: Survival of the Fattest Coming to iOS this Fall Posted by Jennifer Allen on July 25th, 2014 [ permalink ] Who loves lasagna? Me. Also everyone’s favorite grumpy fat cat, Garfield. | Read more »
Happy Flock Review
Happy Flock Review By Andrew Fisher on July 25th, 2014 Our Rating: :: HERD IT ALL BEFOREUniversal App - Designed for iPhone and iPad Underneath the gloss of Happy Flock’s visuals is a game of very little substance. It’s cute, but... | Read more »
Square Register Updates Adds Offline Pay...
Square Register Updates Adds Offline Payments Posted by Ellis Spice on July 25th, 2014 [ permalink ] Universal App - Designed for iPhone and iPad | Read more »
Looking For Group – Hearthstone’s Curse...
For the first time since its release (which has thankfully been a much shorter window for iPad players than their PC counterparts), Blizzard’s wildly successful Hearthstone: Heroes of Warcraft CCG is sporting some brand new content: the single... | Read more »
Poptile Review
Poptile Review By Jennifer Allen on July 25th, 2014 Our Rating: :: SIMPLY FUNUniversal App - Designed for iPhone and iPad Simple yet a little bit glorious, Poptile is a satisfying entertaining puzzle game with oodles of the ‘one... | Read more »
Modern Combat 5: Blackout Review
Modern Combat 5: Blackout Review By Brittany Vincent on July 25th, 2014 Our Rating: :: LESS QQ, MORE PEW PEWUniversal App - Designed for iPhone and iPad The fifth entry into the blockbuster Modern Combat series is what mobile... | Read more »
Watch and Share Mobile Gameplay Videos W...
Watch and Share Mobile Gameplay Videos With Kamcord Posted by Jennifer Allen on July 25th, 2014 [ permalink ] iPhone App - Designed for the iPhone, compatible with the iPad | Read more »

Price Scanner via MacPrices.net

iMacs on sale for $150 off MSRP, $250 off for...
Best Buy has iMacs on sale for up to $160 off MSRP for a limited time. Choose free home shipping or free instant local store pickup (if available). Prices are valid for online orders only, in-store... Read more
Mac minis on sale for $100 off MSRP, starting...
Best Buy has Mac minis on sale for $100 off MSRP. Choose free shipping or free instant local store pickup. Prices are for online orders only, in-store prices may vary: 2.5GHz Mac mini: $499.99 2.3GHz... Read more
Global Tablet Market Grows 11% in Q2/14 Notwi...
Worldwide tablet sales grew 11.0 percent year over year in the second quarter of 2014, with shipments reaching 49.3 million units according to preliminary data from the International Data Corporation... Read more
New iPhone 6 Models to Have Staggered Release...
Digitimes’ Cage Chao and Steve Shen report that according to unnamed sources in Apple’s upstream iPhone supply chain, the new 5.5-inch iPhone will be released several months later than the new 4.7-... Read more
New iOS App Helps People Feel Good About thei...
Mobile shoppers looking for big savings at their favorite stores can turn to the Goodshop app, a new iOS app with the latest coupons and deals at more than 5,000 online stores. In addition to being a... Read more
Save on 5th generation refurbished iPod touch...
The Apple Store has Apple Certified Refurbished 5th generation iPod touches available starting at $149. Apple’s one-year warranty is included with each model, and shipping is free. Many, but not all... Read more
What Should Apple’s Next MacBook Priority Be;...
Stabley Times’ Phil Moore says that after expanding its iMac lineup with a new low end model, Apple’s next Mac hardware decision will be how it wants to approach expanding its MacBook lineup as well... Read more
ArtRage For iPhone Painting App Free During C...
ArtRage for iPhone is currently being offered for free (regularly $1.99) during Comic-Con San Diego #SDCC, July 24-27, in celebration of the upcoming ArtRage 4.5 and other 64-bit versions of the... Read more
With The Apple/IBM Alliance, Is The iPad Now...
Almost since the iPad was rolled out in 2010, and especially after Apple made a 128 GB storage configuration available in 2012, there’s been debate over whether the iPad is a serious tool for... Read more
MacBook Airs on sale starting at $799, free s...
B&H Photo has the new 2014 MacBook Airs on sale for up to $100 off MSRP for a limited time. Shipping is free, and B&H charges NY sales tax only. They also include free copies of Parallels... Read more

Jobs Board

*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
Sr Software Lead Engineer, *Apple* Online S...
Sr Software Lead Engineer, Apple Online Store Publishing Systems Keywords: Company: Apple Job Code: E3PCAK8MgYYkw Location (City or ZIP): Santa Clara Status: Full Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.