• 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: Proper UTI for accepting files dropped on my table view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper UTI for accepting files dropped on my table view?


  • Subject: Re: Proper UTI for accepting files dropped on my table view?
  • From: Rick Mann <email@hidden>
  • Date: Sat, 7 Aug 2010 02:34:17 -0700

I think you misunderstand (or I do). I don't want to specify a file of a particular type(s). I want to specify that a *file* is what I accept (as opposed to the contents of that file).

On Aug 7, 2010, at 02:29:47, Philippe Devallois wrote:

>
> On 7 août 2010, at 09:50, Rick Mann wrote:
>
>> I'm trying to understand how to call -registerForDraggedTypes: using UTIs, instead of PBoardTypes. I want my table view to accept files dragged in from the Finder. I accept multiple kinds of file. What's the right UTI to listen for? The 10.6 standard types don't seem to include anything that's obviously "file" type.
>>
>
> http://developer.apple.com/mac/library/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_intro/understand_utis_intro.html
>
> "
> Identifier Tags
>
> Each UTI can have one or more tags associated with it. These tags indicate alternate methods of type identification, such as filename extension, MIME type, or NSPasteboard type. You use these tags to assign specific extensions, MIME types, and so on, as being equivalent types in a UTI declaration.
>
> For example, the public.jpeg identifier declaration includes one OSType tag ('JPEG') and two filename extension tags (.jpg and .jpeg). These tags are then considered alternate identifiers for the public.jpeg type.
>
> Essentially, you use the tags to group all the possible methods of identifying a type under one UTI. That is, a file with extension .jpg or .jpeg, or an OSType of 'JPEG' are all considered to be of type public.jpeg.
> "

_______________________________________________

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

  • Follow-Ups:
    • Re: Proper UTI for accepting files dropped on my table view?
      • From: Philippe Devallois <email@hidden>
References: 
 >Proper UTI for accepting files dropped on my table view? (From: Rick Mann <email@hidden>)
 >Re: Proper UTI for accepting files dropped on my table view? (From: Philippe Devallois <email@hidden>)

  • Prev by Date: Re: Proper UTI for accepting files dropped on my table view?
  • Next by Date: Re: Proper UTI for accepting files dropped on my table view?
  • Previous by thread: Re: Proper UTI for accepting files dropped on my table view?
  • Next by thread: Re: Proper UTI for accepting files dropped on my table view?
  • Index(es):
    • Date
    • Thread