home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!news.kth.se!ulfis
- From: ulfis@cyklop.nada.kth.se (Anders Ulfheden)
- Subject: UseResFile() problems with CTB Tools
- Message-ID: <ULFIS.92Sep8005218@cyklop.nada.kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: cyklop.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Distribution: comp
- Date: Mon, 7 Sep 1992 23:52:18 GMT
- Lines: 31
-
- I have a document from Apple (by Craig Hotchkiss and Chris Halim) that
- describes some hints when creating your own Choose dialog:
-
- ...
- Save CurResFile().
- Save the current grafPtr.
- Set the new grafPtr to the dialog.
- Set CurResFile() to the procID of the tool we're working with (the tool procID
- is also the refNum of the open file).
- ...
-
- But when I check with ResError() after UseResFile((**toolHandle).procID) I get
- error resFNotFound (-193) Resource file not found. Can anyone explain why?
- The tools handle is valid and the code works fine without UseResFile() stuff.
-
- Now, I really want to use the refNum to the actual tool and read some font
- resources. Do I manually have to locate the tool before doing this?
-
- Thanks for any help!
-
- ulfis
-
- PS: Thanks to all of you netters that helped me earlier with strange font and
- sizes in the Choose dialog. I'll post the complete code to the net when
- it's done and works! DS.
- --
- +------------------------------------------------------------------------------
- | Anders Ulfheden
- | USENET: ulfis@nada.kth.se AppleLink: SW0429
- | Royal Institute of Technology
- | Stockholm, Sweden
-