🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #33223

Possible Bugs in Think C 3.0

#33223
From: Frank Ng
Date: Sun, 09 Oct 1988 22:23
41 lines
1890 bytes
Here are 2 (possible) problems in Think C v3.0 (I won't call them bugs
since they may or may not be):

1) The Debugger.

Every time I interrupt my program to get to the Debugger, it changes
the windowKind field of my program's windows to userKind.

This is a wrong assumption on the Debugger's part, IM-I page 276
states:

	"UserKind represents a window created directly by application
	calls to the Window Manager; for such windows the application can
	in fact set the window class to any value greater than 8 if desired"

I use the windowKind field to differentiate between windows owned by
different modules in my application.  At least they could have
documented this *feature* in the manual!

(I use the window's refCon for other things, so don't tell me to use
it instead)

2) PopUpMenuSelect

I don't know whether this is a bug in the MacTraps library or in the
the Mac II ROMs Menu Manager.

I am writing a MDEF for a popup menu.  When the MDEF gets called with
a message of hPopUpMsg (3), the coordinates of hitPt (top left of
PopUpItem) are passed to the MDEF the wrong way around.  That is, the
right-hand word of the Point contains the vertical coordinate, and the
left-hand word contains the horizontal coordinate.

Could someone please verify these happenings?

-- 
Frank Ng			ACSnet:	frankng@basser.oz
Department of Computer Science	ARPA:	frankng%basser.oz@uunet.uu.net
University of Sydney NSW 2006	UUCP:	uunet!munnari!basser.oz!frankng
AUSTRALIA
Technical Details
Message-ID: <1524@basser.oz>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!geac!syntron!jtsv16!uunet!munnari!basser!frankng

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!geac!syntron!jtsv16!uunet!munnari!basser!frankng
From: frankng@basser.oz (Frank Ng)
Newsgroups: comp.sys.mac
Subject: Possible Bugs in Think C 3.0
Keywords: bugs, Think C, Menu Manager, windowKind
Message-ID: <1524@basser.oz>
Date: 9 Oct 88 22:23:27 GMT
Article-I.D.: basser.1524
Organization: Dept. of Comp. Science, Uni of Sydney, Australia
Lines: 41