Re: Subclassing IKImageView
Re: Subclassing IKImageView
- Subject: Re: Subclassing IKImageView
- From: "Jan E. Schotsman" <email@hidden>
- Date: Mon, 30 Jan 2012 17:19:19 +0100
On Jan 29, 2012, at 6:27 PM, Fritz Anderson wrote:
my next experiment would be to override the <NSDraggingDestination>
methods
Indeed, that way I can easily do what I need (limit image drags to
files and register dropped files):
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
BOOL accepted;
if ( /*no acceptable file in drag*/ ) accepted = NO;
else
{
accepted = [super accepted];
if ( accepted ) // register file
}
return accepted;
}
_______________________________________________
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