File Code Problems

Moderator
Posts: 608
Joined: 2002.04
Post: #16
Quote:Originally posted by WFleming


thanks,

In addition I found some code (Technical Q&A FL14) at developer.apple.com that shows how to use the Process Manager to get the vRefNum and dirID of the application. I assume it would be better to plug these into FSpOpenResFile than using 0 for them?
What app are you getting the vRefNum and dirID of? To get the current resource file (by default, the app) I believe that you can just say:
Code:
short oldRes;

oldRes = CurResFile();
Quote this message in a reply
WFleming
Unregistered
 
Post: #17
Quote:Originally posted by jabber
What app are you getting the vRefNum and dirID of? To get the current resource file (by default, the app) I believe that you can just say:
Code:
short oldRes;

oldRes = CurResFile();


true, but CurResFile() doesn't return a FSSpec (or at least i'm unaware how to get one from CurResFile()), which seems to be needed in this case
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Recursively Packing Source Code Into One File? daveh84 15 7,176 Feb 3, 2010 08:36 PM
Last Post: AndyKorth
  Carbon File Code Muffinking 5 4,897 Jun 3, 2002 12:23 AM
Last Post: henryj