Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!mcsun!ukc!icdoc!qmw-cs!jeremyr From: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Newsgroups: comp.sys.mac.programmer Subject: Re: FKEYs and resources (summary) Message-ID: <3603@sequent.cs.qmw.ac.uk> Date: 25 Apr 91 16:12:09 GMT References: <3572@sequent.cs.qmw.ac.uk> <23569@unix.SRI.COM> Organization: Computer Science Dept, QMW, University of London, UK. Lines: 32 In an earlier article, I wrote: > >I'm writing an FKEY which may bring up a dialog. Given that an FKEY >doesn't know what resource files may or may not be open when it's run, >what's the best place to keep its resources? > >The system file is one possibility, but there's no ownership scheme for >FKEYs, so ID conflicts are likely. Also, I'd have to install them in >the system file which means using the installer and seems rather OTT. > This method got no votes at all, as I'd anticipated. >More likely, I could put an FKEY resources file in the system folder. >This seems better, but I have to insist that the file isn't renamed >as there's no easy way to find it after a rename (index through the >system folder looking for a file with my creator? ugh). > There were a few votes for this method, giving up gracefully if the file can't be found. Matt Mora pointed out that the file isn't an INIT, so there shouldn't be any need for anyone to rename it. Not that that's ever stopped anyone :-) Most votes were for building the dialog on the fly using NewWindow, NewControl etc. One ingenious solution was to leave some space (with dc.l 0 a few times) within the FKEY and use ResEdit to paste the dialog into it. I'll probably go for the system folder file method. Many thanks to all who responded. Jeremy Roussak