Path: utzoo!attcan!uunet!jarthur!usc!ucsd!helios.ee.lbl.gov!pasteur!agate!riacs!shelby!neon!news From: commons@Sunburn.Stanford.EDU (Peter Commons) Newsgroups: comp.sys.mac.programmer Subject: Using Resource Fork to store data Message-ID: <1990Jul17.172044.20361@Neon.Stanford.EDU> Date: 17 Jul 90 17:20:44 GMT Sender: news@Neon.Stanford.EDU (USENET News System) Distribution: na Organization: Computer Science Department, Stanford University Lines: 19 X-Local-Date: 17 Jul 90 10:20:44 PDT I'm currently working on a new multi-user game for the Mac. In thinking about how I would like my save file to look, it would be very convenient to have one resource with the main data and one resource with the data for each player (rather than have all the data sequentially laid out in the data fork) because the game will only need to look at one player's info at a time. Can I do this? If so, should I use my own (non-reserved) resource name? And if I define my own resource type, how do I specify it's length (or does it automatically make it as long as the handle I pass it when I call AddResource? Thanks in advance. -- |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Peter Commons "Zut, alors! I have meesed one!!!" | | commons@cs.stanford.edu | | Computer Science Department, Stanford University |