• 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
Dynamically open file with application of end user choise......
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamically open file with application of end user choise......


  • Subject: Dynamically open file with application of end user choise......
  • From: "Sutapalli Satyanarayana" <email@hidden>
  • Date: Fri, 21 Aug 2009 01:08:52 -0600

Hi,

I am using Cocoa with Obj C.
I am using the following method to open a file associated with a particular application.


[[NSWorkspace sharedWorkspace] openFile:<some file path>]

But if the file is associated with certain application, it is opening.

If the file is not associated with any application, I want the user to select the application also with which the file has to be opened. In the following code we have to tell which application it has to open.
[[NSWorkspace sharedWorkspace] openFile:< some file path> withApplication:@"TextEdit"]

But I want user to select the application at run time dynamically.

--Satyam.


Thanks & Regards,
Satyanarayana SVV
Novell Software Development (I) Pvt. Ltd., Bangalore, India
9886555469 (mobile)

_______________________________________________

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: Dynamically open file with application of end user choise......
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Dynamically open file with application of end user choise......
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Authorization Question (Possibly a simple POSIX question?)
  • Next by Date: Re: devil of a time with an NSImageView
  • Previous by thread: Re: Treat warnings as errors flag missing in iPhone Xcode project
  • Next by thread: Re: Dynamically open file with application of end user choise......
  • Index(es):
    • Date
    • Thread