• 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: NSTextView/NSAttributedString supported file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView/NSAttributedString supported file types


  • Subject: Re: NSTextView/NSAttributedString supported file types
  • From: "Ken Ferry" <email@hidden>
  • Date: Wed, 8 Oct 2008 19:36:02 -0700

/* Methods that were deprecated in Mac OS 10.5. You can now use
+textTypes and +textUnfilteredTypes to get arrays of Uniform Type
Identifiers (UTIs).
*/
+ (NSArray *)textFileTypes
AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;
+ (NSArray *)textPasteboardTypes
AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;
+ (NSArray *)textUnfilteredFileTypes
AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;
+ (NSArray *)textUnfilteredPasteboardTypes
AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5;

-Ken

On Wed, Oct 8, 2008 at 7:33 PM, Ben Lachman <email@hidden> wrote:
> Thanks Jim.  Not sure how I missed that, its exactly what I was looking for.
>  Unfortunately it's deprecated in 10.5.  Know what the advised API to
> transition to is?
>
> ->Ben
> --
> Ben Lachman
> Acacia Tree Software
>
> http://acaciatreesoftware.com
>
> email: email@hidden
> twitter: @benlachman
> mobile: 740.590.0009
>
>
>
>
> On Oct 8, 2008, at 6:08 PM, Jim Correia wrote:
>
>> 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
>
_______________________________________________

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

References: 
 >NSTextView/NSAttributedString supported file types (From: Ben Lachman <email@hidden>)
 >Re: NSTextView/NSAttributedString supported file types (From: Jim Correia <email@hidden>)
 >Re: NSTextView/NSAttributedString supported file types (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: NSTextView/NSAttributedString supported file types
  • Next by Date: silly event question 'cuz i'm a n00b
  • Previous by thread: Re: NSTextView/NSAttributedString supported file types
  • Next by thread: Re: NSTextView/NSAttributedString supported file types
  • Index(es):
    • Date
    • Thread