Cocoa开发:文档应用与异常处理全解析
1. 文档应用中混合颜色的添加
1.1 为GUI添加混合颜色样本
首先,要将混合颜色样本添加到文档窗口。在 CMDocument.h 文件中为每个样本添加一个出口。以下是添加出口的代码:
#import <Cocoa/Cocoa.h>
@class CMColorBlendView;
@interface CMDocument : NSPersistentDocument
@property (weak) IBOutlet CMColorBlendView *multiplyBlendView;
@property (weak) IBOutlet CMColorBlendView *screenBlendView;
@property (weak) IBOutlet CMColorBlendView *overlayBlendView;
@property (weak) IBOutlet CMColorBlendView *darkenBlendView;
@property (weak) IBOutlet CMColorBlendView *lightenBlendView;
@property (weak) IBOutlet CMColorBlendView *colorDodgeBlendView;
@property (weak) IBOutlet CMColorBlendView *colorBurnBlendView;
@property (weak) IBOutlet CMColorBlendView *softLigh
超级会员免费看
订阅专栏 解锁全文
9

被折叠的 条评论
为什么被折叠?



