home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.system
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon W{tte)
- Subject: Re: What do I need to develop Mac apps?
- In-Reply-To: streater@unixhub.SLAC.Stanford.EDU's message of 11 Sep 92 06:29:14 GMT
- Message-ID: <D88-JWA.92Sep11193733@dront.nada.kth.se>
- Originator: d88-jwa@dront.nada.kth.se
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <5457@unixhub.SLAC.Stanford.EDU>
- Date: Fri, 11 Sep 1992 18:37:33 GMT
- Lines: 63
-
- .EDU> streater@unixhub.SLAC.Stanford.EDU (Tim Streater) writes:
-
- I am thinking of writing Mac apps, and have a number of questions:
-
- 1) Is MacsBug any use? I see version 6.2 sold with the Apple doccy in
- bookstores, is there a later version? 6.2 appears to be 1990 vintage.
-
- A must-have, unless you have TMON Pro which costs money.
- macsBug 6.2.2 is the latestm and is available for ftp from
- ftp.apple.com (without the dox)
-
- 2) I assume that "Inside Mac" books are a prerequisite, is the new version
- actually out yet, I looked in 2 technical bookstores in Palo Alto tonight
- and only saw the older version.
-
- Well, so buy the older ones. Or save the money and buy a CD
- ROM drive, and a $40 _develop_ subscription, which comes with
- a CD disc, which has both the older ones and many of the newer
- ones electronically.
-
- 3) I want to be able to read disk blocks directly from within a file, and
- furthermore to do it *asynchronously*. Are there primitives to do this?
-
- Yup. PBReadAsync instead of PBReadSync. You could get a callback
- to a function, or poll a field to see if it's done; your choise.
-
- 4) Sort of related to (3). Does it make any sense for me to be issuing SCSI
- commands to the disk or is this merely what the driver does?
-
- Leave it to the driver.
-
- 5) Do I have access to and control over interrupts? If I have some code that
- *has* to execute within a given time can I disable interrupts to ensure
- that this happens (and not thereby miss interrupts).
-
- Well, you are currently running in supervisor mode, so just move
- into the flags register. Unfortunately, that breaks under A/UX
- and system 8 and on RISC macs (right around the corner)
-
- 6) I understand there are app builders that can set me up a skeleton app to
- handle window redraws etc, any recommendations here? I plan to use
- Think-C.
-
- Think C comes with a good class library. Study it; use it.
-
- 7) Can I do sound asynchronously? I have limited experience here, but it
- seems that when the Mac plays a sound everything else stops.
-
- Nah, that's just the SysBeep() sound. Async sounds aren't very hard
- at all on the mac!
-
- 8) Er....
-
- Lakerol?
-
- 9) That's it.
-
- Cheers,
-
- --
- Jon W{tte, h+@nada.kth.se, Sweden, Phone +46-8-107069
-
- Help eradicate FIDO-Net <-> Usenet gateways in our time!
-