• 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: Subclassing IKImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Subclassing IKImageView (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Subclassing IKImageView (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Re: NSPopUpButton Binding Frustration
  • Previous by thread: Re: Subclassing IKImageView
  • Next by thread: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.
  • Index(es):
    • Date
    • Thread