HDTenEightyP/NetNews huggingface dataset:
From: stanger@otago.ac.nz (Nigel Stanger)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Screen Saver Code?
Date: 22 Jan 93 13:39:43 +1300
Organization: University of Otago, Dunedin, New Zealand

cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole) writes:
[...]
> As for zapping out access to the Finder and the application menu, you really 
> don't get that sort of power from an application. 

Actually, it's fairly easy to program this into an application --
I did it last week. Hiding the menu bar is a bit dubious,
involving low-memory globals, but once you've done that, it's
easy to stop the user switching to the Finder -- just create a
window slightly larger than the GrayRgn (so it covers all
monitors) and splat it on the screen. With the menu bar gone, the
user can't do much of anything >:> Oh, except a forced quit of
course, but even _I'm_ not crazy enough to try and patch that
out...

----------------------------------------------------------------------
Nigel Stanger,                  Internet: stanger@otago.ac.nz
University of Otago,            Phone: +64 3 479-8179
Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
"Hey, royal ugly dudes!" -- Bill & Ted's Excellent Adventure
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@feffe.nada.kth.se (Jon Wtte)
Subject: Re: Sound Manager Question
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Thu, 28 Jan 1993 17:17:57 GMT

In <11468@baird.cs.strath.ac.uk> cr@cs.strath.ac.uk (Chris Reid) writes:

>Is it possible to set the sample rate to, say, 11k samp/sec,
>and the compression to 6:1 (MAC6) on the built-in sound 
>input device? I've tried to 

Nope. The compression routines work only for 22kHz sampling
frequency (and believe me, you wouldn't like the results of
an 11 kHz signal compressed by MACE 6:1)

Cheers,

						/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

 -- I don't fear death, it's dying that scares me.
Newsgroups: comp.sys.mac.programmer
From: Brad Koehn <koehn@macc.wisc.edu>
Subject: Re: Is AppMaker OK?
X-Xxdate: Thu, 28 Jan 93 20:37:50 GMT
Organization: Data Transformations, Inc.
X-Useragent: Nuntius v1.1.1d17
Date: Thu, 28 Jan 93 20:38:49 GMT

In article <C1J1JK.H4p@javelin.sim.es.com> Mark Munson,
mmunson@animal.es.com writes:
>I'm looking to perform some Mac programming using Think C.  I've been
>considering the product AppMaker 1.5 from Bowers Development.  Does
>anyone have any good or bad comments about this type of development
>aid?

I use AppMaker for my development, and I give it rave reviews. Yes, there
are still some rough edges, but it drastically cuts my interface design
time by creating TCL code that I can easily override to customize to my
liking.

Also, version 2 is in the works and is going to smooth out those rough
edges I mentioned.

koehn@macc.wisc.edu
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Dave_Burnett@bmug.org
Organization: BMUG, Inc.
Date: Tue, 26 Jan 1993 10:46:54 PST
Subject: Re: Calling external code resources - how?

In article <1993Jan25.005216.12749@kth.se> (comp.sys.mac.programmer),
d88-jwa@dront.nada.kth.se (Jon W%tte) writes:
> >Where can I find information on how to do this? The Segment Manager
> >chapter of IM gives no clues on this. Anyone has got some sample code
> >on this?

In develop 10 there was an application with source that implemented plug-ins. 
However, the implementation required that plug-ins be pasted into the app's
resource fork instead of reading it from a "plug-ins folder."

**** From Planet BMUG, the FirstClass BBS of BMUG.  The message contained in
**** this posting does not in any way reflect BMUG's official views.

Newsgroups: comp.sys.mac.programmer
From: sokoloff@athena.mit.edu (James T Sokoloff)
Subject: Re: touch & go breakpoints in ThinkC debugger?
Organization: Massachusetts Institute of Technology
Date: Wed, 27 Jan 1993 00:14:24 GMT

In article <1993Jan19.183025.4425@leland.Stanford.EDU> dmcannon@leland.Stanford.EDU (David M. Cannon) writes:
>I don't see any clear reference to touch & go breakpoints in the
>ThinkC manual debugger section, and I assume that this means that
>you can't do them.  Can anyone confirm or refute this?  If there
>really is no such option, and since I know Think folks monitor
>this forum, let me make it a suggestion for the next release, major
>or minor.
>
>In case it isn't clear what I mean by a touch & go breakpoint: I
>would like to see a breakpoint which stops execution of the program,
>updates the data window in the debugger with the proper information,
>and then continues program execution.  Basically a regular breakpoint
>except that you don't have to hit a key or move & click the mouse to
>hit the 'go' button.  It would be *very* nice to have when tracking the
>state of the program during mouse and keyboard activity, among other
>things, without having to write your own monitoring display.
>
>Thanks,
>
>Dave Cannon
>dmcannon@sunrise.stanford.edu
>Center fro Design Research
>Stanford University

Will using the option key do what you want? (which is documented...)

--Jim Sokoloff
From: mxmora@unix.sri.com (Matthew Xavier Mora)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Copying bitmaps question
Date: 27 Jan 93 19:52:32 GMT
Followup-To: comp.sys.mac.programmer
Organization: SRI International

In article <garry-270193151707@archmac-167.arch.su.edu.au>,
garry@archsci.arch.su.edu.au (Garry Stevens) wrote:
> 
> I am using CopyBits to copy a large-ish bitmap (40K) for use in printing.
> IM says not to copy more than 3K at a time. How do I do this? If I make a
> single CopyBits call, I get junk all over the output (but no error
> message). If I make several calls to CopyBits, specifying only part of the
> bitmap portrect at a time, I get a stack overflow into heap error (I am
> using Think Pascal). 

The 3k limit was fixed long ago. As long as you have enough memory 
for the copy, CopyBits can do it. Double check your CopyBits arguments.

Xavier


--
----------------------------------------------------------------------
Matthew Xavier Mora                                mxmora@unix.sri.com
SRI International                                       (415) 859-5011
----------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: raffuj@rebecca.its.rpi.edu (Jose Raffucci)
Subject: 8 bit graphics help needed...
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Thu, 28 Jan 1993 23:21:59 GMT

I'm writing some routines to read in some pictures, and a couple of
things occurred to me.

The images are 8bit grayscale, and I'm wondering what would be the
fastest way to get them copied to an 8bit gworld.  I was previously
using SetCPixel() since I didn't know what ressolution I was going
to have to deal with, but since now the images will all be 8bit, I'd
like to make it faster.  As of right now, I have all of the data stored
in arrays by rows.  

What is the 'correct' way to convert this to a pixmap, forgetting 
everything about the colortable and palette.  I started playing 
with BlockMove() to copy each row directly to the pixMap->baseAddr
locations, but I was bombing bigtime.  Maybe it was because you're 
not supposed to do this, or whatever.  Yes, I locked my handles.   

Anyways, I can't seem to find any reference on how to do these types
of things anywhere.  IM V & VI don't really explain the differences
between the different resolution modes.  Well, I'm sure someone will
prove me wrong, but I just started looking at this stuff today.

So, will the blockmove to the baseAddr work, or is there a better 
way?

thanks, 
    
-hOz


-- 
Jose Raffucci  raffuj@rpi.edu  (518) 276-4810  "I don't like macs, I just    // 
Lighting Research Center, RPI, Troy, NY 12810   have to program them"      \X/
Newsgroups: comp.sys.mac.programmer
Subject: Re: Is AppMaker OK?
From: riceg@vxi.ug.eds.com
Date: 28 Jan 93 07:10:10 GMT
Organization: M&E (Division of EDS), Cypress CA
Nntp-Posting-User: halloran

In article <C1J1JK.H4p@javelin.sim.es.com>, mmunson@animal.es.com (Mark Munson) writes:
> I'm looking to perform some Mac programming using Think C.  I've been
> considering the product AppMaker 1.5 from Bowers Development.  Does
> anyone have any good or bad comments about this type of development
> aid?

DO IT!  AppMaker is the best bargain around if you value your time.
It wrote over 20,000 lines of code for me on my current App in a matter
of about 4 hours of work (designing the user interface). Code generation
itself took about 8 minutes.

The code that it produces is EXCELLENT quality and easy to understand.

You can't go wrong with this product. Buy it!


Gary Rice
(Happy Owner of AppMaker 1.5 - and all of the preceeding versions)
Newsgroups: comp.sys.mac.programmer
From: urban@yoda.fsl.noaa.gov (Art Urban)
Subject: Code Samples?
Organization: Forecast Systems Lab, NOAA, Boulder CO, USA
Date: Wed, 27 Jan 1993 16:28:50 GMT

Ignoring for the moment, fliker-free dragging "animation", I was wondering
if somebody could post a code example of the typical steps for visually
moving/dragging objects around in a window.

For example, is this close?

Erase old location
Offset to new location
Union the two locations
Erase union 
Draw new location

I would actually prefer source code over pseudocode, as I would like to see
the actual calls required. And, if it matters, I will be implementing this
in TCL, but I can read Pascal just fine if that's all you have.

If you *want* to include GWorld calls and such for fliker-free dragging,
please feel free, as I will eventually desire this. This will also show me
what portions of the window are commonly used in CopyBits, i.e., just the
update rect, or the whole portRect.

Thanx!

-- 
Art Urban 					        urban@yoda.fsl.noaa.gov
===============================================================================
 "Look, he's being attacked by creamy nugget centers."		 	 -Joel
===============================================================================
From: tal691@huxley.anu.edu.au (Tonio Loewald)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Why the Piracy? Here's why...
Date: 21 Jan 93 10:18:41 GMT
Organization: Australian National University
NNTP-Posting-Host: 150.203.2.12

jason@ab20.larc.nasa.gov (Jason Austin) writes:

>-> A better example would be:
>-> Software Piracy is like pirating CDs onto tape.
>-> Software Piracy is like watching TV but ignoring the ads.
>-> Software Piracy is like photocopying a book.
>-> 
>-> I'm not saying these things are right. I'm saying they are morally
>-> comparable because they comprise benefiting from the sweat of someone's
>-> brow while not paying them their dues.
>-> 
>-> Tonio

>	How about the people who don't get the profits from you buying
>their software?  How about the employee that gets dropped, doesn't get
>hired, or doesn't get a raise because of the money the company lost
>from the theft?  If you're telling yourself you're not stealing from
>another person, you're lying to yourself.

Look, musicians get royalties on their CDs, but not on illegal recordings
of their CDs. This is a very important (and simple) point which you seem
not to get. The difference is that money (stolen from a bank) is a scarce
resource. Ie. if I take yours, you can't spend it. Information is not
a scarce resource. If I take yours, you can keep it. 

You want to categorise software piracy as THEFT=EVIL. I'm saying that
is't more like illegal taping than theft. Now you can say ILLEGAL TAPING
=EVIL, but the hundreds of millions of people who do it every day will
be a lot less enthusiastic about giving the police the right to waylay
you without a search warrant to enforce laws against it.

Tonio

-- 
Tonio Loewald | tal691@huxley.anu.edu.au

"Yes!! For the hundred and fiftieth time!
 We're burning in hell!!!" (John Callahan)
Newsgroups: comp.sys.mac.programmer
From: sethi@pokey.cis.udel.edu (Adarshpal S Sethi)
Subject: Reading numbers in TextEdit
Organization: University of Delaware, Newark
Date: Mon, 25 Jan 1993 21:09:50 GMT


I have a Modeless Dialog with a TextEdit field that I want
to use to read in a number. I would like to disable any
character that is not a numeric character from being entered.
Is there a way of doing this? I couldn't see anything in
IM that was helpful. In the worst case, can I get access
to each character that is entered in a TextEdit field, then
check if it is a numeric character, if not delete the
character from the text being entered and continue?
If there is a sample program available somewhere that can
do this, that would be great (I'm using Think C 5.0), but
I would appreciate any help at all, whether it is a general
outline of how to do this, or pointers to specific places in
IM.

Thanks,

Adarsh Sethi
sethi@udel.edu
Newsgroups: comp.sys.mac.programmer
From: mike@uunet!tellab5!odgate (Mike J. Kelly)
Subject: Installer Q: Installing CDEVs on volume w/o System Folder
Organization: Odesta Corporation
Distribution: comp
Date: Thu, 21 Jan 1993 23:42:32 GMT


My product requires a CDEV to run.  I'm a novice at Mac installer
scripts, but took a run at it for our next release.  Things seem
to work pretty well, but I have one oddity that I believe there must
be some way to work around.

Suppose you have two volumes on your machine, one called "system" with 
your system folder and one called "data" without a system folder.  I
got my installer script to refuse to easy install on the "data" volume,
since it includes a CDEV and there is no system folder there.  However,
if you click cusomize in the installer and select the package with the
CDEV (I have two installer packages, one is the CDEV, since the CDEV
is commercially available and so people may already have it, the other is my
application), and select volume "data" it creates a blessed system
folder on the "data" volume!

How do I prevent this?  Ideally, what I'd really like to do (I don't
think this is possible) is have easy install put the CDEV in the
system folder on whatever your boot volume is and put the application
on the volume you selected.  But at least it shouldn't be going around
creating blessed system folders with only a CDEV in them!

-- 
--
Mike Kelly               Odesta Corporation, Northbrook, Illinois, USA
...!clout!odgate!mike    - Until odesta.com is registered.
odgate!mike@clout.uucp   - From the Internet.
Newsgroups: comp.sys.mac.programmer
From: cokenias@netcom.com (Damon Cokenias)
Subject: Re: Desktop Icon Problem (ResEdit)
Keywords: help
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Date: Fri, 22 Jan 1993 10:28:16 GMT

In article <rudolph.727678425@unixg.ubc.ca> rudolph@unixg.ubc.ca (Christopher E Rudolph) writes:
>
>else I can do to resolve this...This is a first for me...usually I have
>the problem solved with rebuilding the desktop or at most trashing the
>Desktop files...
>
>Any insight is appreciated...

Well, you probably have a ResEdit document somewhere that has a BNDL resource
in it and its bundle bit set.  The most common way that this happens is by
running Norton Utilities on your drive.  Norton will tell you that some files
need their bundle bits set.  It sets the bundle bit on any file that has
a BNDL resource in it.

Damon Cokenias
From: mellon@ncd.com (Ted Lemon)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Stallman and friends
Date: 20 Jan 93 20:41:58 GMT
	<1993Jan12.074807.29468@netcom.com>
	<MELLON.93Jan16182538@pepper.ncd.com> <1jb3vkINN6lg@ftp.UU.NET>
Organization: Network Computing Devices, Inc.
In-reply-to: sef@Kithrup.COM's message of 17 Jan 93 08:05:08 GMT


>The GNU C Library is an entirely different beast, and does not come with
>gcc.

Mea Culpa.  I was referring to the GNU C Library, not to the little
helper library that comes with gcc, but I didn't make that at all
clear.  Sean is entirely correct, and I hope that anybody who read my
article the way it was written rather than the way it was intended
will expunge the incorrect data from their brain and replace it with
what Sean said.   Sigh.

			       _MelloN_

--
mellon@ncd.com						uunet!lupine!mellon
Member of the League for Programming Freedom.   To find out how software
patents may cost you your right to program, contact lpf@uunet.uu.net
Newsgroups: comp.sys.mac.programmer
From: orpheus@reed.edu (P. Hawthorne)
Subject: Re: When is a menu disabled? (enableFlags isn't all)
Organization: Reed College, Portland, OR
Date: Wed, 27 Jan 1993 13:41:54 GMT

  toge@kekvax.kek.ac.jp (Nobu Toge) writes:
: I don't know except possibly to patch EnableItem and DisableItem and 
: keep track of menu dis/enable actions.

  Don't even think about doing this. Many apps just slam the enable flags
directly without going through enableItem and disableItem. And nobody in
the know has yet hinted that it is a Bad Thing.

  If you're going to patch any traps to keep track of enabled menus, patch
drawMenuBar like everyone else and their mother's pet poodle.

  Theus (orpheus@reed.edu)

Newsgroups: comp.sys.mac.programmer
From: howlett@world.std.com (Joseph S Howlett)
Subject: Re: Macintosh Doggles...
Organization: The World Public Access UNIX, Brookline, MA
Date: Mon, 25 Jan 1993 15:12:15 GMT

Just a note about dongles.  From personal experience, I know that at least
one popular ADB dongle is not NEARLY as secure as it seems on the surface.
At the risk of sounding somewhat immodest...

I managed to completely break one dongle's protection scheme in a fairly
general way in just a couple of afternoons of playing with some trap patches.
I did this to prove to the company I work for that we should discontinue our
reliance on a dongle protection scheme for our software products.

Just my $0.02 worth.
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
From: ross@bnr.ca (Ross Brown)
Subject: Re: Apple events/AppleScript/Toy Surprise - Applications Wanted
Organization: Bell-Northern Research Ltd.
Date: Tue, 26 Jan 1993 17:42:45 GMT

In article <1993Jan25.181240.2047@Princeton.EDU> jdunning@phoenix.Princeton.EDU
(John Alan Dunning) writes:
>If you've got Frontier or QuicKeys2 you should be able to look up which
>events a particular app supports, assuming the app uses the "aevt" (I think)
>resource correctly, which not all of them do.  You may also be able to 
>look up events with AppleScript.

The resource types are 'aete' and 'aeut'.  Apple published in 1992 a couple of
HyperCard stacks, Aete Editor b2 and Apple Event XCMDs b2, which do a nice job
of interpreting other applications' Apple event support resources.  I suspect
they were released on some developer CD...

==============================================================================
Ross Brown, Dept. 7C22  < Bell-Northern Research     >  Just the facts, ma'am.
Advisor, Telemgmt Svcs  < P. O. Box 3511, Station C  >  We don't care whose
ross@bnr.ca             < Ottawa, ON, Canada K1Y 4H7 >  opinions yours aren't.
==============================================================================

Newsgroups: comp.sys.mac.programmer
From: lhep_ltd@uhura.cc.rochester.edu (Leonidas Hepis)
Subject: Need (TB) template to write file... fast!
Organization: University of Rochester - Rochester, New York
Date: Sat, 23 Jan 93 05:13:59 GMT

Hello there!

I'm a novice in programming the Macintosh.  I'm close to finishing a simple
application and I need to save a file of bytes.  I'm currently using Pascal's
write/read functions to do so: it takes for ever and the resulting file is twice
as big as the original file in the computer.

The huge array in the computer's memory is in the form advised in the Pascal
manual (note for the example: ArraySize = 140,000)

 type
  MidiByte = byte;
  SysExFile = file of MidiByte; {this type for the in/out files of Pascal r/w}

  SysexArrayType = packed array[0..ArraySize] of Midibyte;
  SysexArrayPtr = ^SysexArrayType;
  SysexArrayHandle = ^SysexArrayPtr;

 var
  theOldSysExFile, theNewSysExFile: SysExFile; {for the Pascal i/o routines}
  theOldSysExFileName, theNewSysExFileName: string; {for the Pascal i/o }

  hSysexArray: SysexArrayHandle;  {the handle to the huge array}

Here's the method I use to save the file.  It uses Pascal's read/write.

  theNewSysExFileName := newfilename('Name of bulk file to create:');
  if not (theNewSysExFileName = '') then
{if there was a file path returned, i.e. if no Cancel was pressed}
   begin {THIS IS THE BLOCK THAT TAKES A LOT OF TIME}
     rewrite(theNewSysExFile, theNewSysExFileName);
     for writecount := 1 to count - 1 do {'count' has the # of actual bytes}
                                         { in the huge array (plus one)}
       write(theNewSysExFile, hSysexArray^^[writecount]);
     close(theNewSysExFile);
     writeln('File saving completed.');
   end;

Is there a novice-proof ;-) method of saving this array onto disk so that it's
done quickly and efficiently (for 140,000 bytes it writes a file 140K not 275K)?
Will the method guard against not enough space on disk so that it doesn't write
over any other files?

Thanks.

-leo

-- 
How can I believe in God when every time I get kicked in |Leonidas Hepis
the pants it hurts ALL THE WAY UP TO THE SPLEEN ?! When  |
that happens to me I see NO Intelligent Divine Designer! |lhep_ltd@uhura
I see chaos and stars and birds flying around my head :) |.cc.rochester.edu
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
Subject: Re: Macsbug and Quadras - need a working version
Keywords: MACSBUG QUADRA
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Thu, 21 Jan 1993 12:34:07 GMT

In <jtarr.727602384@husc.harvard.edu> jtarr@husc8.harvard.edu (Jeff Tarr) writes:

>The latest version of Macsbug (6.2.2) doesn't work well with my Quadra.

It should work. Maybe you have a debugger addition (dcmd)
or other system problem. Did you, for instance, try re-installing
System 7.0.1 with Tune-up 1.1.1 or better? Maybe an INIT?

Cheers,

						/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

   NCC-1701
From: mgleason@cse.unl.edu (Mike Gleason)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Resources
Date: 25 Jan 1993 03:18:34 GMT
Organization: NCEMRSoft
Distribution: world
NNTP-Posting-Host: cse.unl.edu

keith@taligent.com (Keith Rollin) writes:

|In article <rudolph.727824463@unixg.ubc.ca>, rudolph@unixg.ubc.ca
|(Christopher E Rudolph) wrote:
|> 
|> Can anyone tell me if there is an quick way of opening an applications
|> resource fork and then cycling through every resource in the application
|> so that I can display them in a list.

|I'm not going to tell you the wrong, fast way, but it too, amazingly, can
|be figured out by reading Inside Macintosh.

I don't think it's worth the trouble to open the resource fork yourself
and parse it given the format specified in "Format of a Resource File" in old
IM 1, if that's what you're hinting at.  I've done something similar to what
Mr. Rudolph wants to do and Count1xxx and Get1Indxxx seemed fast enough to
me on this Mac+.

--
______________________________________________________________________________
mike gleason                 mgleason@cse.unl.edu             NCEMRSoft, baby!