HDTenEightyP/NetNews huggingface dataset:
From: rjc@monet.ccs.itd.umich.edu (Robert John Churchill)
Subject: Re: MACSBUG Dcmd for "Shut Down"
Followup-To: comp.sys.mac.programmer
Organization: University of Michigan
Date: Fri, 2 Oct 1992 13:17:02 GMT

In article <1992Oct2.104006.1@cc.curtin.edu.au>, crod@cc.curtin.edu.au
(Scott Kevill) wrote:

> If you didn't have a DCMD, you could always use the trap call
> (like the ExitToShell used in the old days of ROM mini-debuggers)
> as I do.

> In article <1992Sep28.201954.20830@mail.cornell.edu>, js17@cornell.edu (Joel Sumner) writes:
> > Has anyone written a "Shut Down" or "Power Off" DCMD for MacsBug?

Go into Macsbug and type  "G Power"   :)
Newsgroups: comp.sys.mac.programmer
From: howard@netcom.com (Howard Berkey)
Subject: Re: Think C bug ? (updated)
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 6 Oct 1992 17:33:48 GMT

In article <Meessen-061092111325@130.104.58.10> Meessen@slig.ucl.ac.be (Christophe Meessen) writes:
>Teaching C to a friend I fall on the following problem:
>
>If I compile the following program, everything is right:
>
>main() {
>   printf( "Hello world !" );
>}
>
>
>The following program worked also fine :
>
>main() {
>   short i = 3;
>
>   printf( "a number : %d ! ", i );
>}
>
>Ok, nothing new here !
>
>But now, when I write the following program the compilation stops and tell
>me that there is an error :
>
>main() {
>   short i = 3;
>
>   printf( "a number : %d ! \n", i );
>
>   printf( "Hello world !" );  <== Wrong number of parameters here !!!!
>}
>
>It was unexpected and made a bad impression on my friend.
>
>The problem seems related to printf signature (or prototype).
>
>If I change the "wrong" line to 
>
>   printf( "Hello world !", i );
>
>Every thing works fine !!
>
>Very strange, isn't it ?
>
>Is this standard C or Think C bug ?
>Any comment on that ?
>
>Think C used is 5.0.x (I dont remember last number)
>
>Bien cordialement,
>
>                           Christophe MEESSEN


Sounds like you forgot to #include <stdio.h>.  When the compiler read the
first printf, it inferred the prototype as having 2 args.

-Howard

-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Howard Berkey						howard@netcom.com
Do what keeps thou from wilting shall be the loophole in the law.
From: rc05@gte.com (Ramesh Chandak)
Newsgroups: comp.sys.mac.programmer
Subject: PICT images should remain on the screens ? How can I do it ?
Date: 6 Oct 92 05:50:35 GMT
Organization: GTE Laboratories Incorporated, Waltham MA

Well, I have been using AppMaker / THINK C to write this application.
And I pasted few PICT images onto the window.  When AppMaker generated the
code for the application, it uses DrawPicture.  This creates the effect of 
drawing the PICT image at runtime.  Ideally, I would like the Picture
to just show up when I fire up the application; not draw it at runtime.

Should I use CopyBits ?  If I use CopyBits, where do I store the image first
so that I can Copy it onto the window at runtime ?  

Is there any other way to implement this ?  Please email your responses to
Ramesh at rc05@gte.com.  Thanx.

- Ramesh
Newsgroups: comp.sys.mac.programmer
From: aland@chaos.cs.brandeis.edu (Alan D.)
Subject: Re: Text File Creators
Reply-To: aland@cs.brandeis.edu
Organization: As little as possible
Date: Sun, 4 Oct 1992 22:11:16 GMT

mspace@netcom.com (Brian Hall) writes:

>I have the following list of applications that can be selected to open
>text files created by an app I am working on.  I would like to know some
>other app/creator pairs I could/should add.  Also feel free to correct me -
>I guessed at MacWrite and MWII, and plain don't know the one for Nisus.

If you are going to run under System 7, you can just put in a type
'TEXT' and creator '****'...

	-=Alan
From: sc5h+@andrew.cmu.edu (Shawn James Cokus)
Newsgroups: comp.sys.mac.programmer
Subject: Re: External clocking of Serial Ports?
Date: 29 Sep 92 09:38:43 GMT
Article-I.D.: andrew.kem9GXC00Uh_44JoBk
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA


From brady@cs.tcd.ie:
>If you are clocking the serial ports externally for increased speed, do you
>make use of the same Serial Driver calls? Obviously you have to tell the
>port to use an external clock, but apart from that, is anything special? Is
>it still asynchronous?

See Macintosh Technical Note #286: The Serial General-Purpose Input
(GPi); this note discusses external clocking of the serial ports and use
of GPi as an additional input.  There is a semi-documented trap,
_HwPriv, with which the clock can be selected as internal or external. 
However, there are lots of problems, especially if you have to deal with
a Mac IIfx or System Software pre-6.0.5.  You should be able to use the
Serial Driver when using an external clock, but be warned of the
possibility of the Serial Driver reconfiguring the baud rate,
etc...--and hence the clock--on certain calls.

--Shawn.


-- Shawn Cokus
--   sc5h+@andrew.cmu.edu
--   Carnegie-Mellon University, Pittsburgh, PA
--   (Witty phrase temporarily permanently out of order.)
Newsgroups: comp.sys.mac.programmer
From: u8704754@cc.uow.edu.au (keith marshall)
Subject: Can somebody fix Next wdef?
Summary: Next wdef has potential but looks crummy on a color Mac.
Keywords: wdef windows
Organization: University Of Wollongong
Date: Sun, 4 Oct 92 14:45:37 GMT

Most popular archive sites have a system extention called either Next-style
-windows or wdefII. This wdef was recently hacked by a concerned citizen
( just loved the look of the windows with that init!). Anyway, I'm not a 
programmer, and although the hacker made the init sys-7 compatible, they 
also included these horrible bit-mapped icons in the window's 3
 active corners. However, they also included the source code. Is there 
anybody willing to fix this so that it looks fine on a color monitor? 
Even better, if possible, could somebody make Next wdef access those icons
in the 3 active corners as color icon resources so that they can be
 customized with resEdit? And while you're at it, can one of those
programmers reading this who suffer from NeXt envy also modify the scroll2
init so that it's sys7 compatible, works in color and all its icon resources
 are easily editable with resedit. Come on, there must be somebody!
Newsgroups: comp.sys.mac.programmer
From: oster@well.sf.ca.us (David Phillip Oster)
Subject: Re: Wanted: Code fragment using FindFolder() to get prefs. folder
Organization: Whole Earth 'Lectronic Link
Date: Thu, 1 Oct 1992 16:20:22 GMT

This is a fragment from one of my products.:

OSErr InitialPreferencesLookUp(){
	Str255	s;
	LongInt	ff;
	OSErr	val;
	Integer prefVRef;
	LongInt	prefDirId;
	SFReply	reply;

/* put the name of the preferences file in the reply record.
 */
	GetIndString(reply.fName, kMainStrs, kDefaultS);
	if(noErr == Gestalt(gestaltFindFolderAttr, &ff) && (ff & (1L << gestaltFindFolderPresent))){
		val = FindFolder(kOnSystemDisk, kPreferencesFolderType, kDontCreateFolder,
			&prefVRef, &prefDirId);

		if(noErr == val){ val = FSOpenWD(prefVRef, prefDirId, 'ERIC', &reply.vRefNum); }
		if(noErr == val){ val = OpenIt(&reply); }
/* do not close this working directory! */
	}else{
/* initialize the Str255 to "\p:Preferences:" note colons. */
		GetIndString(s, kMainStrs, kPrefDirS);
		Concat(s, reply.fName);		/* pin tail on name */
		StrMove(s, reply.fName);	/* move result back to reply */
		reply.vRefNum = world.sysVRefNum;
		val = OpenIt(&reply);
	}
	return val;
}
From: erh0362@tesla.njit.edu (Elliotte Rusty Harold)
Newsgroups: comp.sys.mac.programmer
Subject: Dat structures suitable for editing text
Date: 4 Oct 92 22:11:36 GMT
Organization: New Jersey Institute of Technology


	Sometime in the last several months there was a discussion in this 
newsgroup about data structures suitable for text editors and word processors.  
Particularly I recall mention being made of a structure called "chunks."  I 
also recall a number of people saying that one should be prepared to throw away 
one's first attempt at such a project (although perhaps with proper 
object-oriented techniques my first attempt won't be a total loss.)  I also 
remember (and have seen more recently) mention made of some packages from Rich 
Siegel and Datapak that are unfortunately beyond my budget (i.e. $0) at the 
moment.  In any case the requirements for my project (a text editor designed 
for composing and formatting messages for eventual display on monospaced 
systems) are strange enough that I can't rely on them filling my needs.  In 
fact, even without the 32K limit and with substantial replacment of the various 
TextEdit hooks like nWidthHook and EOL, I still don't think  TextEdit could 
really do the job for me.  

	Finally I remember that several people claimed the appropriate data 
structures were typically covered in the second semester of a data structures 
class.  A book or two might even have been mentioned.  Unfortunately my 
university doesn't offer a second course in data structures and the library 
here doesn't seem to have any books for such a course.  If anybody could direct 
me to such a book by Author and Title, I would much appreciate it.  I could at 
least then request it through inter-library loan.  Attempts to find the log of 
the conversations about this topic by perusing back issues of the csmp digest 
have unfortunately been unsucessful.

Elliotte Rusty Harold		Department of Mathematics
elharo@m.njit.edu		New Jersey Institute of Technology
erh0362@tesla.njit.edu		Newark, NJ 07102
Newsgroups: comp.sys.mac.programmer
From: bwilliam@iat.holonet.net (Bill Williams)
Subject: Re: ThinkC 5.0.3?
Organization: HoloNet (BBS: 510-704-1058)
Date: Tue, 29 Sep 1992 06:16:44 GMT

The hundreds of differences between THINK 5.03 and 5.02 are all bug fixes
and some of them make only one think mainly clear....

THINK now compiles code slightly larger and slower than before (on thre of
three programs of mine)


Bill Williams
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Can anyone help me with some really simple tasks?????
Date: 30 Sep 92 16:01:14 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

In article <1992Sep28.020158.9718@dunix.drake.edu>, kjt001@dunix.drake.edu
(Kevin Tieskoetter) wrote:
> 
> Ok, I'm relatively new to programming on the macintosh (well, very new)
> and I need help on doing some simple tasks on the screen.
> 
> I am using Think C 4.0.5 and system 6.0.7
> 
[... description of what he wants to do in his app, left out ...]
>
> Can anyone tell me how to do all this?  Source code would be great, but
> so would a basic explaination.  I am using OOPs.
> 
> I'm afraid I do need a rather low-level explaination - don't assume I
> know too much.  This task is really getting frustrating.
> 

Kevin,
   Get started on the right foot and get THINK C release 5.  System 6.0.7
is okay for a "very new" programmer because you probably won't have need
for a while for some of the System 7 features.
   There is a TREMENDOUS amount of learning that has to be done up front,
way before you are ready to do the tasks you described in your posting. 
You really need to be able to get a shell program to work, and understand
it, before jumping into the more "useful" stuff (that is, the things you
actually want to do).
   I do have a shell application called "Chassis" which I will be happy to
send to a postal address.  It is derived from an eight session Mac
programming course I wrote.  It does, though, need THINK C Release 5 to
compile.  It does not use OOP, but it is highly structured.

> 
> So, if you can help me, I will be immensely grateful...i may even
> worship you for a few hours...  :)
> 

Very kind.  I've never been worshiped before! :)

Chuck Hoffman
chuck@gte.com
GTE Laboratories, Waltham, Massachusetts, USA
(617) 466-2131
=====================================
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: david@oahu.cs.ucla.edu (David Dantowitz)
Subject: Re: HELP - device drivers for tape drives
Organization: UCLA, Computer Science Department
Date: Sun, 4 Oct 92 12:13:35 GMT


Bill,

For the most part you're on your own to write a driver, or if you're
just doing backup, you may find that the driver built into Retrospect
or Norton Backup may work just fine.  Then, you can skip writing the
software!

I had a lot of trouble finding someone to sell me a driver that I
could link into my code, so I ended up writing my own.  Luckily, the
Mac's SCSI manager makes this a breeze.

David
-- 
David Dantowitz
david@cs.ucla.edu

Singing Barbershop when I'm not doing parallel simulation
From: tb0o+@andrew.cmu.edu (Todd Keenan Bowman)
Newsgroups: comp.sys.mac.programmer
Subject: Beginner Mac Programmer Question
Date: 29 Sep 92 11:57:37 GMT
Article-I.D.: andrew.Iem=Ila00WB4JJTYVa
Organization: Software Engineering Institute, Carnegie Mellon, Pittsburgh, PA

I'm interested in learning how to program for the Macintosh. I was hoping that
people could give me some pointers from the following few questions?

o What is a good programming language to use for the Macintosh? I would like
to start programming games such as adventures of Role-Playing/Strategy games
and then proceed from there.

o What is a good instruction book for learning mac-specific programming? I've
seen the "Macintosh Revealed" series.  Is this any good?

o Are there any good beginner books for learning pascal? Basically I would like
a book that starts at square one and proceeds from there. I would also like it
to have many examples and exercises.

Please respond by e-mail.
All suggestion will be greatly appreciated.

todd
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Q: MacApp3 -Debug/SourceBug crashes?
Date: 28 Sep 92 00:05:36 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple

In article <sold.113.717446756@kit.uni-kl.de>, sold@kit.uni-kl.de
(Christoph Sold) wrote:
> Unfortunately, someone played a joke on me. This disfunct person thought it 
> is funny to replace the 'vers' resources in an old beta version of SourceBug 
> with the ones from SourceBug 1.0.1 and copy this bastard to both my Tools 
> folder and my backup volume.

What did I say, I needed a magic eight ball to solve that one :-).

Cheers,
Kent
	Faith is often the boast of the man who is too lazy to	investigate. -F.M.
Knowles
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
Newsgroups: comp.sys.mac.programmer
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C wish list
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Mon, 28 Sep 1992 22:49:32 GMT
Distribution: comp
Organization: University of Auckland, New Zealand.

rmf@chopin.cs.columbia.edu (Robert M. Fuhrer) writes:

>Symantec, are you listening? I've been using Think C (versions 4 and 5) for
>some time now, and have come up with the following list of suggested changes
>and enhancements to the system:

I will add my $0.02 to this as well with:

* Someway to have pre-compiled headers automatically generated from a set of
	[.h] files, and not just for one precompiled header file per project.

My scheme with precompiled headers is to precompile the Macintosh #includes
into one file (called StdHeaders, say) and then precompile all the project
specific headers (~5000 lines) into another file (Headers) which is then
included in the source files.   [But it gets worse as I do this TWICE
one for a small set of MacIncludes and again for a fuller set, with things
like Gestalt included.]

An MPW like #pragma dump scheme could be quite a good way to implement this.


* Having a command in the editor to generate marks for functions/structs
	in the file (again, like MPW's CMarker :)) 
	Or having the mark format documented so someone else could do this.

I am sure there was more on my wish list, but alas the (um what was it
called now -- starts with, um, M -- yes) memory is going at this time 
of the year.

Hope this reaches someone with influence....
-------------------------------------------------------
And with that remark, folks, the case of the Crown vs
Russell Street (russells@ccu1.aukuni.ac.nz) was proven.

Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #176 Available
Date: 5 Oct 92 11:17:05 GMT
Article-I.D.: cs.1992Oct5.111705.11861
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Mon, 05 Oct 92       Volume 1 : Issue 176

Today's Topics:

	Stymied++!  VBL Cursor Watching ideas?
	Vertical Text drawing?
	Spreadsheet like view
	Loading Resources into MF Temp Mem.
	updating finder windows
	HOW IS QUICKBASIC FOR THE MAC?
	Ah, but I am clever in how I patch, no?



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #175 Available
Date: 4 Oct 92 13:03:32 GMT
Article-I.D.: cs.1992Oct4.130332.3089
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Sun, 04 Oct 92       Volume 1 : Issue 175

Today's Topics:

	Changing Command-Key for a menu item
	Using GetNextEvent or WaitNextEvent...
	Gestalt glue is redundant!



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
From: jb6o+@andrew.cmu.edu (Jason Andrew Barshay)
Newsgroups: comp.sys.mac.programmer
Subject: CASE tools
Date: 30 Sep 92 05:24:14 GMT
Article-I.D.: andrew.semOdye00XQU8E11pU
Organization: Robotics Institute, Carnegie Mellon, Pittsburgh, PA


I am interested in finding any information on CASE tools for the
Macintosh.  If you know of any products, have experience with them, have
the address of vendors, or anything else, I would appreciate the
information you could give me.  Please send your repsonses (or at least
CC) them to this account.

Thanks,
Jason
Newsgroups: comp.sys.mac.programmer
From: kdlee@milli.cs.umn.edu (Kevin D. Lee)
Subject: Re: How do you use CDLOGDialog
Keywords: Think c
Organization: University of Minnesota, Minneapolis, CSci dept.
Date: Sun, 4 Oct 1992 16:17:35 GMT

In article <jlawrie.718192106@sfu.ca> jlawrie@fraser.sfu.ca (John William Lawrie) writes:
>Does anybody know how to use radio buttons correctly with the CDLOGDialog class
>with think c?  I have figured out how to get them working as a dummy interface,
>but i do not know how to check to see which button is on because the IDLOGDialog
>functing does not return anything.  How do you access the cRadioGroupPane that
>encloses the radio button?
>
>Any help would be greatly appreciated.
>
>John
>
 try something like this:
{
	short which;
	
	CRadioGroupPane	*theRadioGroup;
	
	theRadioGroup = (CRadioGroupPane*) itsWindow->FindViewByID( kRadioGroupID);
	
	which = theRadioGroup->GetStationID();
	
}

Then check which against the id (there id numbers from the resource file
) to find which button has been hit.

Kevin Lee