Re: How to specify the file type to Audio file when dragging...?
Re: How to specify the file type to Audio file when dragging...?
- Subject: Re: How to specify the file type to Audio file when dragging...?
- From: Bright <email@hidden>
- Date: Tue, 19 May 2009 11:28:02 +0800 (CST)
>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:].
>>
Hi
Thank you for your help.
I am a novice of Cocoa. So can you tell me detailed about the specify the file type to Audio File
when dragging a file to tableview?
I tried the "validateDrop method" and NSworkspace, but failed. Does this have relationship with UTIs?
thank you very much.
Bright
_______________________________________________
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