• 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 not respecting file types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel not respecting file types?


  • Subject: Re: NSOpenPanel not respecting file types?
  • From: glenn andreas <email@hidden>
  • Date: Tue, 4 Jul 2006 08:40:01 -0500


On Jul 4, 2006, at 8:31 AM, Dale Gillard wrote:

We found the problem. The "types:" parameter is missing from the method call :-)

The funny part is that Xcode builds the project without complaining that a parameter is missing! Is this a known issue with Xcode 2.3? Or should we file a bug report?

On 04/07/2006, at 3:20 AM, Kiel wrote:

/* begin code */

	NSOpenPanel *panel = [NSOpenPanel openPanel];
	NSArray *types = [NSArray arrayWithObject:@"app"];
	[panel setAllowedFileTypes: types];

	[panel beginSheetForDirectory: nil
							 file: nil
> types:types
modalForWindow: [NSApp mainWindow]
modalDelegate: self
didEndSelector: @selector (openPanelDidEnd:returnCode:contextInfo:)
contextInfo: NULL];


/* end code */


The version without "types" is defined in NSSavePanel (the superclass of NSOpenPanel)


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSOpenPanel not respecting file types?
      • From: Dale Gillard <email@hidden>
References: 
 >Re: NSOpenPanel not respecting file types? (From: Dale Gillard <email@hidden>)

  • Prev by Date: Re: NSOpenPanel not respecting file types?
  • Next by Date: Re: NSOpenPanel not respecting file types?
  • Previous by thread: Re: NSOpenPanel not respecting file types?
  • Next by thread: Re: NSOpenPanel not respecting file types?
  • Index(es):
    • Date
    • Thread