• 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
How to get finder type "Open With" dialog box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get finder type "Open With" dialog box


  • Subject: How to get finder type "Open With" dialog box
  • From: Parimal Das <email@hidden>
  • Date: Wed, 29 Apr 2009 11:22:19 +0530

Hello ppl

Cocoa gives me default file associations with apps in this code


NSString * path_ok    = @"/Users/pd/Desktop/pd.rtf";

[ws openFile:path_ok withApplication:nil];



But when i try this i get an obvious error


NSString * path    = @"/Users/pd/Desktop/pd2.large";

NSWorkspace * ws = [NSWorkspace sharedWorkspace];

[ws openFile:path withApplication:nil];



i am using the file with .large custom extension


What i want to do is, when my code encounters a unknown file extension, it
should open the finder type "Open With" dialog box for user to choose the
app from the list.


How to do this in cocoa, NSOpenPanel doc is not helping or i am looking in
the wrong direction??

Please help


Advance Thanks

-Parimal



--
--
Warm Regards,

Parimal Das
_______________________________________________

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: How to get finder type "Open With" dialog box
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Errors occur when using NSOutputStream to transfer big files
  • Next by Date: Re: How to get finder type "Open With" dialog box
  • Previous by thread: Re: Errors occur when using NSOutputStream to transfer big files
  • Next by thread: Re: How to get finder type "Open With" dialog box
  • Index(es):
    • Date
    • Thread