• 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: How to limit the file type when dragging?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to limit the file type when dragging?


  • Subject: Re: How to limit the file type when dragging?
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 13 May 2009 12:29:52 -0400
  • Organization: Rogue Research Inc.

On 5/13/09 9:58 AM, Nick Zitzmann said:

>> But  how limit the file type to sound file only available when drag
>> and drop files into tableview?
>
>
>You need to check for that in your validateDrop method, and return YES
>if the desired file type is detected and NO otherwise.

And you can check the file's type by using [NSWorkspace typeOfFile:error:].

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: 
 >How to limit the file type when dragging? (From: Bright <email@hidden>)
 >Re: How to limit the file type when dragging? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Subclassing breaks bindings?
  • Next by Date: Re: What header has enum for NSPOSIXErrorDomain?
  • Previous by thread: Re: How to limit the file type when dragging?
  • Next by thread: Re: How to specify the file type to Audio file when dragging...?
  • Index(es):
    • Date
    • Thread