Re: Can I set "no extension" as a document file type?
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