• 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: NSOpenPanel -setAllowedFileTypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel -setAllowedFileTypes


  • Subject: Re: NSOpenPanel -setAllowedFileTypes
  • From: email@hidden
  • Date: Thu, 26 Aug 2010 17:51:17 -0600

By 'does not respond' I was referring to the view not validating, I was not calling -validateVisibleColumns. Now, using -setAllowdFieTypes and calling -validateVisibleColumns the view is still not validated. I do not know if this is because my array of type is upper case or if case is irrelevant.

I did implement - (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename
checking for directories an case of extensions and calling - validateVisibleColumns in my combox box of extensions action method. Works great.


-koko





On Aug 26, 2010, at 3:06 PM, Corbin Dunn wrote:


On Aug 26, 2010, at 10:41 AM, email@hidden wrote:

I have an accessory view in an NSOpenPanel which contains a NSComboBox. The combo box is a list of file extensions. When the user selects an entry the action method calls -- setAllowedFileTypes. All these mechanics work properly. The issue: The open panel does not respond to the new allowed file types.

What do you mean "does not respond"? Is it not drawing right? Try calling -validateVisibleColumns.

corbin


What I am trying to accomplish is a dynamic filter as we see in a Windows open file dialog.


Am I barking up the wrong or impossible tree here?


_______________________________________________

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



_______________________________________________

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: 
 >NSOpenPanel -setAllowedFileTypes (From: email@hidden)
 >Re: NSOpenPanel -setAllowedFileTypes (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: NSOpenPanel -setAllowedFileTypes
  • Next by Date: Re: NSOpenPanel -setAllowedFileTypes
  • Previous by thread: Re: NSOpenPanel -setAllowedFileTypes
  • Next by thread: Re: NSOpenPanel -setAllowedFileTypes
  • Index(es):
    • Date
    • Thread