HDTenEightyP/NetNews huggingface dataset:
From: lari@strauss.cs.unc.edu (Humayun Lari)
Newsgroups: comp.sys.mac.programmer
Subject: Re: vrefNum from Path Name
Date: 2 Sep 92 21:43:26 GMT
Distribution: usa
Organization: The University of North Carolina at Chapel Hill

In article <Btwwt5.7Bv@taligent.com> keith@taligent.com (Keith Rollin) writes:
>Remember, Inside Mac says that you should _NOT_ create FSSpecs by hand. You
>should always call FSMakeFSSpec. Don't go filling in the parID and vRefNum
>fields yourself. (There is one exception to this, which is that you can freely
>assign one FSSpec record to another.)

What about when the file/directory you're referring to does not exist?
If I remember correctly, FSMakeFSSpec checks to make sure that it does, so
it would return an error code when you're trying to create an FSSpec prior to
performing a Save As... Or am I wrong about this? Keith?

Humayun Lari
(lari@cs.unc.edu)
Newsgroups: comp.sys.mac.programmer
From: niko@iastate.edu (Nikolaus E Schuessler)
Subject: ** startup sequence -- what is available?
Organization: Iowa State University, Ames, IA
Date: Sun, 30 Aug 1992 05:02:19 GMT


I've been hacking around with some code given me to write directly
to the mac screen.  Seems to work ok... but is the GetMainDevice call
(which seems to be nothing but a memory reference) a) in rom b) 
usable before any operating system stuff is
loaded? i.e. if I had an 'operating system' which contained
nothing but a 'GetMainDevice' call and code to stuff bits
into the screen buffer and put it properly in the boot blocks
on a floppy would it work? 

Where can you get a list of stuff that is initialized and
in rom ready for boot strap code to use? I am mostly interested in:

ADB routines
disk driver (floppy/SCSI)
Gestault Routines
Video (GetMainDevice) Palette/colortable manipulation routines...
GetFont/Resource calls (for system fonts in rom)
Memory stuff...
Slot Manager...

And what does the memory map look like at this point?
What routines depend on what features of a rom inited memory map..
Once I get all the startup info I need, can I mess with the
memory/virtual address translation tables all I want? How will this
affect drivers such as the floppy driver?

If I reset the ADB, will I be able to send listen commands and get
keystrokes? On interrupts? Will I have to make my own ADB Manager?

Would I be better off starting with a hardware description and writing
my own drivers instead of relying on prefabricated ones in rom? 

Lots of questions...

-- 
Niko Schuessler               
Project Vincent Systems Manager              email: niko@iastate.edu
Iowa State University Computation Center     voice: (515) 294-1672
Ames IA 50010                                snail: 272 Durham
From: asmah@acad2.alaska.edu
Newsgroups: comp.sys.mac.programmer
Subject: Inconsistantcy in Think C
Date: 30 Aug 92 13:18:04 GMT
Organization: University of Alaska

I have run into some very strange problems working with Think C 5.0 lately and 
would like to know if anybody know's what is causing them.  Here is one I can 
easily define.

I have a sprintf() statement which doesn't work the first time through, but
works during a second time.  As far as I can tell, all the variables are
identical during both passes.  This is what it looks like.

CharsHandle  input;
TEHandle TEFields[20];

input = TEGetText(TEFields[0]);
sprintf((**ARH.c_employee).last_name,"%.*s",(**TEFields[0]).teLength,(**input));
return 1;

The ARH variable is a large struct, suffice it to say that  ).last_name is
defined 
char last_name[20];

When I go through this both times, with the debugger (**input) will show a
short string, and teLength will correctly be the length of the string.  However
after the sprintf statement, last_name is still "".  The second time through,
everything can be exactly identical, but last_name will get the string. 
Something else I have noticed.  It doesn't matter if it is the same piece of
code or not, for some reason, the first sprintf statement anywhere, fails,
after that, we're in good shape.  Any idea's out there?

   /  /                      /  /
  /| /|    o   /    o  __   /  /
 / |/ |   /   / _  /  /_/  /  /
/     |  /   / \  /   \_  o  o
  ________________________
     ____________________/
     \______________
Newsgroups: comp.sys.mac.programmer
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Re: dereferencing Handles( was Re: incrementation differences...)
Organization: University of Illinois at Urbana
Date: Wed, 26 Aug 1992 17:37:18 GMT

d88-jwa@dront.nada.kth.se (Jon W{tte) writes:

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

>   Lists of which Toolbox routines do and don't move memory can be found in
>   appendices of several Inside Macintoshes.  The definitive list is in the
>   Inside Mac X-Ref (and probably in NIM: Memory as well...)


>ALL toolbox calls except BlockMove move memory; or will do
>sometime in the future, bug-fixed or INIT-patched.

Bull. No asynchronous File Manager or Device Manager call will *ever*
move memory. NMInstall will never move memory. The Time Manager calls
will never move memory.

There are oodles of things that need to execute at interrupt time that
can never move memory. Period.

pr
-- 
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet: resnick@cogsci.uiuc.edu
--
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet: resnick@cogsci.uiuc.edu
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ANSWER: How to turn on an extended keyboard LED
Date: 29 Aug 92 18:52:13 GMT
Organization: ex-DTS

In article <headley-280892120050@brahma.macc.wisc.edu> headley@macc.wisc.edu (George Headley) writes:
>THE LED SAGE:
>...
>Well, back to the ranch I went. I immeadiately reached for such tomes
>as Knaster & Rollins, Chernikoff, etc planning to crib the necessary 
>code.  Well, imagine my shock when I found NOOOO mention of this area 
>of Macintosh arcana. So I broke down and read the desktop bus manager 
>chapter in IM V and the hardware reference guide.

Turning on the LEDs is covered in the ADB Tech Note ("Space Aliens Ate
My Mouse") and a sample led setting routine is in the DTS snippet
ledApp.  The Tech Notes (now including spiffy new Q&As) and Snippets
are excellent resources, and are available free to netfolk via anonymous 
ftp at ftp.apple.com.


Grobbins                  grobbins@apple.com

Usual disclaimers apply.
From: franke@llnl.gov (Norman Franke, III)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Adding Balloon help to my App...
Date: 4 Sep 92 17:21:35 GMT
Organization: Lawrence Livermore National Laboratory
X-UserAgent: Nuntius v1.1.1d9
X-XXMessage-ID: <A6CCE9C7F60110D0@tripoli.llnl.gov>
X-XXDate: Fri, 4 Sep 92 18:24:07 GMT

In article <1992Sep3.184230.2332@alias.com> Reid Ellis, rae@Alias.com
writes:
>This is fine as long as your balloon help strings are all less than
>255 chars long.  If they're longer, you should use TEXT [HMTEResItem]
>resources instead.  Another advantage of using TEXT resources is that

I read in the recent copy of _d e v e l o p_ that the Help Manager will
only
use 255 length strings maximum, whether from TEXT & styl or from a STR or
STR#.
They suggested using a PICT for anything larger.

| | | |   +----------------------------------------+
| | | |   | Lawrence Livermore National Laboratory |
| | | |__ |        Computer Scientist - EPD        |
| | |___/ |     T-5475, R-1321, (510) 422-7440     |
\ \____/  | Norman Franke, III - frankee@.llnl.gov |
 \____/   -----------------------------------------+
From: REEKES@applelink.apple.com (Jim Reekes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MPW 3.2 Linker Errors
Date: 26 Aug 92 20:19:58 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <Bt6wy6.3n3@news.larc.nasa.gov>, wjb@cscsun2.larc.nasa.gov
(William J. Bene) wrote:
> 
> I have a C program with about 15 different modules which I have successfully 
> compiled and executed using MPW 3.2.  After adding a few functions to one of 
> the files I get the following errors while linking: 
> 
>  ### While reading file "Main.c.o"
> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0001E 
> in main
> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0002A 
> in main
> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0003A 
> in main
> (and it continues on...)
> 
> 
> I didn't add any global variables in the last few functions, so its not the 
> 32K global data limit.  I think it might be too many entries in the jump 
> table but I'm not sure.  Any ideas would be helpful.

I would be that you've gone beyond the 32k limit for your global
allocation.
You should know that your strings are collected into the global allocation
space.
Even though you've said that this function doesn't add any global variables
latetly, you might have included some strings (i.e. fopen, fprints, etc.).
You can embed the string data directly into the code stream by using the -b
option for the compiler.

-----------------------------------------------------------------------
Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
                             |          Sound Manager Expert
Apple Computer, Inc.         | RAll opinions expressed are mine, and do
20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
Cupertino, CA 95014          |       employer, Apple Computer Inc.S
From: peter@sysnext.library.upenn.edu (Peter C. Gorman)
Newsgroups: comp.sys.mac.programmer
Subject: How to tell if replacing w/ SFPutFile?  aaaarg!
Date: 28 Aug 92 19:01:30 GMT

Hello -

It's very nice that SFPutFile asks users if they want to replace an  
existing file, but how is my program to know if they've said 'yes'?  
StandardPutFile, of course, sets sfReplacing, but what do you do for Sys  
6.x??  I've been searching New IM: Files and SpInside Mac to no avail.

My program is trying to be a good MacCitizen and practice safe computing;  
is it possible?? Please respond by mail, as I don't have access to a  
newsreader for the next few days, but I can read my mail.

Thanks!

--
Peter Gorman
University of Pennsylvania
Library Systems Office
peter@sysnext.library.upenn.edu
Newsgroups: comp.sys.mac.programmer
From: perm@csd.uu.se (Per Mildner)
Subject: Think Debugger & Desktop Textures 2.0 conflict
Organization: Computing Science Dept.,Uppsala University, Sweden
Date: Fri, 4 Sep 1992 17:27:34 GMT


When I use a fancy color pattern (128x128) the debugger starts to eat
100k of its heap (as seen by Swatch). This occurs for every step
operation after calling StandardGetFile (but in another project it
happened unrelated to StandardGetFile...). This behaviour is totally
repeatable.

This is on a MacII fx, 7.01 Swedish, Tune-Up 1.1.1, 32 bit addressing,
32 meg physical, no virtual, no inits (i.e., shift key at bootup), a
color startup pict, 3 monitors both color and B/W, several HDs. If I
revert to a Control-Panel compatible pattern then everything works
fine even with all my usual gazillion inits.
This has been reported to Symantec.

Per Mildner			perm@CSD.UU.SE
Computing Science Dept.		tel: +46 18181049
Uppsala University, Sweden	fax: +46 18521270

--
Per Mildner			perm@CSD.UU.SE
Computing Science Dept.		tel: +46 18181049
Uppsala University, Sweden	fax: +46 18521270
From: andrew@phoebe.loni.ucla.edu (Andrew Lee)
Newsgroups: comp.sys.mac.programmer
Subject: help need on error massage
Date: 3 Sep 92 18:25:37 GMT
Distribution: usa
Organization: Laboratory of Neuro-Imaging

Can someone tells me what is the meaning of error #90?

Thanks

please send me through e-mail
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do you launch a Control Panel?
Date: 4 Sep 92 17:39:44 +1200
Followup-To: comp.sys.mac.programmer
Organization: University of Waikato, Hamilton, New Zealand

In article <mxmora-030992150746@css-mac1.sri.com>, mxmora@unix.sri.com (Matthew Xavier Mora) writes:
> How do you launch a control panel under system 7? LaunchApplication
> doesn't seem to work. LaunchDeskAccessory doesn't work either. (I know but
> I tried it anyway). Is OpenDeskAcc my only hope?
>
> Has anybody done this? I can't post an event to the finder because it might
> be closed or busy coping a file.

Control panels don't run as separate processes with Finder 7. They run within
the Finder's process context. That's why there is no Process Manager call for
opening them; you really have to do it by posting an event to the Finder.

My Default Application control panel relies on this: that's how it's able to
patch the running Finder without installing INITs or any such black magic.

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
The Internet protocol standardization process will now consist of three
stages: TRFCs (Tentative Requests for Comment), FRFCs (Firm Requests for
Comment), and DFCs (Demands for Comment).
From: Andrew Gilmartin <Andrew_Gilmartin@Brown.Edu>
Newsgroups: comp.sys.mac.programmer
Subject: Re: Can TCL project size be reduced using precompiled headers?
Date: 3 Sep 1992 14:07:17 GMT
Organization: Brown University
Distribution: world
NNTP-Posting-Host: cis_staff-kntx12.cis.brown.edu
X-UserAgent: Nuntius v1.1.1d7
X-XXMessage-ID: <A6CB954A2F01B062@cis_staff-kntx12.cis.brown.edu>
X-XXDate: Thu, 3 Sep 92 15:11:22 GMT

In article <de19-020992173616@zben-mac-ii.umd.edu> Dan Emery,
de19@umail.umd.edu writes:

>Is it possible to reduce the size of a TCP project file by
using
>the "precompiled header" feature?  If so, could some kind soul
>email or post a description of the strategy one would use.

The TCL-Talk archive at ftp.brown.edu:/pub/tcl/misc has a TCL
header file that I use for debugging. Using this header my
projects are 50-60% smaller.

--
Andrew Gilmartin
Computing & Information Services
Brown University

Andrew_Gilmartin@Brown.Edu
Newsgroups: comp.sys.mac.programmer
Subject: Re: Generic scanner API needed
From: tmaehl@vax1.umkc.edu
Date: Thu, 27 Aug 1992 07:52:56 GMT
Organization: University of Missouri - Kansas City

In article <2A9C116A.17039@orion.oac.uci.edu>, 
pamiri@uci.edu (Peter Amiri) writes:
> I am looking for a generic scanner API, does anyone know of any? I am writing
> a document tracking system and would like to incorporate a scanning feature
> which would scan in a image of the scanner bed and store it with a record.
> I know Apple has a book available that lets me program the Apple Scanner and
> the OneScanner, but does anyone know of any other scanner API's. In particular
> one that would give access to a scanner that has a sheet feeder option. At
> this point I am trying to find out if there is anything already available 
> before I invest too much time into it. Any help would be greatly appreciated.
> 
> Peter Amiri
> University of California, Irvine


Peter: What you want is TWAIN (Toolkit Without An Important Name), an
API to let you interface applications to all brands of scanners.
Supposedly it will work with system 7 and Windows 3.x.  The standard
is supported by Kodak, Aldus, HP, et al and can handle PICTs and
TIFFs.

Supposedly its will work with all types of scanners (handheld, sheet fed,
slide scanners, etc), but while it has the backing of all the major players,
you may not see lots of compatible hardware for a few years (so check
with your vendor first...)

The toolkit is available for $30. Call 800-722-0379.


Jonathan/tmaehl@vax1.umkc.edu
From: mxmora@unix.SRI.COM (Matt Mora)
Newsgroups: comp.sys.mac.programmer
Subject: Re: GNU C++ for the Macintosh?
Date: 3 Sep 92 18:00:23 GMT
Organization: SRI International, Menlo Park, California

In article <15834.2AA3F783@zeus.ieee.org> Glen.Stewart@f175.n2240.z1.ieee.org (Glen Stewart) writes:
>I see that GNU C++ supports over 40 different processors and comes with source 
>code.  Is it avaiable as a running Macintosh program?

>If so, can you tell me what BBS would have it, or how much it would cost to
>ship by mail to me?


Check on ftp.apple.com. It should be there. 


Matt


-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________
Newsgroups: comp.sys.mac.programmer
From: paulk@calera.com (Paul Koen)
Subject: MPW, Installer, StuffIt, etc.
Organization: Calera Recognition Systems
Date: Wed, 26 Aug 1992 01:23:01 GMT


Hi there. I feel lame about posting this, because I know the info must be in 
an FAQ somewhere, but I don't  have time to go looking for it.

I need to know, first of all, what the LATEST version of MPW is.. I've got 3.2, 
and I thought it was the latest,  but I'm trying to use it with a program 
called ScriptGen (which generates Installer scripts) and SG informs me  that 
the version I have doesn't support Apple Events.. so I called the author of 
the program, who informed me  that MPW 3.3 is the current version. Except 
that I can't FIND 3.3 anywhere, so..

Also- info on the Installer itself and/or with the Alladin StuffIt action 
atoms...? I really need to communicate  with someone who knows a fair 
amount about these things, and to whom I could relate my situation in more  
detail. I'm not a programmer, and my job is on the line to turn a 1.4M disk 
set into an 800K one, and I'm out of  time.

Any response (ASAP) would be appreciated GREATLY I don't know about the 
address in the header, but  mail DOES get to me at "paulk@calera.com".


Thanks. -p 

Newsgroups: comp.sys.mac.programmer
From: kent@sunfs3.Camex.COM (Kent Borg)
Subject: NBP Stack Usage (And a Pagemaker and PREC 103 Bonus Q.)
Summary: How much?  (And: How to do a Pagemaker PREC 103?)
Organization: Camex Inc., Boston MA
Date: Thu, 27 Aug 1992 16:55:51 EDT


Some of you might remember an INIT I have been working on.  Well, you
are not free of me yet.  I am doing some synchronous NBP lookups from
within a _PRGlue patch.  (I only want to tamper with the print dialog
if we are aiming at a printer which has special features we intend to
talk to.)

While reading news today it occured to me that I really should be
peeking at the available stack space before I try to do "big things"
in someone else's living room.

Question: How much stack space can an NBP lookup require?  (I assume
NBPExtract's and all my other calls' usage will be compairably
trivial.)


Bonus Question: Anyone have any ideas how I might squirt a little
extra Postscript into Pagemaker's output, a la the PREC 103 mechanism
Apple offers?  (Pagemaker's forcing me to start from scratch really
annoys me.  Even Microsoft applications work with my original INIT!)


--
Kent Borg            kent@camex.com or (when it is *working*) kentborg@aol.com
                                            H:(617) 776-6899  W:(617) 426-3577
As always, things look better when some costs are left out.
						      -Economist 3-28-92 p. 94
Newsgroups: comp.sys.mac.programmer
From: nagle@netcom.com (John Nagle)
Subject: Re: Zortech C++ - Comments? -
Date: Fri, 28 Aug 92 17:13:02 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:

>In article <vwbn6_a.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:

>	 Don't.  You'll be sorry.  The Zortech C++ product for Intel CPUs is
>   good, but the 68000 code generator was botched, and the Mac product is
>   lousy.  I am a very unhappy owner of this product.  I finally had to buy
>   Apple's MPW C/C++ compiler.

>While it's true that the original 2.1 release of Zortech C++ for MPW
>was buggy, Symantec released a 2.1.3 version that fixed many of the
>bugs not long after the acquisition of Zortech. There haven't been any
>Mac releases since then (2.1.3 was released less than a year ago), but
>a lot of work is being done on it.

     The 2.1.3 release came about a year after the original release, by
which time I (and almost everyone else) had abandoned the product.
It's still a very basic compiler; no 68020/30/40 support, no math coprocessor
support, problems working with the new MacApp.  And I haven't seen any non-
Symantec employees saying anything good about it.

     Yes, the global optimizer is very impressive.  But the product as
a whole is still a lemon.  

					John Nagle
Newsgroups: comp.sys.mac.programmer
From: ajcurtis@iat.holonet.net (Allen J. Curtis)
Subject: GPi or CTS input
Organization: HoloNet (BBS: 510-704-1058)
Date: Fri, 4 Sep 1992 11:34:23 GMT


	I have been trying to receive a digital input signal from the 
standard MAC serial ports.  My first attempt at this used the GPI line
and the tech note information (286?).  However this did not appear to
work on a Quadra.  The only explaination that I have for this is that
there is not any SCC support on the Quadra which is stated as required
in the tech note.  

	Then I changed the hardware and software to use the CTS line and
to generate driver events with CTS state transitions.  I can not get this
to work either.

	Does anyone have any good ideas on how to get a digital signal input
using the standard equiped MAC II and up computer?  This is a development
project so the hardware is somewhat flexible.  Any ideas would be appreciated.

Thanx
From: tague@omphalos.bug.co.jp (Tague Griffith )
Newsgroups: comp.sys.mac.programmer
Subject: Apple Event driven psychosis
Date: 31 Aug 92 04:45:13 GMT
Organization: BUG, Inc.   Sapporo, Japan

In the application I'm writing, I want the user to be able to select a document
from a standard file dialog, and then have my application open that document
in the application program that created it.  Right now I'm trying to send an
OpenSelection apple event to the finder (for other reasons this application
must run under system 7) and have the finder send an 'odoc' to the proper
application.  Anyway, I've been unable to get this code to work so, if anyone
could mail me (no FTP capibility :-( or give me pointers to some code that
performs this function I would greatly appreciate it.  (or if there is a 
simpler means of accomplishing the same thing - I already tried the PPCLaunch
function and it didn't work).   As always, thanks in advance.----------------------------------------------------------------------------
internet : tague@bug.co.jp         |  $@%S!<!&%f!<!&%8!<;%KZF|K\$G$9(J
         : tague@cs.stanford.edu   |  $@%9%?%s%U%)%I!<Bg3X%"%a%j%+$G$9(J
AppleLink: BUGPLAN.DVJ             |  BUG, Sapporo Japan (ISDN Development)
"A result is a neutralisation ov, and challenge to, thee centre ov Control.
A Tribal State replacing a State ov tribe." - G.P-Orridge, Psychic TV
----------------------------------------------------------------------------