• 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
Re: How to filter the NSOpenPanel with "Recommended Applications"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to filter the NSOpenPanel with "Recommended Applications"


  • Subject: Re: How to filter the NSOpenPanel with "Recommended Applications"
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 27 May 2010 12:40:02 -0400
  • Organization: Rogue Research Inc.

On Thu, 27 May 2010 10:55:51 +0800, appleBoy chen said:

>I want to show the Panel like Finder's "Choose Application" to let user
>slect one application to open with  the file.
>Follow is my code:
>
>NSOpenPanel *openPanel = [NSOpenPanel openPanel];
>[openPanel setCanChooseDirectories:NO];
>[openPanel setCanChooseFiles:YES];
>[openPanel setAllowsMultipleSelection:NO];
>if([openPanel runModalForTypes:[NSArray arrayWithObjects:@"app",nil]] ==
>NSOKButton)
>{
> ...
>}
>
>And, I want to only show the supported application for the associated file.
>Like Finder's "Choose Application" Panel, it can set Eanble to "Recommended
>Applications" to filter the applications.  the NSOpenPanel can support it?
>or i must usr another solution. thanks for any reply.

There is nothing built-in to do exactly that.  You'll need to filter
items yourself, see the docs for NSOpenSavePanelDelegate.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >How to filter the NSOpenPanel with "Recommended Applications" (From: appleBoy chen <email@hidden>)

  • Prev by Date: Re: How to filter the NSOpenPanel with "Recommended Applications"
  • Next by Date: Re: selecting a row of a UITableView programatically
  • Previous by thread: Re: How to filter the NSOpenPanel with "Recommended Applications"
  • Next by thread: Re: How to filter the NSOpenPanel with "Recommended Applications"
  • Index(es):
    • Date
    • Thread