HDTenEightyP/NetNews huggingface dataset:
From: jpurlia@qualcomm.com (John Purlia)
Subject: Re: Is AppMaker OK?
Followup-To: comp.sys.mac.programmer
Organization: Qualcomm, Inc.
Date: Thu, 28 Jan 1993 18:16:43 GMT

In article <C1J1JK.H4p@javelin.sim.es.com>, mmunson@animal.es.com (Mark
Munson) wrote:
> 
> 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?

While I don't have any experience with AppMaker, if you're serious about
programming the Mac and learning about the Toolbox I'd strongly advise that
you not take any shortcuts by using an interface builder.  There are
countless key concepts and nuances about Macintosh programming that can
only be mastered by gutting it out through the early stages of your
programming.  When the time comes to extend your knowledge and
effectiveness as a Macintosh programmer, the hard work that you put into
coding the interface by hand will be an invaluable experience.

IMHO, the long range benefits of learning far outweigh the immediate return
of a toolkit...
...........................................................................
John Purlia          : My brain; not my company's brain.  My brain says...
jpurlia@qualcomm.com : "The Toolbox giveth, and the Tech Notes taketh away"
...........................................................................
Newsgroups: comp.sys.mac.programmer
From: precetti@timothy.ecn.purdue.edu (Cyrille J Precetti)
Subject: Image sampler request
Keywords: Image, Sampling, RGB
Organization: Purdue University Engineering Computer Network
Date: Fri, 22 Jan 1993 17:54:32 GMT


Hi,
I am looking for a software or C source to do the following:
        -open an rgb image from tiff or raster file
        -display the image using the Mac in either dithered, gray-scale, color
        -use the mouse to select rectangular areas
        -select a region number
        -download the rgb values along with the region number for all
         the point to an ascii file

I have developed some statistical pattern recognition software but I need
that software to create knowledge base on the Mac.
I have the software doing that on a Silicon Graphics workstation and would
love it on the mac....any help would be helpful even for part of the software.

Thanks
C. Precetti
precetti@ecn.purdue.edu
Newsgroups: comp.sys.mac.programmer
From: andrew@cubetech.com (Andrew Loewenstern)
Subject: Getting information on NuBus cards
Organization: Cube Technologies, Inc.
Date: Wed, 27 Jan 1993 11:29:22 GMT


Does anyone have any hints, tips, or examples on how to read
information about NuBus cards from it's SResources?  I'm looking for
information such as what kind of card it is, manufacuter - if
possible, etc...

The documentation on the SlotManager really doesn't tell me much.


any info would be appreciated,
thanks,
andrew
-- 
andrew@cubetech.com      | "We cannot dwell in the time that is to come,
Andrew Loewenstern       |  lest we lose our now for a phantom of our
Cube Technologies, Inc.  |  own design." - Erendis      FYEO Public Key:
0000000701B61D1ADF0DFC9C16185CEA055200000007EB4A9FEB1922065D471A89E905B5
From: akm@st-andrews.ac.uk (Alasdair Macdonald)
Newsgroups: comp.sys.mac.programmer
Subject: Help for Poor Student
Date: 26 Jan 93 16:02:38 GMT
Organization: St. Andrews University, Scotland.

A couple of questions which may be loosely conneted.

Let me first explain something. I am a very poor student
struggling to finish his PhD having run out of funding.
Mac programming is a hobby that I have no money for so I
have to make do with the little knowledge I can extract
from any source.
This actually makes Mac programming fun :-) and gives 
great satisfaction when something works out.

At the moment I use a Plus with Think Pascal 3.02 under
sys 6.0.7 and surprisingly my programs still run on 
LC IIU's under sys 7.

To the questions then.

1. I canUt seem to implement contiuous scrolling using
   TextEdit. I have a dialog box with a user item for
   putting text into. I then put a scroll bar beside it
   and activate it if the text is too big for the user 
   item. Using ModalDialog I find where the mouse has 
   been clicked and if it is in the scoll arrows 
   (forget the little square box) and if TrackControl
   returns true I scroll.
   I could implement continuos scrolling using StillDown
   but that lets the user move the mouse off the scroll
   arrow without stopping the scrolling. Also the arrow
   doesnUt darken as with TrackControl so I must be doing 
   someting wrong.
   HowUs it done? Sorry if itUs a FAQ.

2. I would like to use thing like Gestalt but have no 
   interfaces for them. Is there any way I could do it
   or do I have to resign myself to the fact that
   without an upgrade IUm sunk?


Thanks a lot in advance,

Alasdair Macdonald.

akm@uk.ac.st-and
Newsgroups: comp.sys.mac.programmer
Subject: ?? Apple Events/How do I open another apps document?
From: nick@manasys.co.nz (Nick Ivanov)
Date: 24 Jan 93 18:09:01 GMT
Distribution: comp.sys.mac.programmer
Organization: Mana Systems Ltd., Auckland, New Zealand.


Hi there netters I need your help.

What is the best way to open another application's document
under System 7.0?
I think the best way might be to send the Finder and apple
event to open a document. I am having trouble doing this.
Does anyone have any suggestions, sample source, etc.?

Please reply to me by e-mail to

nick@manasys.co.nz

Thanks a million for any help

PS Ra ra Brett Stevens
--

################################################################################
# ::   ::                                                    Nick Ivanov       #
# :::::::   ::::    :: :::    ::::     ::::   ::  ::   ::::  Consultant        #
# :::::::      ::   ::   ::      ::   ::      ::  ::  ::     Mana Systems Ltd. #
# :: : ::   :::::   ::   ::   :::::    ::::   ::  ::   ::::  P.O. Box 34-137,  #
# ::   ::  ::  ::   ::   ::  ::  ::       ::   :::::      :: Auckland 10,      #
# ::   ::   ::: ::  ::   ::   ::: ::  :::::       ::  :::::  New Zealand.      #
#                                              ::::                            #
#       Ph +64-9-4190046, Fax +64-9-4192330, E-mail nick@manasys.co.nz         #
################################################################################
From: REEKES@applelink.apple.com (Jim Reekes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: AIFF-C information!?!
Date: 25 Jan 93 20:31:42 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <1993Jan21.235100.8923@news.media.mit.edu>,
delphi@media-lab.media.mit.edu (Andrew J. Kass) wrote:
> 
> Does anyone know where I can get information on AIFF-C files? I got the
> AIFF (version 1.2) docs from APDA a while ago, but they don't even mention
> AIFF-C files. Inside Mac VI mentions them, but doesn't really explain how
> to use them.
> 
> If you know where I can get this type of information, I would be very 
> grateful. 

APDA should have the AIFF-C spec. It's basically AIFF (that you already
have) with compression.

-----------------------------------------------------------------------
Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
                             |          Sound Manager Expert
Apple Computer, Inc.         | "All opinions expressed are mine, and do
20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
Cupertino, CA 95014          |       employer, Apple Computer Inc."
From: time@ice.com (Tim Endres)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Automatic dismissal of Notification Manager alerts
Date: Sun, 24 Jan 93 13:16:05 EST
Organization: ICE Engineering, Inc.
Reply-To: time@ice.com (Tim Endres)
X-Mailer: uAccess - Macintosh Release: 1.6v2


In article <1993Jan23.190441.5420@Princeton.EDU> (comp.sys.mac.programmer), lardieri@hotlips.Princeton.EDU (Stephen Lardieri) writes:
> Is there a way for a program running in the foreground to a) detect
> when some other program has put up a Notification Manager alert box
> and b) automatically dismiss that alert box if the user doesn't
> respond in a certain amount of time? 

You want "Denotify". This will intercept ALL notification mgr calls
that request a dialog and circumvent the dialog, while recording the
message, and allowing for sound and icon.

> What would be ideal is to have any timed-out Notifications re-displayed
> when the user returns and clicks the mouse to tell my program that
> a human being is present again.  Is that possible?

You may call up the Denotify control panel at any time to see the dialog
messages that have been recorded.

To obtain:

ftp ftp.msen.com
cd /pub/vendor/ice
get Denotify.hqx


tim endres - time@ice.com  (UUCP: heifetz!tbomb!time)

USENET - a slow moving self parody... ph
Newsgroups: comp.sys.mac.programmer
From: mmunson@animal.es.com (Mark Munson)
Subject: Is AppMaker OK?
Keywords: AppMaker Programming
Reply-To: mmunson@animal.es.com (Mark Munson)
Organization: Evans & Sutherland Computer Corp., Salt Lake City, UT
Date: Wed, 27 Jan 1993 19:16:31 GMT

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'm new to the Mac arena in term of programming, but I've written
quite a bit using the Apple IIgs toolbox (which is nearly identical
to the Mac toolbox).  I've started purchasing the new Inside Macintosh
books.  Does anyone have any good recommendations on things that I
should aquire to help me work in the Mac environment?

Thanks in advance for your comments.

Mark Munson
From: bryan.y.lee@dartmouth.edu (Bryan Lee)
Newsgroups: comp.sys.mac.programmer
Subject: Novice programmer seeks help with Sound Manager
Date: 24 Jan 93 05:14:25 GMT
Organization: Dartmouth College, Hanover, NH
X-Xxmessage-Id: <A7878F7F3C015014@kip-sn-20.dartmouth.edu>
X-Xxdate: Sun, 24 Jan 93 05:12:47 GMT
X-Useragent: Nuntius v1.1.1d16

Well, this is my first time posting to this group, so here goes,

	I've read about the sound manager, and have read a few example routines
that play sound, using the sound manager. I figured out how to make new
channels, and use sndPlay on 'snd ' resources. No sweat. However, I still
don't understand how to use type 2 'snd ' files. I have read Inside
Macintosh 5 about these resource types, but still haven't had any luck
with them.
	I do the following (simplified a little):
			SndNewChannel(&my_chan, sampledSynth, 0, NULL);
			SndPlay(my_chan, my_type2snd, 1);
			SndDoCommand(my_chan, my_command, 0);

In this case, "my_command" = noteCmd; <==Does this command do anything or
what?

I thought it would be neat to be able to play my own melodies using the
sounds from these type2 resources, but when I try to play a note using
noteCmd,  only silence plays for the duration of the note. Am I totally
off base, or is there something simple I am missing? Maybe there is a FAQ
that has this somewhere?

Anyone care to reply?

Bryan Lee
Newsgroups: comp.sys.mac.programmer
From: delphi@media-lab.media.mit.edu (Andrew J. Kass)
Subject: AIFF-C information!?!
Organization: M.I.T. Media Laboratory
Date: Thu, 21 Jan 1993 23:51:00 GMT

Does anyone know where I can get information on AIFF-C files? I got the
AIFF (version 1.2) docs from APDA a while ago, but they don't even mention
AIFF-C files. Inside Mac VI mentions them, but doesn't really explain how
to use them.

If you know where I can get this type of information, I would be very 
grateful. 

Thanks
Andrew Kass
Speech Research Group
MIT Media Lab
delphi@media-lab.media.mit.edu

Newsgroups: comp.sys.mac.programmer
From: fixer@faxcsl.dcrt.nih.gov (Chris Bearded Guacamole Tate)
Subject: Re: Shareware summary (long)
Reply-To: fixer@faxcsl.dcrt.nih.gov
Organization: Computer Systems Laboratory, DCRT, NIH
Date: Mon, 25 Jan 1993 15:30:53 GMT

Kurisuto, you may wish to contact the Association of Shareware Professionals
(ASP) and see what they have to say about the success of their members'
efforts.

The ASP is an interesting organization.  I've only seen MS-DOS products
released under their auspices, but those that I've seen are *quite* impressive. 
The 4-DOS replacement for the MS-DOS command shell and the Brother's Keeper
genealogy program are ASP products.

From what I gather, member developers have pledged a significant amount of
support for their shareware, in return for the "prestige" of claiming ASP
affiliation, negotiation/arbitration services conducted by the ASP (e.g.
ombudsman arbitration between customer and developer in the case of conflict),
etc.

I think it might be worthwhile to find out what the ASP's findings about
customer honesty are.

One thing I don't know is whether or not ASP members are permitted to be
commercial developers as well.  I would imagine so, however.  My impression is
that shareware products must be supported to an extent comparable to commercial
support - ASP membership is not a frivolity.

The one ASP product that I know the shareware fee for is Brother's Keeper (an
impressive genealogy program - the only one for MS-DOS, as far as I'm aware,
that can handle international character sets).  Its shareware fee is $45 US. 
Compared to "independant" shareware, this seems pretty steep to me - but it's
an impressive product, and the author's support is *excellent*.

------------------------------------------------------------------------------
Christopher Tate             | Return of the CryptoSig (tm):
Management Systems Designers |    XHGVMFCV GBGNKJ KJ LFJG X CXZB, KG GBXIVBJ
                             |    DMF GVKJ: QVXGBTBN DMF AM, AMP'G ZKJJ.
fixer@faxcsl.dcrt.nih.gov    |    
Newsgroups: comp.sys.mac.programmer
From: skwong@cuse1.se.cuhk.hk (Wong Sai Kee (Graduate Assistant))
Subject: A tutorial on "Robotic" using hyperCard & Macintalk.
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Fri, 22 Jan 1993 10:04:42 GMT

I am currently developing a hypercard stack (in Macintosh) for
teaching elementary concepts on robotic.  It is intended for use in
an undergraduate course in our faculty.  It will include instructions
in dealing with the ESHED ROBOTEC's ER5 & ER7 robot arm.  If it succeeded,
I will post it to the public.

I order not to re-invent the wheel, is such beast already in exists?

Another problem is: I want to include speech in the stack.  I had
tried the MacinTalk Stack v4.0 form Nigel Perry but it is buggy,
it always hang.  Is there any solution?  Where can I get the information
to write my XCMD using MacinTalk?

Thanks!

Mr.Sai-Kee WONG
skwong@se.cuhk.hk
From: kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson)
Subject: PICT Utils question
Newsgroups: comp.sys.mac.programmer
Date: 26 Jan 93 21:06:45 GMT

Since my first message didn't generate any interest I'm going to try again!

I have been playing around with the PICT Utils and have been getting some
strange values returned for the Palette and Color Tables that the call
GetPictInfo creates.  For instance, the Palette returned contained -2900
entries, and the Color Table was returned with (something like) 889 entries!

I had a couple of questions:

1.  Is there any situation where the PICT Utils can fail to return a valid
    Palette/Color Table?

2.  (Assuming that I can get a valid Palette and Color Table someday) Will
    the Palette and the Color Table returned by GetPictInfo contain exactly
    the same information?  If so, when would you want to get both? I.E. are
    there situations where a Palette is preferable to a Color Table and
    vice versa?

3.  Will Inside Macintosh: Imaging contain this information in a more
    readable format than what is contained in IM VI?


And finally a comment:

  I REALLY REALLY LIKE the new Inside Macintosh books.  I love the examples,
I love the new presentations.  I bought the Overview book and really like
it as well.  I am fairly sure that for an experienced Macintosh programmer
the Overview book is probably a waste of money, but if you are at my
current skill level its a great introduction.

GREAT JOB. (IMHO)

Ken
Newsgroups: comp.sys.mac.programmer
From: biehl@ecn.purdue.edu (Larry Biehl)
Subject: Large blocks of memory problems
Followup-To: comp.sys.mac.programmer
Organization: Purdue University
Date: Tue, 26 Jan 1993 21:40:18 GMT

This is a follow up to a problem that was reported about 3 weeks ago
concerning moving large blocks of 'handle' memory.  The problem that
I came across involved moving 10-14 meg of memory using MoveHHi.  Under
some conditions the application heap would become corrupted.  Since
then, I have also come across a case in which if a GWorld offscreen buffer
of 12 meg were unlocked using 'UnlockPixels', the heap would become 
corrupted when that buffer got moved during a MoveHHi of another handle.

I have recently learned that there is a known problem with the Mac OS
memory
manager.  The routine that moves blocks of memory, 'BlockMove', does not
work correctly for blocks that are larger than 8 to 9 meg in all cases.
Does anyone in 'netland' know anymore about this problem or have a fix
for it.

Thanks for any help or insight.
Newsgroups: comp.sys.mac.programmer
From: mark@pokey.jsc.nasa.gov (Mark Manning)
Subject: Re:  Programming with MPW (Help !!)
Organization: NASA
Date: Thu, 28 Jan 1993 17:03:45 GMT

The problem deals with the internal pointers and their having to
exceed the sixteen bit boundaries (ie: x > 32767).  Use the option
which makes all of your pointers be long words and this will go
away.  Of course, then you will be using only thirty-two bit
pointers, but the extra code is worth it. :)
From: neeri@iis.ethz.ch (Matthias Neeracher)
Subject: Re: A malloc() built upon sbrk() on a Mac?
Organization: Integrated Systems Laboratory, ETH, Zurich
Distribution: comp
Date: Wed, 27 Jan 1993 18:28:32 GMT

In article <BOORTZ.93Jan27115728@dunlop.sics.se>, boortz@sics.se (Kent Boortz) writes:
> I have a malloc() replacement that I want to port to Mac.
> It assumes a continuous memory area and a upper bound
> moved by the Unix sbrk() call.

> What I came to think of is this:

> 1.	Allocate a fixed stack space (this is the normal way
> 	on a Mac, isn't it?)

Yes.

> 2.	Allocate with NewPtr() memory at the lowest address
> 	in the application heap. This will be immediately
> 	after the stack space.

No. This is *opposite* the stack.

> 3.	Implement sbrk() with SetPtrSize() on this memory area
> 	and let malloc() take memory from this area.

Bad idea. This assumes that nobody ever does a NewPtr or allocates too many
handles in your heap after you have started your malloc() (I broke a version of
Lightspeed Pascal which had this assumption a few years ago).

> 4.	If SetPtrSize() fails I do a MaxApplZone() and try
> 	again.

Useless. If there is any way to make SetPtrSize succeed, the Memory Manager
will make it succeed. If you allocate a fixed size stack, you should call
MaxApplZone anyway.

> This way my "Unix" memory handling will grow from low application
> heap address to high and normal mac allocation will grow from
> high memory address to low.

Unfortunately, "normal" Mac allocation isn't all handles (And handles are not
allocated high to low, but that's besides the point).

> My problem is to do (2) because normally I can't tell the mac memory 
> manager where I want to take memory.

Actually (2) was the single most workable point in your proposal. Simply
calling NewPtr will ensure a best effort from the Memory Manager to place your
memory as low as possible.

>A solution to that could be:

> 		AllocMem = NewPtr(MaxMem(&any));
> 		SetPtrSize(AllocMem,size_wanted);

No especially good idea, I'm afraid. In the presence of locked handles, this
might be quite counterproductive.

> Any thought about this? Is there other ways of doing what I want?

Frankly, I get the impression that you are not very experienced with Macintosh
memory management, which makes me wonder why you think you need that malloc()
replacement in the first place.

Maybe you might want to check out Tim Endres' malloc package, which is at
ftp.msen.com, pub/mac/src/icemalloc.hqx. I have no actual experience with it,
but as it was already written for the Mac, it certainly doesn't contain any
sbrks().

> Is there any way of doing mmap() on a mac?

This probably depends on the model and the System version. It *might* work
under A/UX.

Matthias

-----
Matthias Neeracher                                   neeri@iis.ethz.ch
 "You must have picked up that copy of Scarlett instead of Inside Mac
  when you tried to find the right call..." -- Keith Rollin
From: Matt_Daw@magic-bbs.corp.apple.com
Newsgroups: comp.sys.mac.programmer
Subject: Re: Programming Primer C question....
Date: 23 Jan 93 21:54:54 GMT
Article-I.D.: magic-bb.1993Jan23.165454.446708
Distribution: na
Organization: Macintosh Awareness Group In Canada

Try looking at the primer changes file i uploaded about 2 weeks ago. It
might help you fix your problem.

Matt Daw,
Toronto Macintosh Developer Association
***********************************************************
The views expressed in this posting are those of the individual author
only.
***********************************************************
Newsgroups: comp.sys.mac.programmer
From: bruner@sp10.csrd.uiuc.edu (John Bruner)
Subject: Re: faster division routine wanted.
Followup-To: comp.sys.mac.programmer
Organization: CSRD, University of Illinois
	<sage.cc.purdue.edu-200193155236@seib.cc.purdue.edu>
	<1993Jan21.011218.12052@hobbes.kzoo.edu>
	<peter-220193094640@rocky.curtin.edu.au>
Distribution: na
Date: 22 Jan 93 15:30:40

An alternate way to do division is to multiply by the fixed-point
reciprocal.  In this case, you can do it with

	quotient = (0x8312 * numerator + 0x8000) >> 25;

--
(Dr.) John Bruner, Deputy Director			bruner@csrd.uiuc.edu
Center for Supercomputing Research & Development	(217) 244-4476 (voice)
University of Illinois at Urbana-Champaign		(217) 244-1351 (FAX)
465 CSRL, MC-264; 1308 West Main St.; Urbana, IL  61801-2307
Newsgroups: comp.sys.mac.programmer
From: David Johnston <davidj@daveland.demon.co.uk>
Subject: Re: Is AppMaker OK?
X-Xxmessage-Id: <A78DD7976B0308B8@daveland.demon.co.uk>
X-Xxdate: Thu, 28 Jan 93 23:33:59 GMT
Organization: Daveland Developments
X-Useragent: Nuntius v1.1.1d9
Date: Thu, 28 Jan 1993 18:31:38 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?

Yes, AppMaker is OK. In fact it's really quite good. A few quibbles
but I'd advocate buying it.

-----------------------------------------------------------------
              David Johnston:  davidj@daveland.demon.co.uk
                          Cambridge, U.K.
-----------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: kjt001@dunix.drake.edu (Devil Bunny!)
Subject: Why does AddResMenu give me an error?
Organization: Drake University, Des Moines, Iowa, USA
Date: Sun, 24 Jan 1993 19:05:12 GMT

Yes, it's me once again...and first of all I want to thank those who
have been sending me all this help...without you guys, I wouldn't be
getting anywhere.

On to the problem - I'm using think C 4.0 (can't afford 5.0 yet), and
the following line gives me an error:

	AddResMenu(gAppleMenu, 'DRVR');

gAppleMenu is a MenuHandle that is set to the apple menu with
GetMHandle(400) - 400 is indeed the resource ID to the apple menu.

I'm using suitcase with quite a few desk accessories; is that what's
giving me the error?

Again, I greatly appreciate the help I'm receiving.


-- 
|   Kevin Tieskoetter    kjt001@acad.drake.edu  kjt001@dunix.drake.edu    |
|                               Drake University
|          Des Moines, IA...Where men are men, women are scarce,          |
|                       And sheep are nervous!                            |