HDTenEightyP/NetNews huggingface dataset:
From: burglin@opal.mgh.harvard.edu (Thomas Burglin)
Newsgroups: comp.sys.mac.programmer
Subject: Appmaker samples, custom control
Keywords: Appmaker, custon control
Date: 20 Nov 92 06:17:00 GMT
Organization: Molecular Biology, Massachusetts General Hospital, Boston
News-Software: VAX/VMS VNEWS 1.41

Hi,
I was wondering if anybody out there has some more examples code
for interfaces generated by Appmaker, with annotations where 
application specific code was inserted to make the program funtional.
Are there by any chance internet sites, or BBSs that have a section
dedicated to Appmaker stuff?  
In particular, it is possible to extend the functionality of Appmaker,
so I was wondering if there are extension moduls available somewhere.
What I am particularly looking for would be a custom control that
lets you set a number (similar to the way you set the time in the
general control panel) such that you have a edit box with a number
and two arrows (up and down) such that when you click on the arrows
the number will be incremented or decremented.
The picture buttons and scroll bars that are placed in
the middle of the window do not have automatic repetion.
But the Trackcontrol that is called by both the scroll bar and
the picture button routine allows passing of a function that
will allow automatic repetition. And I did find the automatic
repetion for the window scroll bars, and pasted it into
the one for the scroll bars that were placed in the middle
of the screen, thus managing to make them autorepeat scrolling.
Now I just want a routine that rather than moving a thumb box,
increases or decreases a number in a box.
Also, can I somewhere set the minimal size of a window?
At the moment, if you have a palette in the main window,
you can shrink it so much that part of the pallette is covered up.
Or alternatively, 
how can you put floating palettes in Appmaker generated code?
Thanks,
Thomas
burglin@frodo.mgh.harvard.edu
From: sdk@cci632.cci.com (Stephen Knight)
Subject: Re: MPW C++ based on AT&T C++ Release 3.0 ?
Summary: No such animal from Apple
Organization: [Computer Consoles, Inc., Rochester, NY
Date: Tue, 17 Nov 1992 13:58:07 GMT

In article <1992Nov16.165326@disuns2.epfl.ch> vautrave@disuns2.epfl.ch (Pieric Vautravers) writes:
>I know (APDA august 92) that MPW C++ 3.2 is based on the AT&T CFront 2.?.
>But I'm interested to know if there is a version of C++ based on the new language definition (Release 3.0).
>Does anybody know if there is ? If not, how long do I have to wait to buy such a version ?
>
  According to Apple, at the Developers Conference last May, you'll have
a long wait.  At the time, they stated that the next version of the compiler
would be Lucid's C++ compiler, which would be feature compatible with the
current C++.  (They're going to the Lucid compiler because of its 
"multi-platform" capabilities).

Cheers
steve knight
sdk@cci.com
Newsgroups: comp.sys.mac.programmer
From: ksand@apple.com (Kent Sandvik )
Subject: Re: MPW Linker help needed
Date: Sun, 22 Nov 1992 07:49:22 GMT
Organization: Apple
Followup-To: comp.sys.mac.programmer

In article <1992Nov17.090523.376@unimur.um.es>, humberto@unimur.um.es
(Humberto Martinez) wrote:
> 
> Hello:
> 	I'm trying to compile flex and bison, from GNU, in a Macintosh LC. I
> can't generate an executable file from the objects ones. My linker gets out
> of order, and says:
> 
> 	Link: Error: Jump Table offset into code segment is greater
> than 32K (Error 50) .......

Sometimes I wonder how many times I have answered this question.
It's even now documented in many places (MPW documentation, Tech
Notes). I guess one problem is that the Segmentation TN is 
brand new, and that the MPW documentation is not out through 
the door yet.

Anyway, you are seeing a typical case where some of your jump
table entries are pointing beyond the magical 16-bit offset.

The known tricks are to:
a) Move object files around so that things called from main
are quite near the Runtime.o file
b) Even better, use the Link -srtseg, as in:
   -srtsg all|segName      # place items referenced through Jump Table low
in code resource.

This will tell the Link too to place JT entries up to the top with 
branches <32k.
c) Use the -br branch island Link flag that will create branch
islands for >32k branches
d) Use model far support that fixes all problems (32k segments
including the jump tables and branches).

Cheers,
Kent
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
Newsgroups: comp.sys.mac.programmer
From: ajcurtis@iat.holonet.net (Allen J. Curtis)
Subject: Heap Fixer
Organization: HoloNet (BBS: 510-704-1058)
Date: Tue, 17 Nov 1992 14:35:54 GMT


Does anyone know where I may be a hold of a copy of Heap Fixer?  This was
a public domain software package at one time.  I do not know if it is still
available or not.

Thanx....
Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: Code resources:  THINK vs. MPW
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Distribution: usa
Date: Tue, 17 Nov 1992 21:55:25 GMT

In article <1992Nov16.221838.29508@crd.ge.com>, sarachanbd@crd.ge.com (B.
D. Sarachan) wrote:
> 
> Code resources created using THINK C can have multiple segments, and
> can include global and static data using the RememberA0(), SetupA4(),
> and RestoreA4() functions?
> 
> Do MPW-created code resources have similar capability, or are they limited
> to 32K with no global/static data?

MPW does not provide support for those features, though they can be added.
See Technote "Stand-alone code, ad nauseum" (formerly #256) or the article
in "develop," issue #12.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to change the font used by ListMgr?
Date: 16 Nov 92 13:12:32 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

In article <1992Nov13.222210.4875@sunspot.noao.edu>,
bbbehr@sunspot.noao.edu (Bradford B. Behr) wrote:
> 
> I am learning to program the Mac by the seat of my pants (i.e. without
> Inside Macintosh, using only the Inside Mac DA, the Think C example
> programs, and a lot of trial and error) and have been doing OK until I
> wanted to change the display font used by the List Manager routines to
> something other than Chicago (to a font I designed, if it makes any
> difference).

The List Manager uses the font already set for the window's grafport.  This
code sets Monaco 9, Plain face:

SetPort ( ... windRec.port goes here... );  /* set this as the grafPort */
TextFont(monaco);  /* choose the font... */
TextFace(NIL);  /* ... style, and.. */
TextSize(9);  /* ... size */


> no ObjOriented or Class Libraries action, just vanilla C.

I posted a sample application of this type at sumex-aim and umich archives.
 List manager is used in the Help routines.  It's called Chassis 4.3.1. 
You may want to take a look at it.  It was written with THINK C 5.0.x; I've
never tried to compile it with 4.0.

You can also ftp it from here, ftp.gte.com.  Use directory /pub/chuck.

> I am on top of a mountain for the next few months, with nary a Mac
> reference in sight.

I'll bet you could get the mail order places to deliver.  There are many
good ones.  The number of one of them is 800-800-4444 (MacConnection). 
MacConnection uses photos of actual customers in unusual locations for
their ads.  Considering where you are, you might attract their interest if
you want to be in one.

> 
> Mucho danke,
> Brad

Saaaay!  Bilingual dude.  Mucho gut, homey!


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
Subject: Pointers to function and UnloadSeg
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Mon, 23 Nov 1992 00:26:29 GMT
Organization: University of Auckland, New Zealand.

What steps should I take to ensure that when I use pointers to functions
in CODE segments that I (may) unload later?  This is in Think C 5.

Any ideas?
-------------------------------------------------------
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: ksand@apple.com (Kent Sandvik )
Subject: Re: Emacs-like editor for MPW 3.2
Date: Sun, 22 Nov 1992 07:40:13 GMT
Organization: Apple
Followup-To: comp.sys.mac.programmer

In article <joswig-201192120352@kimac9.informatik.uni-hamburg.de>,
joswig@informatik.uni-hamburg.de (Rainer Joswig) wrote:
> Maybe you should use Macintosh Common Lisp 2.0 from
> Apple. It has an emacs style editor written and programmable
> in Common Lisp.

It even has a GNU:ish name, FRED (Fred Resembles Emacs Deliberately) :-).
Kent

PS: If someone wondered what GNU stands for, it's "GNU is Not Unix".

-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
From: kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson)
Subject: Re: Invalidating the Entire Screen?
Newsgroups: comp.sys.mac.programmer
Date: 19 Nov 92 23:50:22 GMT

In comp.sys.mac.programmer you write:

>Is there an easy one call should do it all?

Here is code that I saved, because it is the only code to date that
Ben Haller has posted to the net.  I believe it does what
you need...

>void InvalScreen()
>{
>        DrawMenuBar();
>        PaintOne(0L,GrayRgn);
>        PaintBehind(WindowList,GrayRgn);
>}

After posting this code, Ben stated:

>I believe this is the only code I have ever posted that is copied
>directly from Solarian II, so all you people who have been slavering
>over the (imagined) prospect of getting Sol source out of my tight
>little fists, rejoice!

Hope this helps,

Ken Anderson
--
--------------------------------------------------------------------------------
Ken Anderson                           |  "I'd much rather live in perfection,
U.C. Irvine                            |   than deal with reality." -- Kenbod
--------------------------------------------------------------------------------
Happy! Happy! Happy! Joy! Joy! Joy!    |  Practice random kindness and
                         -- Stimpy     |  senseless acts of beauty.
                                       |  -- Anne Herbert
--------------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: David_B._Lamkins@fourd.com
Organization: 4th Dimension BBS
Date: Wed, 18 Nov 1992 11:19:29 EST
Subject: Re: Deadman programming - how to reset?

Chuck Pliske wrote:

> In my old hypercharged SE, 
> the "reset" instruction works just fine and I now have increased 
> reliability in my unattended system.  However, in the IIfx (7.1) the 
> reset instruction blanks the screen but does not otherwise reset the 
> computer.  Any suggestions would be appreciated.

Take a look at the ShutdownManager in IM V, pg. 585. You'd call the _Shutdown
trap with a sdRestart selector (=2) passed on the stack as an integer.

Dave
********************************************************************
System: fourd.com                                Phone: 617-494-0565
Cute quote:  Being a computer means never having to say you're sorry
********************************************************************
From: bfoley@obelisk.berkeley.edu (Brian Foley)
Newsgroups: comp.sys.mac.programmer
Subject: Hilite a Rect
Date: 17 Nov 1992 05:16:17 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: obelisk.berkeley.edu
Keywords: color, hilite, novice


How do you hilite a rect using the current hilite color?
I am using InvertRect() now, but it would be "better" to do it
in color.  Inside Mac is rather vague on the subject I tried using 

BitClr ((Ptr) HiliteMode, pHiliteBit);  /* IM V-61 */

but that gave me a bus error.

brian foley

bfoley@garnet.berkeley.edu
Science and Mathematics Education
University of California, Berkeley
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Where do you get Macsbug and Discipline?
Organization: University of Delaware
Date: Mon, 16 Nov 1992 23:51:01 GMT

Can anyone tell me where Macsbug and Discipline can be ftp'd from?  If
they're on ftp.apple.com, which directories are they in?

Thank you.
From: dswartz@sw.stratus.com (Dan Swartzendruber)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Another THINK C 5.0.3 bug?
Date: 18 Nov 92 19:36:35 GMT
Organization: Stratus Computer, Inc.
NNTP-Posting-Host: redondo.sw.stratus.com

In article <1992Nov9.172844.11567@tdb.uu.se>, mikaelk@tdb.uu.se (Mikael Kristoffersson) writes:
> Chewbacca (simsh@crockett1a.its.rpi.edu) wrote:

[deleted]

> If you change size of integers, you will have to re-compile the ANSI library
> too. The library delivered with THINK-C is compiled with 16-bit ints, and
> will not work with code compiled with the "4-byte ints" (32-bit ints) option 
> on. All the source-code is supplied, so it's no big deal, but it has to be done.

No kidding.  I found the same thing out myself.  It would have been nice if
the manual had indicated this somehow.

> 
> /Mikael Kristoffersson
> 
> ********************************************************************************
> English is not my native language.                     E-mail: mikaelk@tdb.uu.se

-- 

#include <std_disclaimer.h>

Dan S.
Newsgroups: comp.sys.mac.programmer
From: babinet@Xenon.Stanford.EDU (Eric Babinet)
Subject: Installing onto same volume as Installer
Summary: Question on installing where source and target volumes are the same?
Keywords: installer installation mac
Organization: CS Department, Stanford University, California, USA
Distribution: comp
Date: 18 Nov 92 16:28:19 GMT

After reading the documentation and doing some experimentation, it
doesn't seem possible to use the Apple Installer to install files to the
same disk as the one on which the Installer is located.

The reason I need to do this is as follows.  The user will receive a new 
version of our application through a nightly modem link.  These files will
be sitting in an "In Box" on the user's hard disk, and I would like
to be able to have these files moved into the correct place on the hard
disk, deleting previous versions.

As far as I can see, the Apple Installer will not let me do this.  I
find this hard to believe, and I was wondering if anyone had found
a way to work around this limitation?  If not, are there any other
free or licenseable installer programs which would do the job?  Any help
would be appreciated as I'd like to avoid having to write my own 
installer program.

Eric Babinet
babinet@cs.stanford.edu

Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #215 Available
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Fri, 20 Nov 1992 05:02:00 GMT


C.S.M.P. Digest             Thu, 19 Nov 92       Volume 1 : Issue 215

Today's Topics:

	Event Manager Too Slow or izzit just me?
	Dynamic Change of Mouse Tracking Speed
	Anyone use SoftPolish?
	DisposeHandle vs. ReleaseResource
	Forcing TextEdit to set scrpAscent and scrpHeight
	Forcing Sys6 on a Q700?



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.  You can post articles to any newsgroup by
mailing your article to newsgroup@ucbvax.berkeley.edu.  So, to post an
article to comp.sys.mac.programmer, you mail it to
comp-sys-mac-programmer@ucbvax.berkeley.edu.  Note the '-' instead of '.'
in the newsgroup name.

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                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
Subject: Re: is there a way to find out who is using an app ?
From: Manuel Veloso <veloso@husc9.harvard.edu>
Date: 17 Nov 92 09:10:16 EST
Distribution: world
Organization: Harvard University
X-UserAgent: Nuntius v1.1.1d11
X-XXMessage-ID: <A72E687C65011817@humcr3.harvard.edu>
X-XXDate: Tue, 17 Nov 92 14:14:36 GMT

In article <1e950uINN3lb@usenet.INS.CWRU.Edu> Jerry Sy, jxs18@po.CWRU.Edu
writes:
>is there a way to determine (programmatically or otherwise) who is
>using an app on the server, short of going to each and every one
>of the 50 users who are currently logged in ?
>
>thanks
>jerry

What you could do, although it would be a lot of work, is install a
ServerEvent handler on the server & watch for FPOpenFork. When you get
it, check to see what file it is & who's opening it...if it's an
application, you've probably got a launch...

Manny
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #214 Available
Date: 16 Nov 92 12:33:14 GMT
Article-I.D.: cs.1992Nov16.123314.7080
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Mon, 16 Nov 92       Volume 1 : Issue 214

Today's Topics:

	INIT writing 101 (long) [was: Re: little INIT code resource problem]
	scanf equivalent calls that does not use global variables?
	vSynchWait and PowerBook I/O
	Option key madness
	UnloadSeg and pointers to functions



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                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
From: time@ice.com (Tim Endres)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Problem isolated but not understood (THINK Pascal standalone crash)
Date: Thu, 19 Nov 92 12:14:27 EST
Organization: ICE Engineering, Inc.
Reply-To: time@ice.com (Tim Endres)
X-Mailer: uAccess - Macintosh Release: 1.6v2


In article <Bxy3q0.231@news.udel.edu> (comp.sys.mac.programmer), kurisuto@chopin.udel.edu (Sean J. Crist) writes:
> SetHandleSize(Handle(DestinationHandle), GetHandleSize
>     (Handle(SourceHandle))); {Make the two handles the same size}

*** Where is your call to MemError() to be sure the SetHandleSize
was a success?!

> BlockMove(Pointer(SourceHandle^), Pointer(DestinationHandle^),
>     GetHandleSize(Handle(SourceHandle))); {Copy the contents 
>     of one handle into the other}

Why aren't you using HandToHand() for this?!

ThinkC's environment may be adding extra memory you don't get in your
stand alone. This may cause SetHandleSize() to fail, which ould certainly
explain the behaviour you see.


tim endres - time@ice.com

Register your company in the Internet Business Pages!
 ...send email to "ibp-info@msen.com" for details...

USENET - a slow moving self parody... ph