• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
drag&drop filename
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: drag&drop filename
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Binding NSTabViews in NSCollectionViews?
  • Next by Date: Re: How can I check to see if a mounted volume is an iPod or not?
  • Previous by thread: Request lower resolution from camera with QTKit
  • Next by thread: Re: drag&drop filename
  • Index(es):
    • Date
    • Thread