• 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
Can't open specified type in NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't open specified type in NSOpenPanel


  • Subject: Can't open specified type in NSOpenPanel
  • From: Randall Meadows <email@hidden>
  • Date: Mon, 23 Feb 2004 12:01:03 -0500

Given the snippet of code:

NSOpenPanel *panel = [NSOpenPanel openPanel];
if (panel) {
[panel setCanChooseDirectories:NO];
[panel setCanChooseFiles:YES];
[panel setAllowsMultipleSelection:NO];
[panel setDelegate:self];
[panel beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"asdf", nil] modalForWindow:setupWdw modalDelegate:self didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:nil];
}

why are my files with an HFS type of "asdf" (no extension) NOT selectable in an Open panel?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Can't open specified type in NSOpenPanel
      • From: Timothy Carl Buchheim <email@hidden>
    • Re: Can't open specified type in NSOpenPanel
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Position of the selection cursor in an NSTextField
  • Next by Date: Re: IBOutlet does not initialize. Newbie Q.
  • Previous by thread: Re: Position of the selection cursor in an NSTextField
  • Next by thread: Re: Can't open specified type in NSOpenPanel
  • Index(es):
    • Date
    • Thread