HDTenEightyP/NetNews huggingface dataset:
From: jpurlia@qualcomm.com (John Purlia)
Newsgroups: comp.sys.mac.programmer
Subject: SourceBug and Quardas
Date: 21 Aug 92 19:06:15 GMT
Followup-To: comp.sys.mac.programmer
Organization: Qualcomm, Inc.

Is there an Apple acknowledged problem with running SourceBug on the
Quadras?  I seem to run into a lot of unexpected crashes (F-Traps and such)
when operating on a Quadra 700 that I never experienced on a IIci.  Has
anyone else found SourceBug to be somewhat unstable?

...........................................................................
John Purlia          : My brain; not my company's brain.  My brain says...
jpurlia@qualcomm.com :      "Just about any movie could be made better
AppleLink:  AM0470   :       if one of the characters were a vampire."
...........................................................................
Newsgroups: comp.sys.mac.programmer
From: jfw@jfwhome.FUNHOUSE.COM (John F. Woods)
Subject: Re: Dear Mr. Sculley
Organization: Misanthropes-R-Us
Date: Thu, 13 Aug 1992 02:42:31 GMT

In <keWEm9y00WBK41PWNq@andrew.cmu.edu> "George J. Baxter" <gb2a+@andrew.cmu.edu> writes:
>Dear Mr. Sculley (via the graces of Travis Grundke),
>    I once saw an article in MacWeek about how Apple was 'responding to
>consumer demand for more frequent upgrades' for the Apple computers.  As
>a developer, this didn't make much sense to me.  Eg. we bought two
>Quadra 900s, and before we could even get the machines set up, somebody
>gives me an article announcing the Quadra 950.  My response, of course,
>was "AAAAAAAAAAARRRRRRRRRGGGGGGGGG!!!"

I agree.  I'm sick and tired of Apple constantly coming out with newer and
better machines.  Dammit, if the Mac 128K was good enough for Steve Jobs, it's
good enough for me.
From: rson@rhi.hi.is (Reynir Hugason)
Newsgroups: comp.sys.mac.programmer
Subject: Storing a reference to a file ..
Date: 17 Aug 92 07:56:21 GMT

Ok here is the scenario: I have a project file. I want to store from within
the project file, which files are included in the project and some info
about each file. Presently I simply take the FSSpec and save it; however,
this is not suffiecent. What happens is that my program cant find files
if I start up from another disk. The only solution I can imagine is to
store the volume name and perhaps creation date of the volume as well ANDOR
use these file id things.

How would you do it?
From: robert_hess@macweek.ziff.com ("Robert Hess")
Newsgroups: comp.sys.mac.programmer
Subject: Prograph/Serius Database De
Date: 18 Aug 92 05:09:58 GMT

Prograph/Serius Database Developers?
Any developers out there using Prograph or Serius for database applications? If
so, please contact me!

Robert Hess
robert_hess@macweek.ziff.com



Newsgroups: comp.sys.mac.programmer
From: jbush@magnus.acs.ohio-state.edu (J Eric Bush)
Subject: Option Quick Keys
Organization: The Ohio State University
Date: Wed, 19 Aug 1992 18:32:44 GMT

Does anyone know if there is a way with ResEdit menus to make the command
key settings for a menu item take an option key.

For example Option-1 version Command-1.  I wouldn't even mind if it were
Command-Option-1.

Thanks in advance.  Programmign in Pascal (Think) not that it really matters
in this case.

Eric
-- 
------------------------------------------------------------------------------
J. Eric Bush
Internet: jbush@magnus.acs.ohio-state.edu
From: pollansw@cse.fau.edu (Warren Pollans)
Newsgroups: comp.sys.mac.programmer
Subject: C source thru ftp?
Date: 21 Aug 92 19:49:04 GMT
Organization: Florida Atlantic University, Boca Raton, FL, USA

I'm a new thinkC programmer.  I'm not a mac programmer, but a
programmer who writes C on his mac.  Seems as though there should
be a collection of thinkC routines (source) that people can browze
or contribute to at one of the ftp sites.  Ne pas?  In general, how
does one find out what is archived where?

BTW, I'm about to begin a large project (for a compiler writing
course) on my old SE (2.5 M).  I plan to transfer it gcc on a unix
system (sunOS) if/when it outgrows my machine.  Can anyone foresee
any problems with this?

Thanks,

Warren

(pollansw@cse.fau.edu)
From: pollansw@cse.fau.edu (Warren Pollans)
Newsgroups: comp.sys.mac.programmer
Subject: getting stuffit files via ftp
Date: 22 Aug 92 17:57:06 GMT
Organization: Florida Atlantic University, Boca Raton, FL, USA

Hello again,
	I'm trying to learn to download mac files from ftp archives.
Text files are no problem, so far.  I transferred a stuffit (.sit)
file to my host machine and kermitted it to my mac.  I couldn't
unstuffit (after changing the TYPE and CREATOR to SIT!) using
stuffit 1.5  -  I get a message indicating that the header is
corrupted.  How do I go about getting a stuffit file home and
unstuffitted?
	Could someone recommend a short .sit file and an archive from
which to retreive it - so I can practice what you preach.  One that
you've had some success with.
	BTW, what do the other suffixes stand for?  --  .hqz,  .z,
.shar and others.  Are these compressed/archived files?  How do I
undo them?  Where do I get the "undoers"?

Thanks,

Warren
(pollansw@cse.fau.edu)
From: psawyer@tigger.East.Sun.COM (Paul Sawyer - Sun BOS Software)
Newsgroups: comp.sys.mac.programmer
Subject: setting printer page size
Keywords: printer page paper size
Date: 19 Aug 92 16:29:33 GMT
Reply-To: psawyer@tigger.East.Sun.COM
Organization: SunSoft, Inc. - Boston Development Center
NNTP-Posting-Host: tigger.east.sun.com


I'm creating an application that prints labels on an ImageWriter II. I
need to set a page/paper size equal to the height of one label. I can't
find a documented interface for setting sizes. I can look at the sizes
in the print record, but setting new values there doesn't accomplish
anything. I know that calling the Style Dialog routine sets sizes, but
I want sizes that are not the usual choices.

I have Inside Macintosh and all the MacTechNotes. While I haven't read
either one cover-to-cover, I've looked in all the places that seem
likely. I'm an old hand at programming, but new to Mac programming.
RTFM is welcome if you can say which FM to R!

-Paul S.
Newsgroups: comp.sys.mac.programmer
From: Quinn <quinn@cs.uwa.edu.au>
Subject: Re: Mounting network volumes
Organization: The University of Western Australia
X-Useragent: Nuntius v1.1
Date: Wed, 19 Aug 1992 01:10:21 GMT

In article <16rl7rINN7kf@agate.berkeley.edu> Michael A. Ramirez,
mar@ocf.berkeley.edu writes:
>	I would like to know how I can mount network volumes within my program.
>I am curious on which trap calls will allow me to do this. Thanks in
advance.

PBVolumeMount IM VI

The standard procedure for mounting volumes programmatically is to load
and call one of the various XCMDs that do the job (easy stuff). 
Alternatively if you're happy to require System 7 (and you can figure out
how to call them (-: ) you can use PBGetVolMountInfo and PBVolumeMount
(documented in IM VI 25-48).

The key line there is "You can use the PBVolumeMount function to mount a
volume, using either the information returned by the PBGetVolMountInfo or
a structure you filled in yourself."

Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
Department of Computer Science, The University of Western Australia
  -- We have the technology.
From: cory@enigami.mv.com (Cory Kempf)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ETo #8
Date: Wed, 12 Aug 92 12:15:58 EST
Organization: EnigamI, Inc., Nashua, NH
Reply-To: cory@enigami.mv.com
Distribution: na
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <63848@cup.portal.com> (comp.sys.mac.programmer), MacUserLabs@cup.portal.com (Stephan - Somogyi) writes:
>gray@tinman.asel.udel.edu (John Gray) writes:
>
>>I am in the US and I still haven't seen mine. Is it possible it has not been
>>shipped yet in the US? Has anyone seen one is the US yet.
>
>My ETO 8 was delivered last week.

Some people get all the luck.  Still waiting...


-------------------------------------------------------------
Cory Kempf                    EnigamI, Inc.
cory@enigami.mv.com           ...!decvax!enigami!cory
Annon:	wi.5036@wizvax.methuen.ma.us

"F' cryin' out loud, it's *your* life; shouldn't you at least examine 
your lifestyle values to see if they are really what *you* want."
										--Keith Lim
From: jimc@tau-ceti.isc-br.com (Jim Cathey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacTCP (UDP) questions
Date: 20 Aug 92 02:21:12 GMT
Distribution: comp
Organization: ISC - Bunker Ramo, Spokane, WA

In article <1992Aug19.173303.14543@vax5.cit.cornell.edu> tcd@vax5.cit.cornell.edu writes:
>     I am working on an application that needs to transfer a continuous,
>high volume stream of data from one Macintosh to another.   Because we
>can tolerate some amount of data loss/corruption it seemed like UDP
>would be a better choice than TCP.

Mac-to-Mac?  Does anybody remember Appletalk?  Y'know, the networking
protocol built into _every_ Mac since '84?  Why not use that?

Enquiring minds want to know...

-- 
+----------------+
! II      CCCCCC !  Jim Cathey
! II  SSSSCC     !  ISC-Bunker Ramo
! II      CC     !  TAF-C8;  Spokane, WA  99220
! IISSSS  CC     !  UUCP: uunet!isc-br!jimc (jimc@isc-br.isc-br.com)
! II      CCCCCC !  (509) 927-5757
+----------------+
			"PC's --- the junk bonds of the computer industry"
From: scott@mcl.ucsb.edu (Scott Bronson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: CDEF question
Date: 22 Aug 92 00:31:06 GMT

>>I am looking for a CDEF for the up/down arrow control that is used in
>>the Color picker.  ... (the control makes an integer step
>>up and down in set increments.) 

>I don't think it's a CDEF.  The PICT for the up/down arrow is in the
>System as ID -5760.  Just put the PICT in your dialog, and when somebody
>clicks on it, compare the mouse down point with the PICT's rectangle to
>see if they clicked on the top half or the bottom half, and then take the
>appropriate action.

Rather than using the system's PICT in your dialog (would you bet the
future of your program on whether or not Apple is going to leave that
PICT for all future systems--that's not a good bet) you should copy
the PICT into your application's resource fork (it's small) and give
it an ID greater than 127.

This gives me a great idea for a CDEF: make a complete number entry
control.  Use TextEdit, and have the control make sure the number is
valid.  The value of the control is the number in the text box.
Everything else is automatic.  Should be relatively easy, too.  I'd
do it, but I have no need for one right now.

>+------------------------------------+
>| Bonus question:  Which of these    |
>|   two statements is correct?       |
>|     A) Statement "B" is false.     |
>|     B) Statement "A" is true.      |
>+------------------------------------+

Bonus question II:  Their are three errs in this sentence.  Can you find them?

Newsgroups: comp.sys.mac.programmer
From: emk9267@rigel.tamu.edu (KLINE, ERIC MICHAEL)
Subject: printing graphics
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Mon, 17 Aug 1992 21:53:00 GMT

Howdy!  I'm trying to learn how to send graphics to the printer.  My very
basic program is below:

program PrintTest;
 uses
   macprint; 

 var
   drawrect:rect;
   out_square:picHandle;

 begin
  showdrawing;
  getdrawingrect(drawrect);
  out_square:=openPicture(drawrect);

  moveto(10,10);
  lineto(100,10);
  lineto(100,100);
  lineto(10,100);
  lineto(10,10);

  closepicture;
  drawpicture(out_square,drawrect);

  killpicture(out_square);
 end 


I'm using a Mac+ and I have an ImageWriter II.  I'm also using THINK Tech.'s
LIGHTSPEED PASCAL V1.11.  I've tried several things to try to get the 
graphics out to the printer, but all have failed.  I'm looking for the code
that will send a square generated with QUICKDRAW commands to the printer.

Thanks in advance!

Eric Kline
emk9267@rigel.tamu.edu
From: sorensen@bcsaic.boeing.com (Paul Sorensen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C 5.0 & SndPlay Routine
Date: 17 Aug 92 14:46:46 GMT
Distribution: usa
Organization: Boeing Computer Services AI Center, Seattle

In Chapter 7 of the second edition of the Macintosh C
Programming Primer Vol I, there is an example of doing
sound recording and playing.  I typed it in last night
and it worked just fine.  Using Think C 5.0.

sorensen@boeing.com
From: colin@Cayman.COM (Colin "Atilla" Steele)
Newsgroups: comp.sys.mac.programmer
Subject: HELP, PLZ:  MPW tool bums out when loading HUGE resource map
Date: 14 Aug 92 13:15:37 GMT
Distribution: comp
Organization: Cayman Systems Inc., Cambridge, MA


Greetings, gentle netters.

Yes, here I am, once again groveling at the feet of the collective
net.godheads, with a prickly problem.

Some of you may remember my posts over the last week or two about
source code control.  Projector is looking like it may be the de facto
solution.  So, I'm trying to compensate for a couple of its
deficiencies.

To that end, I've written an MPW tool called revinfo, that takes a
file as an arg, opens the res fork of the file, and looks for a 'ckid'
resource in that file.  If it finds one, it parses the 'ckid' out, and
prints it in a cute, parsable format.

It works fine, with one small problem.  It pukes on my ".proj" file.
After some investigation, it looks like the problem is that the
resource map is too big - the file (map) is 2.5 Mb.  Since MPW tools
run in a conjured-up C run-time environment, inside MPW, when the tool
loads the 2.5 Mb resource map, all hell breaks loose.

So, my question is: "How do I make this work?"  My first inclination
is to find some way of getting a handle to 'ckid' # 128 without
loading the whole resource map.  Is this possible?  Using
SetResLoad(FALSE) will just cause GetResource() to return NIL, right?

That's the only solution my poor brain can come up with, right now.
Are there other ideas on how to work around this small problem??

If it would help, I'll post the code...
--


------------------------------------------------------------------------------
 Colin Steele     | Cayman Systems, 26 Landsdowne St., Cambridge, MA 02139
 colin@cayman.com | (617) 494-1916 x209 | applelink D0523 | Fax (617) 494-9270
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Subject: Re: Lots of precompiling in ThC (Re: Help!  System error #28)
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
	<1992Aug13.154821.12112@hobbes.kzoo.edu>
Date: Thu, 13 Aug 1992 23:04:16 GMT

.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:

   >This trick will ... reduce the size of
   >your project file a lot. If you use the class library, why not include
   >those headers as well ? A class library project then becomes < 600K in
   >size !

   Two reasons not to do this:

   (1) Option-clicking on the title bar won't display header files that are
   also in a precompiled header.  This makes bouncing around source code a
   lot slower.

Well, don't you know the class library by heart anyway ?
And there's this excellent browser available too, and for
a lot of stuff I use cmd-F Whatever cmd-H <CR> which is
really what I want to do (as in; where is this stuff referenced)

   (2) Last I knew (ThC4, I think), the compiler took quite a while to chew
   through a huge precompiled header file.  While I'm sure it's faster to
   read a precompiled symbol than to parse it, huge precompiled files mean
   you prepend, to each file, a lot of code you don't need.  When I removed
   all the TCL files from my precompiled header, my compile speed doubled.

Depends on your disk cache size. Myself I use a RAM disk, but
setting the cache to 512 kB will fit the headers nice & easy.

-- 
- I have decided that it is not boxes but my lack of skill that's the problem.
- Traitor! This kind of attitude will get you nowhere around here. If you must
  know, it's not your boxes that are the problem, it's your lack of a
  sufficient number of boxes. Go out and buy something.
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Help!  System error #28
Date: 12 Aug 92 16:31:27 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

I'm getting System Error #28 message from MacsBug when checking a program I
wrote in THINK C.  It happens during an FSRead.  THINK C Debugger and
MacsBug can't recover so I have to reboot, which probably isn't the best
way for me to present the application to my end users.

SystemErrors DA says "stack has moved into application heap."  Is this
simply a memory management problem, or is it really something else
masquerading as a memory problem with a bogus return?  Any ideas about
cause and / or cure?

P.S. The file is open, and an immediately preceeding SetFPos seems to work
fine, giving a noErr return.


-Chuck Hoffman

I'm not sure why we're here, but I am sure that while we're here we're
supposed to help each other.
Newsgroups: comp.sys.mac.programmer
From: Bathsheba.Grossman@bbs.oit.unc.edu (Bathsheba Grossman)
Subject: Re: color dialogs
Organization: Extended Bulletin Board Service
Date: Sun, 23 Aug 1992 04:19:35 GMT

In article <l97tauINN2nl@utkcs2.cs.utk.edu> strickli@cs.utk.edu (Michael C. Stricklin) writes:
>Is it honestly true that there is no trap to load a color dialog
>box from a resource?  My superior intuitive skills tell me that it
>would be called 'GetCDialog,' 
Not that I know of - Apple asleep at the switch again.

>beautiful colors.  Unfortunately, when I try to call it a second time,
>it bombs out during the NewCDialog call.  Am I allocating memory
>improperly?  

Nope - you need to call CloseDialog instead of DisposDialog.  DisposDialog
assumes that you let NewCDialog allocate the dialog record, and frees it;
since in fact you passed a static record, chaos results.
Read the IM 1 descriptions of CloseDialog and DisposDialog one more time.
(But avert your eyes immediately afterwards, because CouldDialog isn't
supported anymore.  B)

-Sheba
sheba@mohlsun.physics.upenn.edu

--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  bbs.oit.unc.edu or 152.2.22.80
From: lonetto@psl.wisc.edu (Michael Lonetto)
Newsgroups: comp.sys.mac.programmer
Subject: Question: SYLK format
Date: 18 Aug 92 15:47:43 GMT
Reply-To: lonetto@psl.wisc.edu
Organization: University of Wisconsin - Physical Science Lab

Hi, 
I'm working on a small utility to reformat a flat file database into
something we can work with in Excel or Filemaker. I was originally
going to convert to tab delimited text, but I think there may be
advantages to using SYLK format (especially for Filemaker).  Is there
an "official" specification for SYLK format, and how can I get it?
Please email (I only see about 20% of the messages in this group :-< )
Thanks in advance,

Mike Lonetto

lonetto@calshp.cals.wisc.edu
lonetto@psl.wisc.edu
UW Madison Dept of Bacteriology, Madison, WI.

Michael Lonetto       UW Bacteriology  Madison, WI 53706   (608)262-4828
lonetto@psl.wisc.edu   lonetto@calshp.cals.wisc.edu
From: pje+@cs.cmu.edu (Paul Erion)
Newsgroups: comp.sys.mac.programmer
Subject: reverse video mode?
Date: 21 Aug 92 19:36:59 GMT
Organization: School of Computer Science, Carnegie Mellon

does anyone know of a way/tool to "force" a mac monitor to operate in
reverse video mode?
						thanks,
							paul


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

INTERNET: erion@cmu.edu
UUCP:	  ...!seismo!cs.cmu.edu!pje
phone:	  (412) 268-3680

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
From: vreddy@das.harvard.edu (Venkatesh Reddy)
Newsgroups: comp.sys.mac.programmer
Subject: THINK Reference
Date: 21 Aug 92 15:34:30 GMT
Article-I.D.: das.1992Aug21.153430.6450
Organization: Aiken Computation Lab, Harvard University

I was wondering how I could get THINK Reference? I purchased THINK C 5.0,
but I haven't registered it yet... do I et it when I register? Or is it
shareware? or...? Thanks...

-- Venk --
Newsgroups: comp.sys.mac.programmer
From: Christopher Evans <evans@natural.com>
Subject: Re: Interrupt problems...using TMON
Organization: Natural Intelligence, Inc.
X-Useragent: Nuntius v1.0
Date: Tue, 11 Aug 1992 21:08:18 GMT

>I am installing an ethernet read interrupt routine.   I'm also running
in 
>full 32 bit mode,  and am careful to preserve the A5 Register by storing
>it into a special field I allow for it.   I first tell the driver that
>I want to install a particular packet read routine,  and specify the
>Interrupt task "intTask" partially defined below,   then pass it the
>current application's A5 register into a field in it's paramBlock,  and
>make the Control Mgr call.

The biggest problem you will have is that if you don't get out of
the interrupt within a certain (short) period of time, you will
lock up.  Try re-enabling interrupts before breaking, then
play with your data in TMON or whatever as long as you want.


Network interrupts are particularly fussy about timing.

<=================================Q=================================>
 Chris Evans                      |   Internet: evans@natural.com
 Senior Macintosh Programmer	  |   Phone: 617-876-4876
 Natural Intelligence, Inc.       |   FAX:   617-492-7425
 2067 Massachusetts Avenue        |   AppleLink: NATURAL
 Cambridge MA  02140              |   or evans@natural.com@internet#
From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: IYourObject, Views, & ViewEdit
Date: 14 Aug 92 09:31:43 GMT
Reply-To: sw@network-analysis-ltd.co.uk
Organization: Network Analysis Ltd
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1992Aug12.231336.1049@reed.edu> (comp.sys.mac.programmer), bowman@reed.edu (Eric Bowman (bobo)) writes:

> On an unrelated note, my code and sample code no longer handles "<<<>>>"
> correctly for window titles -> "Untitled 1", etc.  This worked fine under
> ETO 7, but doesn't work with ETO 8.

Have you recompiled your MacApp.Lib? There's a report in the MacApp3Tech$
mailing list that C++ 3.2 isn't handling "inline"s correctly:

| ------------------------------
| 
| Date: 10 Aug 92 04:32 GMT
| From: V0645@AppleLink.Apple.com (Tandem, Gary Campbell,AM)
| Subject: Error w CFront 3.2 & MA 3.0.1
| 
| Hi,
|  
| I'm using the MacApp 3.0.1 and CFront 3.2 from ETO#8 and
| MacApp 3.0.1 does not properly compile with CFront 3.2.
|  
| I don't use the pre-compiled MacApp libraries because I need -NoNeedsSystem7
| and -TwoOhTemplateViews thus I needed to build my own libraries.
|  
| My window titles look like "DocumentName>>> Title" instead of "DocumentName
| Title".
| This is because the method ParseTitleTemplate from UMacAppGlobals.cp has a
| incorrectly inline CString::Delete function call.
|  
| The inline function CString::Delete is inlined with a temporary NULL variable
| instead of the const variable kPreSize that was supposed to be passed to
| Delete's
| parameter 'length'.
|  
| This inline problem may happen in other methods that I haven't found yet?
|  
| I have turned off inline-ing for CString::Delete as my workaround.
|  
| My question is:
|  
|    Are there other methods that aren't inline properly in MacApp 3.0.1?
|    Were the pre-built MacApp libraries built with this version of CFront or
|    do they too have this problem?
|    Is there a better CFront?
|  
| cheers,
| Gary Campbell
| Tandem Computers
| V0645
 .... [Details, disassembly of code omitted]


Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK

uucp:      ...!uknet!nan!sw  Phone: (+44) 203 419996
AppleLink: NAN.LTD           Internet: sw@network-analysis-ltd.co.uk