FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSAImageWell.h
Go to the documentation of this file.
1 //
2 // NSAImageWell.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 13. 4. 23..
6 // Copyright (c) 2013 youknowone.org. All rights reserved.
7 //
8 
14 #import <Cocoa/Cocoa.h>
15 
16 @protocol NSAImageWellDelegate;
17 
25 @interface NSAImageWell: NSImageView<NSDraggingDestination> {
26  id<NSAImageWellDelegate> _delegate;
27  NSURL *_imageURL;
28  NSMutableArray *_imageURLs, *_nonImageURLs;
30  struct {
37 }
38 
44 @property(nonatomic, assign) BOOL acceptsStringDragging;
48 @property(nonatomic, copy) NSURL *imageURL;
52 @property(nonatomic, strong) IBOutlet id<NSAImageWellDelegate> delegate;
53 
54 @end
55 
59 @protocol NSAImageWellDelegate <NSObject>
60 
61 @optional
68 - (BOOL)imageWellShouldAcceptURLString:(NSAImageWell *)imageWell;
69 
76 - (void)imageWell:(NSAImageWell *)imageWell didDraggingEntered:(id<NSDraggingInfo>)sender;
83 - (void)imageWell:(NSAImageWell *)imageWell didDraggingExited:(id<NSDraggingInfo>)sender;
90 - (void)imageWell:(NSAImageWell *)imageWell willReceiveDragging:(id<NSDraggingInfo>)sender;
97 - (void)imageWell:(NSAImageWell *)imageWell didReceiveDragging:(id<NSDraggingInfo>)sender;
98 
99 @end
NSMutableArray * _nonImageURLs
Definition: NSAImageWell.h:28
int delegateDidDraggingEntered
Definition: NSAImageWell.h:32
Real image well, described as image well in Interface Builder - allow a user to drag an image to it...
Definition: NSAImageWell.h:25
struct NSAImageWell::@1 _imageWellFlags
NSURL * _imageURL
Definition: NSAImageWell.h:27
int delegateDidDraggingExited
Definition: NSAImageWell.h:33
BOOL _acceptsStringDragging
Definition: NSAImageWell.h:29
int delegateDidReceiveDragging
Definition: NSAImageWell.h:35
NSMutableArray * _imageURLs
Definition: NSAImageWell.h:28
int delegateShouldAcceptURLString
Definition: NSAImageWell.h:31
int delegateWillReceiveDragging
Definition: NSAImageWell.h:34
id< NSAImageWellDelegate > _delegate
Definition: NSAImageWell.h:26
This protocol defines delegate methods for NSAImageWell objects.
Definition: NSAImageWell.h:59