Path: utzoo!attcan!uunet!mcvax!uva!freek From: freek@uva.UUCP (Freek Wiedijk) Newsgroups: comp.sys.mac.programmer Subject: Re: ResEdit Clipboard Format? Message-ID: <334@uva.UUCP> Date: 11 Jun 88 20:32:17 GMT References: <4717@husc6.harvard.edu> <3111@polyslo.UUCP> <351@piring.cwi.nl> Reply-To: freek@uva.UUCP (Freek Wiedijk) Organization: Faculteit Wiskunde & Informatica, Universiteit van Amsterdam Lines: 20 In article <351@piring.cwi.nl> guido@cwi.nl (Guido van Rossum) writes: >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 >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, Unfortunately, your guess is wrong. The solution is that Resedit *doesn't* copy and paste collections of resources using the scrap. If you leave Resedit with a couple of resources on the clipboard, and you enter it again, only one of the resources is still there, and name and ID are forgotten. Resedit uses a file called ResEdit.Scrap to store collections of resources on the "scrap". Try watching ResEdit under MultiFinder ... -- Freek Wiedijk UUCP: uunet!mcvax!uva!freek #P:+/ = #+/P?*+/ = i<<*+/P?*+/ = +/i<<**P?*+/ = +/(i<<*P?)*+/ = +/+/(i<<*P?)**