BathyScapheのアイコンセット生成&適用ツール
| Revision | ab82273295fb630ed132942963c55b9287db5106 (tree) |
|---|---|
| Time | 2012-05-29 00:23:47 |
| Author | masakih <masakih@user...> |
| Commiter | masakih |
[Mod] actionから別のactionを呼ばないようにした
| @@ -730,7 +730,7 @@ static BOOL createImageFileWapper( NSImage *inImage, NSString *inImageName, NSFi | ||
| 730 | 730 | |
| 731 | 731 | #pragma mark- |
| 732 | 732 | #pragma mark## Actions ## |
| 733 | --(IBAction)copy:(id)sender | |
| 733 | +- (void)storeToPastboard | |
| 734 | 734 | { |
| 735 | 735 | NSPasteboard *pb = [NSPasteboard generalPasteboard]; |
| 736 | 736 | NSMutableArray *types = [NSMutableArray array]; |
| @@ -750,6 +750,10 @@ static BOOL createImageFileWapper( NSImage *inImage, NSString *inImageName, NSFi | ||
| 750 | 750 | } |
| 751 | 751 | } |
| 752 | 752 | } |
| 753 | +-(IBAction)copy:(id)sender | |
| 754 | +{ | |
| 755 | + [self storeToPastboard]; | |
| 756 | +} | |
| 753 | 757 | |
| 754 | 758 | -(IBAction)paste:(id)sender |
| 755 | 759 | { |
| @@ -761,8 +765,8 @@ static BOOL createImageFileWapper( NSImage *inImage, NSString *inImageName, NSFi | ||
| 761 | 765 | } |
| 762 | 766 | -(IBAction)cut:(id)sender |
| 763 | 767 | { |
| 764 | - [self copy:sender]; | |
| 765 | - [self delete:sender]; | |
| 768 | + [self storeToPastboard]; | |
| 769 | + [self setImage:nil]; | |
| 766 | 770 | } |
| 767 | 771 | |
| 768 | 772 | -(NSArray *)acceptPasteTypes |