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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to