Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!killer!pollux!ti-csl!mips!holland From: holland@mips.csc.ti.com (Fred Hollander) Newsgroups: comp.sys.mac.programmer Subject: Re: ResEdit Clipboard Format? Message-ID: <51261@ti-csl.CSNET> Date: 10 Jun 88 21:06:58 GMT References: <4717@husc6.harvard.edu> <3111@polyslo.UUCP> <351@piring.cwi.nl> Sender: news@ti-csl.CSNET Reply-To: holland@mips.UUCP (Fred Hollander) Organization: TI Computer Science Center, Dallas Lines: 33 In article <351@piring.cwi.nl> guido@cwi.nl (Guido van Rossum) writes: >In article <3111@polyslo.UUCP> dorourke@polyslo.UUCP (David O'Rourke) writes: >> It is my understanding that the format of the data on the Clipboard is >>just the same as the resource that was copied. So if you were to copy a >>"BNDL", ResEdit would put a resource of type "BNDL" on the clipboard. Now >>most applications don't support "BNDL" data types, so they don't allow you >>to "import" them. > >It's your guess against mine, but I don't believe you. First, ResEdit >can copy and paste a collection of resources, so it must have a way of >storing many resources in a single scrap entry. Second, to get anything My *guess* is that it stores the collection of resources as a number of individual scrap entries. (You're not limited to a single Scrap entry) >from the clipboard (without cheating) you must pass a type (a >four-letter word) to GetScrap. My guess is that ResEdit uses its own >type, and undoubtedly someone with a debugger can peek into the scrap >mgr's administration to see what that type is. From then on, When it wants to retrieve all the resources from Scrap, it can look at all the types that are in Scrap and retrieve each one by its type. >decyphering the information that's there should be simple enough. (You >might also have a look at the ScrapBook file, if that's still >supported). Good luck! Fred Hollander Computer Science Center Texas Instruments, Inc. holland%ti-csl@csnet-rela The above statements are my own and not representative of Texas Instruments.