drag&drop filename
drag&drop filename
- Subject: drag&drop filename
- From: Paul Grant <email@hidden>
- Date: Sun, 2 Dec 2007 11:42:36 +0000
I am trying to get the filename of provided file (as argv[1] -
psn_0_... ) to my cocoa app, upon start.
This is the code that I am using but without luck, after two days
googling for a solution:
ProcessSerialNumber psn =
{ StripPsnStrAndGetHighLong( argv[ 1 ] ), 0 };
ProcessInfoRec info;
FSSpec fs;
info.processAppSpec = &fs;
GetProcessInformation( &psn, &info );
I expected to have the filename here info.processAppSpec->name but
there is garbish :-(
Any hints ? thx!
Paul
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden