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

Re: Can't open specified type in NSOpenPanel


  • Subject: Re: Can't open specified type in NSOpenPanel
  • From: Randall Meadows <email@hidden>
  • Date: Mon, 23 Feb 2004 14:58:06 -0500

At 11:19 AM -0800 2/23/04, Nick Zitzmann wrote:

Because "types" has to be one of these two (I'm not sure which right now):

[NSArray arrayWithObjects:NSFileTypeForHFSTypeCode('asdf'), nil];
or
[NSArray arrayWithObjects:[NSNumber numberWithUnsignedLong:'asdf'], nil];

One of those ought to work; the documentation isn't too clear on this. But using the type "asdf" as you used it above only works if the file's extension is "asdf"; it doesn't work for creator codes.

Huh. I would have said the documentation was very clear:

"... allows selection of ones that match the types in fileTypes (an NSArray of file extensions and/or HFS file types)."

but also very WRONG. I s'pose a less of a cynic might claim ambiguity, but I don't see anything ambiguous about it. (Bug ID 3567369).

In any case, that was indeed the problem.

Thank you very much.
_______________________________________________
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: mmalcolm crawford <email@hidden>
References: 
 >Can't open specified type in NSOpenPanel (From: Randall Meadows <email@hidden>)
 >Re: Can't open specified type in NSOpenPanel (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSSearchField search template through IB
  • Next by Date: Re: [Slightly OT] Shareware donation collection
  • Previous by thread: Re: Can't open specified type in NSOpenPanel
  • Next by thread: Re: Can't open specified type in NSOpenPanel
  • Index(es):
    • Date
    • Thread