This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (62 messages)
#163433-
FSRead problem
Message #164187
Steve, Something like this will do whast you want (I did not put error checking for clarity) short number; Str255 numberString; short numBytes; numBytes = 2; // I want to read a short FSRead (ref, &numBytes, &number); // read the file NumToString(number, numberString); // Convert an integer to a Pascal…
Thank Steve, I dont have an an AV either, that why I ws asking. Andre
It's a MacApp program — you sure you want to get into this? It runs fine on non-68000's but not very well on 68000's. The symptom I've been watching is an inability to list resources w/MacsBug (i.e. rd PICT). I put Debugger() as the first line of code in my…
>> yeah, I'm really looking forward to seeing the *ss end of my >> current bug waddling away. How has yours been misbehaving? I'll offer my two bits of information (sometimes two bits can be the beginning of a lot). Jody
#163281-
CopyBits on SE
Message #163994
Jody, Since it has problems on an SE and Classic, it almost sounds like you're passing a PixMap into CopyBits instead of a BitMap … although I can't see how that could be happening. Joe
>> 🙂 🙂 YAHOO!! & GREAT!! >> a real pain to have to hunt down an SE or Classic Yeah, finally I just broke down and bought an old Plus. Now at least if I could only get my app to run on it… >> Anyhow it feels great to…
I fingered it out just a little while ago. 🙂 🙂 Its one of those where you wanna hit yourself, but never considered masicism very fun. I had read a few days ago that you must have an even number of bytes in the bitmap.rowBytes field. So I took care…
Dialog Fonts
Message #163881
Does anybody know a way to display dialogs with other (smaller) fonts than Chicago 12 like Geneva 10 or Geneva 9? I am looking for a way to change the text attributes of dialog items like radio buttons or check boxes directly. I have tried this by adding PICTs to…
Burt, Consider it done. Later –Kirk
Burt: You could examine class CFWDesktop from Think Class Library. Maxim
Jody, Hmmm, 1. you're not looking for a PixHandle in a GrafPort (or visa-versa). 2. just before the CopyBits the heap is ok. (app & sys) 3. it's Monday… tell me more about the state-of-affairs just before the CopyBits call. "It'll work, it doesn't have a choice!" Al;
Looks like I must have trashed something important earlier. By the way..If you use TCL, I found out that using SetApplSize() isn't enough because the TCL will get confused on stack and heap size. Not sure why, but it cause the heap and stack to collide immediately when I used…
bytes per row? if you mean offscreen stuff, I never wrote that code — just copied it from tech notes & didn't look at it after that. hope that stack size does the trick. if not then I'd say search backwards on the stack from the Point-Of-Failure for something that's…
#163520-
Floating Palettes
Message #163807
>> I'd be glad to upload it, if you wish… I'd sure love to see it! – Burt
Ah. I suppose that makes sense. Shortly after I sent that message, I finally opened up the January issue of MacTech (I'm a bit behind the times). I noticed the article, first in a series on compatability issues. I'll stay tuned, and if anybody else out there is interested, I…
Jody: >>> By the way, is it really important that the number of bytes per row be even (i.e. word aligned) ? Because it didn't complain on most machines I tried when I had an odd number of bytes in a row.
#163626-
#Seg Load Calls on PPC
Message #163727
Calls such as UnloadSeg are indeed ignored. Dan
#163408-
System software for AV's
Message #163696
Thanks Craig, I'll keep a lookout for version 1.2. Alex.
#163303-
CopyBits on SE
Message #163664
I was wondering about how to set the stack size!! Much appreciated, I'll let you know if it works. By the way, is it really important that the number of bytes per row be even (i.e. word aligned) ? Because it didn't complain on most machines I tried when I…
"…you figured out the current "right" way to do it." Thanks, that's good to know! "To ensure that you're really clean, you should be scanning through the unit table looking for a driver with the right name" Yup, good point. That's a change I'll definitely make.
#163406-
Serial Port Ownership
Message #163451
Here ya go, Andre. Per Craig Prouse's suggestion, I'll be adding a check for the driver name (.AIn, .AOut, .BIn, .BOut), which is somewhere towards the end of the DCE (don't have my MacsBug reference handy), to further ensure comaptibilty. That check is not in the code below. Not sure…
You'll be happy to know that you figured out the current "right" way to do it. To ensure that you're really clean, you should be scanning through the unit table looking for a driver with the right name, not just the right reference number. There's a Mac Tech Note that…
In case anybody's interested, here's how I solved it: The Macsbug Reference has a pretty good description of debugging and snooping around device drivers with Macsbug. I basically used the Unit Table address ($11C) to get at the DCE dCtlFlags field for the drivers in question (.AIn, .AOut, .BIn, .BOut).…
Writing Disk Driver
Message #162892
>>>By the way, I contacted Developer's Support on this issue any their response was, >>>we knew the file system was slow however we didn't realize it was that slow! Who told you that? I work in Apple's Developer Technical Support group and provide primary support for the Macintosh file system…
#Serial Port Ownership
Message #162798
Hi there – Anybody out there have a suggestion, or some code, as to how I can detect if an application other than my own is using a serial port? Right now the app I'm trying to fix just makes the OpenDriver call and takes over the port from anything…
Matt: Thanks again for the PAP feedback. I think I've found a solution to this problem via a small PostScript program on CIS titled LW.REV. This program when downloaded to a PostScript laser printer prints the printer's name and PostScript version and revision numbers. I think I will send this…
PAP is the protocol used to talk to the printer over the network. You can license a PAP client from Apple (with documentation that amplifies Inside AppleTalk, 2nd Edition) or you can write your own if you're really into networking stuff. Anything the printer driver can do, you can do…
Matt: Thanks for the LaserWriter feedback. I'm aware that the Macintosh Printing architecture supports only write-only access. You mentioned PAP access which seems to me to be what I'm wanting. Does PAP allow me to read the PostScript version number from a PS laser printer, not nexessarily an Apple brand…
#LaserWriter PS version
Message #142304
The Macintosh printing architecture doesn't allow you to _read_ anything from a printer, only to write to it. If you want to query a printer, you'll have to open a connection to the printer, probably using PAP client software like you can license from Apple. –Matt Read action !
Resource IDs?
Message #74876
I'm translating a Mac resource file on another machine. I've got a routine that parses past the system resource list and reads the application resources. This data is roughly organized as a tree – each node has four links to other nodes. Each application resource record includes the resource ID…
#54274-
Making Mac files?
Message #54345
I'm afraid I don't have an answer for you. I know that under Windows there is the concept of "resources", but they live in a file seperate from the application file – I think. For DOS, you'll definitely have to use your own solution to the problem. Dave Read action…
#54273-
Making Mac files?
Message #54323
Sorry to hear you're having trouble. Again, if you could be more specific about your application, i'm sure we could come up with some advice. Good luck! Read action !
#54186-
Making Mac files?
Message #54224
Is it important that the resources in the resource fork be accessed while stored on a non-Mac platform? If you are merely storing the resource fork on another platform, and later bringing it back to the Mac, then MacBinary, AppleSingle, or AppleDouble might solve the problem for you. Reading the…
#54186-
#Making Mac files?
Message #54210
John, I believe you're looking for information on the AppleSingle/AppleDouble file format. I'm not familiar with these, but there are a couple of messages discussing this(these?) format(s) here in MacDEV right now. I'm sure they'll contain pointers to the official documentation. I don't think Apple has ever documented the format…
Dave, "I'd think it would be just easier to create an 8bit pixmap and hand blit the sun data into it. Then openpicture/copybits/closepicture and add it as a resource." If he can create the PICT on the Mac, that's the way to go without a doubt. However, I was under…
I'd think it would be just easier to create an 8bit pixmap and hand blit the sun data into it. Then openpicture/copybits/closepicture and add it as a resource. Read action !
alan, Making a PICT file which only consists of one 8-bit pixmap would not really be that difficult. In this regard, PICT is not any more difficult to export to than TIFF (as a matter of fact, TIFF is much nastier!). Just write out a 512 byte header, the low-order…
#Make Foreign PICT
Message #41602
I watched the thread on making a pict file on an SGI and the associated difficulty. I am wondering about a simpler scheme – I need to transfer 8 bit deep bit maps from a sun to the mac. could i do it once manually using studio8 etc and get…
John, "CanOpener is a commercial product?" Yes. Either MacWarehouse or MacConnection are the best bet. Ed Ludwig, Abbott Systems Read action !
No, that was exactly the depth I wanted to hear. Thanks for the explanation. CanOpener is a commercial product? Read action !
John, CanOpener if a file browser/data retriever/simple data librarian that runs on the Macintosh (all known Macs as of this writing). CanOpener uses a two-tiered approach to getting useful text, graphics, or sounds out of a file. The first level is a modular filter approach that is useful if the…
Write PICT2 file on SGI?
Message #41365
Ed replied to your question as to where to find the PICT2 info. Be sure and read the "Non-Mac PICT Parsing?" thread presently in this forum. Read action !
What does "CanOpener" do, and what machine does it run on? As for IM 6, I realized it's probably on the set of Apple developer CD ROMs that a co-worker has, at an office where I'm doing some other consulting. Did you ever find source to a PICT or PICT2…
John, The product's name is "CanOpener" from Abbott Systems. IM 6 was given out to developers at the Dev Conference 2 years ago. (2 years? Has it been that long?) Ed Ludwig, Abbott Systems Read action !re Enter reply. (/EXIT when done) 1: What does "CanOpener" do? What machine does…
Thanks for your help. What product incorporates your parser? Also, you're the second person to refer me to Inside Mac Vol 6, which isn't out yet. Do some people have pre-release copies? Read action !
Thanks, that wasn't clear to me. Read action !
John, The information to parse PICT1 and PICT2 are, unfortunately, scattered over several sources. PICT1 is covered in a tech note and PICT2 is covered in IM 5. The new 32-Bit opcodes are covered in the docs for 32-Bit QuickDraw, which are in IM 6 and probably are available from…
"This APDA documentation for 32 bit QuickDraw is more comprehensive than what's available in Inside Mac?" Except for Inside Mac Vol. VI, which hasn't been published yet, there is no 32-bit QuickDraw doc in Inside Mac. The QuickDraw doc in Inside Mac Vol. V only describes the original "Color QuickDraw",…
Where did you get this information? In order to interpret PICT and particularly PICT2 on a non-Mac, I'm going to need to know about some of these 'reserved' opcodes like $009A. I'm curious – if PICT handling is done somewhat transparently inside a Mac program, then how are y'all able…
This APDA documentation for 32 bit QuickDraw is more comprehensive than what's available in Inside Mac? Read action !
Page 1 of 2