HDTenEightyP/NetNews huggingface dataset:
From: James_Zuchelli@qm.claris.com (James Zuchelli)
Newsgroups: comp.sys.mac.programmer
Subject: Re: EDITOR
Date: 10 Nov 92 01:05:54 GMT
Organization: Claris Corp

In article <40103@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
> 
> In article <1992Oct29.183228.17202@sunfs3.Camex.COM> kent@sunfs3.Camex.COM (Kent Borg) writes:
> 
> >You might have a hard time finding a good solution, but I suggest you
> >look at MPW, Apple's development environment.  I have never used it to
> >edit 20-30 meg files but I have edited 5-6 meg files in a memory
> >partition which is less than that, so it is swapping stuff to file.  I
> >bet it can edit a 30 meg file, but it might not be pleasant.
> >
> >Anybody know whether Nisus can do big files?
> 
A couple of years ago I had to edit 10 megabyte text downloads.  I found the
only reliable way was to use the MPW Editor.  MS Word ( at least then crica 
1988) would mess up the files.  I would save them and open the files later
to find that the beginning of the file was a the end and the middle parts
were all messed up.
MPW never had trouble.  Whatever you use, make sure you check your files
after they are saved and reopened to make sure that nothing is messed up.

James Zuchelli
--------------
This is my personal opinion and not that of Claris Corp. or my Employer.
From: lsr@taligent.com (Larry Rosenstein)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Button() not callable from interrupt ?
Date: 12 Nov 92 17:35:32 GMT
Article-I.D.: lsr.lsr-121192093438
Followup-To: comp.sys.mac.programmer
Distribution: comp
Organization: Taligent, Inc.

In article <lsr-091192102228@lsr.taligent.com>, lsr@taligent.com (Larry
Rosenstein) wrote:
> 
> Use OSEventAvail with a 0 mask.  The event record will contain the state of
> the mouse button.

Unfortunately, this is wrong.  Eric Schlegel pointed out that the DTS Q&A
stack says that if Balloon Help is turned on, then OSEventAvail can move
memory.

Larry Rosenstein
Taligent, Inc.

lsr@taligent.com
From: crevier@husc8.harvard.edu (Daniel Crevier)
Newsgroups: comp.sys.mac.programmer
Subject: Reading in jpeg compressed PICT files
Date: 13 Nov 92 00:24:50 GMT
Article-I.D.: husc3.1992Nov12.192450.17388
Organization: Harvard University Science Center


	I am trying to convert some PICT files that were captured with the
video spigot into a format called FITS so that I can use them with a program
called macvista.  My problem is in loading the pict files.  My plan was to
create a gworld, and then open the PICT files using the source from tech note
152, and then draw it in the gworld, and then go through it with GetCPixel, and
convert it.  I can't get it working...  I tried just loading a picture into 
a CWindow using the source from tech note 152, and it crashes when doing the
DrawPicture call.  Will this not work with JPEG pictures for some reason?  I 
can send source if needed.  Any help, or pointers to source to load pictures
would be appreciated.

Dan

crevier@husc8.harvard.edu
From: pmeyer@.intel.com (Paul Meyer)
Newsgroups: comp.sys.mac.programmer
Subject: Need source for Darkside fader in Think C
Date: 6 Nov 92 17:59:57 GMT
Distribution: usa
Organization: Intel Corp., Chandler, Arizona
NNTP-Posting-Host: tramp.intel.com
Originator: pmeyer@sedona


	I'm new to writing code resources, and these may be stupid
questions, so forgive me ahead of time.

	I just started looking at writing fader code resources for
Darkside of the Mac, a screensaver by Tom Dowdy.  The source for a
simple fader (invert) came with it, but it is for the MPW C environment.
I have Think C 5.0.3, and I'm having real trouble getting it working.

	So, does anybody have source for a simple fader for Think C?

Some of the problems I had:

	Think C wouldn't build the code resource for me unless I put a
dummy main(){} at the end (I had custom headers turned off).  

	It wasn't clear exactly what code resource options I needed to
set in the Project Type dialog.  I tried interpreting the MPW makefile,
but gave up.


	There are six functions in each fader code resource that
Darkside accesses.  The locations of these functions will obviously vary
between faders.  There has to be some fixed location in the resource
where Darkside looks to get pointers to the six functions.  How can I
make Think C build a code resource in the correct format?  

	Any help will be appreciated.

-- 
Paul Meyer

pmeyer@sedona.intel.com
Newsgroups: comp.sys.mac.programmer
From: Patrik Estermann <estermann@systech.tik.ethz.ch>
Subject: Format of SYM-File for Sourcebug
X-Xxmessage-Id: <A7203DCD9D013919@marjoram.ethz.ch>
X-Xxdate: Fri, 6 Nov 92 16:20:45 GMT
Organization: TIK
X-Useragent: Nuntius v1.1.1d11
Date: Fri, 6 Nov 1992 14:19:37 GMT


I need the description of the sym-Files generated for SourceBug and Sade
by MPW Pascal or MPW C. I want to convert the Debug-Files from another
Compiler to use them with SourceBug.

Thank you for your help

Patrik

+----------------------------------------------------------------------+
| Patrik Estermann            Institut fuer technische Informatik und  |
| email:estermann@systech.tik.ethz.ch  Kommunikation (TIK),ETH Zuerich |
+----------------------------------------------------------------------+
Newsgroups: comp.sys.mac.programmer
From: kaufman@Xenon.Stanford.EDU (Marc T. Kaufman)
Subject: Re: PhotoCD Woes?
Keywords: Photo CD
Reply-To: kaufman@CS.Stanford.EDU
Organization: CS Department, Stanford University, California, USA
Date:  6 Nov 92 19:46:50 GMT

terryd@apple.com (TK Davis) writes:

>The PhotoCD can be read on all Apple CD ROMS. The disadvantage of the older 
>CDs is that they cannot read multiple sessions. They are single session only.

Not true.  PhotoCD can not be read on the oldest drives.  Only the CDSC+ and
newer.

-- 
Marc Kaufman (kaufman@CS.Stanford.EDU)
From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Popup CDEF
Date: 6 Nov 92 08:37:11 GMT
Reply-To: sw@network-analysis-ltd.co.uk
Organization: Network Analysis Ltd
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1992Nov3.193130.6189@gallant.apple.com> (comp.sys.mac.programmer), alexr@apple.com (Alexander M. Rosenberg) writes:

> The largest side effect of this change is that you can no longer call
> GetMHandle to get the menu that the pop-up is using. It was always clearly
> stated that you must look for it via the contrlData field.

I don't know about "clearly"; both IM6 and Inside the CTB say:

"You can obtain the menu handle and the menu ID of the menu associated
with the pop-up control by dereferencing the contrlData field of the
control record. The contrlData field is a handle to a block of private
information."

Note that it says "can" and not "should" or "must". That, and its being
a handle to "a block of private information" made me think that it was safer
not to rely on its being there in future versions (wrong....).


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
Newsgroups: comp.sys.mac.programmer
From: mark@cheers.jsc.nasa.gov (Mark Manning)
Subject: A simple question about menus
Organization: Simulacron I
Date: Thu, 12 Nov 1992 15:49:14 GMT

Hi!  I used to think I knew how to create menus and (especially)
hierarchical (sp?) menus.  But, foolish me, I don't. :(

What I'm trying to do is to create a menu which looks like this:

<Apple> File Edit Forms Options Format
                                Font  >
                                Size  >
                                Style >

With the ">" being where the submenus go.  Using ResEdit, I have
created the above menus (with their pull down stuff like "New", "Open",
and all of the rest).  I have created the entries under "Format"
with the submenu option box clicked on and the ids entered.  I've
also created the submenu entries.

The "Font >" submenu has zero entries, they are added via an AddResMenu
command within the program.  The "Size >" submenu is figured out after
the "Font >" menu is created so I can find out what the standard system
font is and insert all of the available sizes into the "Size >" submenu.
The "Style >" submenu has all of the standard stuff already inserted
into it (ie:Plain, Bold, etc...).

When I go to insert the submenus though, only the "Font >" submenu comes
up and it only appears under the "Style >" part of the "Format" menu.
Everything else simply disappears.

I've been trying to get this to work for weeks and, unfortunately, our
Usenet node has been down that long.  Otherwise I would have asked
someone much earlier. :)

Before I forget:The entire program is written using MPW Pascal under
System 6.0.8 (Please, no flames.  I work for the government and I'm
just happy to even HAVE a Mac. :) ).  ResEdit 2.1.1 is the ResEdit
version I'm using.  My mail code is mark@cheers.jsc.nasa.gov (which
is also located at the top of this message).  Please e-mail me an
answer as our Usenet node keeps acting like a popcorn popper and I
don't know how long this particular kernel is going to last.  ;)
Thanks ahead of time for your help.

PS: To insert a hierarchical menu into the "Format" menu, I use the
"InsertMenu( gFontMenu, -1 );" command which, from what I've read,
seemed to be the correct way to insert submenus.  Thanks again.

Newsgroups: comp.sys.mac.programmer
From: 9999sc01@uhdvx3.dt.uh.edu (Alexandre Khalil)
Subject: Re: xxx to Postscript
News-Software: VAX/VMS VNEWS 1.41A   
Organization: University of Houston-Downtown
Date: Tue, 10 Nov 1992 05:47:00 GMT

Question: How to generate a PostScript file?

In article <BxGtGF.9BF@world.std.com>, aep@world.std.com (Andrew E Page) writes...
> 
>    Choose "Print..." just like you always do.  When you get
>the job dialog (assuming you are using sys7) change the
>destination to "PostScript File."  The laserwriter driver
>will convert whatever MacDraw sends it to postscript.

   Sorry Andrew: I forgot to say that I am using system 6.

   Would you know the trick ?

>Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
>Mac Consultant                  |     The difference between what we are
>Macintosh and DSP Technology    |           and what we want to be.


alex@dt.uh.edu
From: Gregory.Cohen@f204.n2603.z1.ieee.org (Gregory Cohen)
Newsgroups: comp.sys.mac.programmer
Subject: Where is Apple File Exchange Documented?
Date: 8 Nov 92 20:06:00 GMT
Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY

Can anyone tell me where Apple File Exchange is documented?  I need to write

what I think would be a short conversion script, but have no idea where to

look for documentation.

Thanks very much.


--  
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
 Gregory Cohen - Internet: Gregory.Cohen@f204.n2603.z1.ieee.org
Newsgroups: comp.sys.mac.programmer
From: simsh@marcus.its.rpi.edu (Chewbacca)
Subject: Need help with sound manager!
Date: Tue, 10 Nov 1992 17:22:17 GMT

I'm hoping someone can help me on this one. How do I use the calls
SPBGetInfo and SPBSetInfo from an FKEY? I have a small fkey set up to turn
on and off the sound playthrough on my IIsi by checking its current volume
and turning it on to the system volume if it's 0 or to 0 if it has a volume.
The problem is, it just doesn't work. I have used these routines in a regular
applicatoin and they work fine, but maybe here there's something I'm not
initing right or something else? The app was a lot bigger than the fkey, so
I don't know what really was different in this code there.

I tried posting once before, but it didn't get out well, or something, and I
only got a couple of answers, but they didn't answer my question. I know I
am building the fkey properly, and I know how to use these calls, I just want
to know what I am doing so as to make them not work out right. Any help
will be appreciated!

-- 
     Hillel Sims                        e-mail: simsh@rpi.edu
     >:-) The Smiling Vulcan            Rensselaer Polytechnic Institute
Newsgroups: comp.sys.mac.programmer
From: system@asuvax.eas.asu.edu (Marc Lesure)
Subject: INIT's/System Extension Questions
Keywords: INIT extensions
Organization: Arizona State University
Date: Thu, 5 Nov 1992 18:46:23 GMT

I have an INIT that I wrote under System 6.x which works just fine.  The
INIT still works under System 7.0 if it resides in the System folder,
however if I put it in the Extension folder it fails.  The problem seems to
be the call to the routine OpenDriver(), under the extension folder it
returns the error openErr.  The device driver resides in the INIT resource
fork.  Any suggestions?

Also, are there any snippets showing the best way to show an INIT icon
during the booting sequence?

Thanks!

-----------------------------------------------------------------------
Marc Lesure / Arizona State University / Tempe, AZ
"Between the world of men and make-believe, I can be found..."
"False faces and meaningless chases, I travel alone..."
"And where do you go when you come to the end of your dream?"

UUCP:       ...!ncar!noao!asuvax!lesure  
Internet:   lesure@asuvax.eas.asu.edu
From: cklarson@flauta.engr.ucdavis.edu (Christopher Klaus Larson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Powerbook track ball buttons (click and hold)
Date: 5 Nov 92 20:56:19 GMT
Organization: College of Engineering - University of California - Davis

In article <1992Nov3.124826.26965@cs.ucla.edu> david@oahu.cs.ucla.edu (David Dantowitz) writes:
>
>Has anyone written a trackball hack (similar to the Kensington hack)
>that allows you to have one of the track ball buttons click and hold?
>
>Alternatively, how does one differentiate between the two buttons?
>

I don't know about the new PB's (160,180,210,230) but in the older
models the two buttons were physically wired together so there is *no*
way to tell them apart from inside the machine.

--Chris
cklarson@engr.ucdavis.edu
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Re: processes and passing files to open...
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 10 Nov 1992 07:30:41 GMT

In article <1992Nov9.224655.15423@sbcs.sunysb.edu> rhorn@csws17.ic.sunysb.edu (Robert Horn) writes:
>In article <1992Nov9.001906.7771@netcom.com> leonardr@netcom.com (Leonard Rosenthol) writes:
>>In article <1djv2gINNjhd@mthvax.cs.miami.edu> rsherman@mthvax.cs.miami.edu (Roby Sherman) writes:
>>>Hi.
>>>
>>>Under System 7, is it possible to tell the Process Manager what files to
>>>open after starting a process? IE: I want Stuff-It Deluxe to launch and
>>>then open a certain file. Is there any way to do this without Apple
>>>Events?
>>>
>>	Why would you want to do this WITHOUT Apple events??  Using AE's is
>>the correct way to do this - in fact you can even pass the "open document"
>>event along with the _LaunchApplication call if you want.
>>
>
>How? According to IM6, if you set the launchAppParameters to NIL, the system 
>will automaticly generate an OpenApplication event and send that to the newly 
>launched application. 
>
	That's correct.

>It also says that you can pass any high level event 
>through the launchAppParameters field, and says to look in the Event Manager 
>chapter for more information. To the best of my knowledge, neither the Event 
>Manager chapter, nor the AppleEvent chapter show the structure of the high 
>level event, 
>
	Yeah, that stuff is not too well documented.

>Am I missing something really obvious? Is there a snippet that I should be 
>looking at?
>
	Check out the ProcDoggie sample a DeveloperCD near you - it may even
be available on ftp.apple.com if you look hard enough.

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician

Newsgroups: comp.sys.mac.programmer
From: cstrockb@cs.sunysb.edu (Caleb Strockbine)
Subject: How to use large arrays in Think C?
Organization: SUNY at Stony Brook Computer Science Dept.
Distribution: comp
Date: Sat, 7 Nov 1992 04:56:44 GMT


Forgive me if I should have been able to figure this out on my own, but
deadlines are approaching and I need to get to work...

I know that I can't declare arrays > 32K in Think C on the stack. Fine,
I don't mind using malloc(). But I'm working on a project for a class
in which I have to process images that are 256x256 pixels, and the images
are stored (on a unix system) as 256x256 byte files (each byte = 1 pixel).

For clarity and consistancy with the rest of the class, it would be great
if I could use regular array notation for this picture. For instance, if
I want to just run through every pixel in the image, I'd like to say:

short i, j;

for (i=0;i<256;i++)
  for (j=0;j<256;j++)
    ProcessPixel(image[i][j]);

So my question is this: is it possible to allocate a bunch of memory using
malloc() and then pretend it's a regular array?

I tried a bunch of type casting possibilities, but I couldn't come up
with anything that worked. Seems like this is something I should know,
but it's not.

E-mail is best, but I read here often too. Thanks for listening...

Caleb Strockbine
cstrockb@ic.sunysb.edu
--
This message has been brought to you by the letters C and S and the number 3.
From: pcastine@tubkom.prz.tu-berlin.de (Peter Castine)
Newsgroups: comp.sys.mac.programmer
Subject: Re: c++ compilers
Keywords: c++ compilers
Date: 12 Nov 92 16:31:31 GMT
Organization: TU-Berlin TUBKOM, Germany

In article <brownlow.721438169@ilanit> brownlow@informix.com (Keith Brownlow) writes:
>I am looking for a 'true' c++ compiler for the mac, I have Think C 5.0 TCL 
>library, but want to use a real c++ compiler.  Does MPW fit this description ?
>Or are there any other c++ compilers for the mac that anyone else is aware of.
>It does not have to interface to the toolbox, running my executable in a Think
>C console-like shell would do fine, this is only for learning c++.  The cheaper
>the better (shareware?).
>

Here is a complete list of C++ compilers for Macintosh:

    MPW C++, available from APDA





That's it. All of 'em.


================================================================================
 Peter Castine                            |
 Technische Universitaet Berlin           |  "Errors and anachronisms ought to
 Sekretariat H51                          |   be few. If they do occur, I take
 Fachgebiet Kommunikationswissenschaften  |   full responsibility like Richard
 Strasse des 17. Juni 135                 |   Nixon..."
 W-1000 Berlin 12                         |                     -- Gore Vidal
 Germany                                  | 
================================================================================

-- 
================================================================================
 Peter Castine                            |
 Technische Universitaet Berlin           |  "Errors and anachronisms ought to
 Sekretariat H51                          |   be few. If they do occur, I take
Newsgroups: comp.sys.mac.programmer
From: nerm@apple.com (Dean Yu)
Subject: Re: How to tell screen depth?
Date: Thu, 12 Nov 1992 22:17:27 GMT
Organization: Apple Computer, Inc.
Followup-To: comp.sys.mac.programmer

In article <BxM74p.JzH@news.iastate.edu>, niko@iastate.edu (Nikolaus E
Schuessler) wrote:
> 
> In article <jvp.721588860@cpre1.ee.iastate.edu> jvp@vlsi2.ee.iastate.edu (Jim Van Peursem) writes:
> >  How do I tell the screen depth of the monitor that one of my window's is
> >in?  I don't want to know if the computer has color quickdraw.  I want to
> >know whether to draw the window in color or not based on the pixel depth
> >of the screen.  Can anyone point me in the right direction please?
> >
> 
> You will wan't to use some combination of GetMaxDevice (or GetDevice on
> something you know to be on the screen you're interested in). I forget exactly
> what all the parameters are, but it returns a bitmap or window which
> has a '.pixelDepth' field... if it is greater than 1 then color!
> 
> Inside Mac V should have the details... Look under 'GetMaxDevice' ...
> -- 
> 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 

  Under System 7, the best method is to use DeviceLoop.  DeviceLoop will
call your drawing procedure with the depth of the device you'll be drawing
to.  Check out Inside Mac VI, Graphics Devices, for details.

-- Dean Yu
   Blue Meanie, Negative Ethnic Role Model, etc.
   Apple Computer, Inc.
From: Marcel.Claus@arbi.informatik.uni-oldenburg.de (Marcel Claus)
Subject: HELP! How to access Serial Drvr directly??
Organization: University of Oldenburg, Germany
Date: Fri, 6 Nov 1992 15:13:20 GMT

I have a problem to access the Serial Drivers directly without using
routines like SerSetBuffer, SerReset, ... (IM II).
What I wish to do is simply set the channels. For example I would
like to set the DTR-Signal, wait a few micro secs and then set it
again from high to low. Now the question is:
- Is there a way to set (or unset) the channels of a serial port
- is there any literature discussing the serial hardware and
  routines to control it
- and in wich addresses the informations about the status of the
  port is stored.
The target of my project is to implent an IIC-Interface for a programmable
videotext decoder (SAA 5246) The decoder is clocked by the Mac, so I have to
set the channels.
From: wombat@claris.com (Scott Lindsey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: New DeadKeys in 7.1
Date: 10 Nov 92 04:28:32 GMT
Followup-To: comp.sys.mac.programmer
Organization: Claris Corporation, Vancouver WA

In article <1992Nov4.234622.20938@lmt.mn.org>, davep@county.lmt.mn.org
(Dave Polaschek) wrote:
> 
> 
> Got a question about some different behavior I'm seeing with system 7.1.  The 
> formerly handy keys <command><left-arrow> and <command><right-arrow> behave 
> very differently.  These guys are what I continually used to zip to beginning 
> and end of line while in the MPW editor, but now they don't even seem to 
> generate events when they're pressed

Did you recently change the copy of MPW you're using?  (In 3.3) Check what
your
current bindings are with "SetKey".  They should be bound as follows:

setkey Command-Leftarrow                MoveStartOfLine
setkey Command-Rightarrow               MoveEndOfLine

If not, check your various startup scripts to find out why not.  In early
versions of 3.3, command-delete was no longer bound to DeleteEndOfFile so I
added it to my user startup (and I never checked to see if they fixed it
:-).

Scott Lindsey <wombat@claris.com>
From: brownlow@informix.com (Keith Brownlow)
Newsgroups: comp.sys.mac.programmer
Subject: c++ compilers
Keywords: c++ compilers
Date: 10 Nov 92 23:29:29 GMT
Organization: Informix Software, Inc.

I am looking for a 'true' c++ compiler for the mac, I have Think C 5.0 TCL 
library, but want to use a real c++ compiler.  Does MPW fit this description ?
Or are there any other c++ compilers for the mac that anyone else is aware of.
It does not have to interface to the toolbox, running my executable in a Think
C console-like shell would do fine, this is only for learning c++.  The cheaper
the better (shareware?).

Thanks in advance,
Keith Brownlow.
Newsgroups: comp.sys.mac.programmer