Re: NSTextView/NSAttributedString supported file types
Re: NSTextView/NSAttributedString supported file types
- Subject: Re: NSTextView/NSAttributedString supported file types
- From: Jim Correia <email@hidden>
- Date: Wed, 8 Oct 2008 18:08:51 -0400
On Oct 8, 2008, at 5:46 PM, Ben Lachman wrote:
I have an open panel that I'd like to handle text a little more
fluidly. At the moment I call runModalForTypes with an array
composed of my best guesses at what NSMutableAttributedString can
figure out in its readFromData:... method. However I'm wondering if
there is some way of getting a list of file types that are supported
at run time instead of me hardcoding it. Any Ideas?
On NSAttributedString:
/* Methods to determine what types can be loaded as NSAttributedStrings
*/
+ (NSArray *)textUnfilteredFileTypes;
+ (NSArray *)textUnfilteredPasteboardTypes;
+ (NSArray *)textFileTypes;
+ (NSArray *)textPasteboardTypes;
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden