• 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 I set "no extension" as a document file type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I set "no extension" as a document file type?


  • Subject: Re: Can I set "no extension" as a document file type?
  • From: "Stephen Deken" <email@hidden>
  • Date: Wed, 27 Sep 2006 15:49:39 -0500

Anyone know a way to enable ONLY files with NO extension?

Assign the open panel a delegate. Add the method -[panel:shouldShowFilename:] to the delegate, and look for a period in the filename. If it has one, return NO. Otherwise, return YES.

This will not associate the document with your application in the
Finder, but I assume that's beyond the scope of what you're trying to
accomplish.

--sjd;
_______________________________________________
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: Can I set "no extension" as a document file type? [solved]
      • From: Jerry Krinock <email@hidden>
References: 
 >Can I set "no extension" as a document file type? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: converting NSImage
  • Next by Date: Re: Can I set "no extension" as a document file type?
  • Previous by thread: Can I set "no extension" as a document file type?
  • Next by thread: Re: Can I set "no extension" as a document file type? [solved]
  • Index(es):
    • Date
    • Thread