Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Scrap Manager and Multifinder Message-ID: Date: 27 Apr 91 07:53:04 GMT References: <1991Apr16.115606.6398@ecmwf.co.uk> <13191@goofy.Apple.COM> <2817CD38.23342@orion.oac.uci.edu> Sender: news@nada.kth.se (Mr News) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 24 In-reply-to: bdugan@teri.bio.uci.edu's message of 26 Apr 91 06:48:25 GMT In article <> bdugan@teri.bio.uci.edu (Bill Dugan) writes: if (SystemEdit(3)) ; err = PutScrap(GetHandleSize(h),'PICT',*h); 1) You'd most probably want to call SystemEdit ( 1 ) ; so as not to fool any DA into making a "copy" operation... 2) You probably want to lock the handle h before calling PutScrap with h dereferenced, since PutScrap may very well move memory. The reason is that apparently the SystemEdit call fools Multifinder into thinking that the user picked an option from the Edit menu and that it's This FEATURE was pretty tough to figure out and I'm not sure where I finally found it documented. Most probably in the MF prog manual or the TechNotes (do a subject search on Scrap or MultiFinder) where it's documented... -- Jon W{tte h+@nada.kth.se - Power !