Re: prevent drag from QTMovieView
Re: prevent drag from QTMovieView
- Subject: Re: prevent drag from QTMovieView
- From: Rainer Standke <email@hidden>
- Date: Mon, 10 May 2010 09:02:56 -0700
That is a very good idea, and it works, thank you. I have also tried this on the QTMovie:
[newMovie setDraggable:NO];
and that works too. However, there is no real telling what setting a private iVar will do, so I am glad you told me about a cleaner way of this.
R.
On May 8, 2010, at 13:28 , douglas welton wrote:
> did you try overriding the -mouseDragged: method in your subclass?
>
> On May 8, 2010, at 1:15 AM, Rainer Standke wrote:
>
>> Hello,
>>
>> I have a Collection View whose prototype view includes a QTMovieView. I need the collection view to be a drag source, and that works fine.
>>
>> I need the QTMovieView to not be a drag source, so I subclassed it with a method that looks like this:
>>
>> - (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
>> {
>> NSLog(@"nodrag");
>> return NSDragOperationNone;
>> }
>>
>> I can see "nodrag" logged when I start dragging from the movie view, and then a dragging image peels off, which is what I don't want.
>>
>> For good measure I have turned off 'Editable' for the view in IB , and I am setting the movie to be not editable when I initialize it, to no avail.
>>
>> I have done the same for the prototype view that includes the movie view, to no avail, either.
>>
>> Any ideas about this one?
>>
>> As always, thanks!
>>
>> Rainer_______________________________________________
>
_______________________________________________
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