Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 505 Bytes

README.textile

File metadata and controls

21 lines (13 loc) · 505 Bytes

MAImageView

MAImageView is an extremely basic CALayer based replacement for NSImageView.

Usage

MAImageView uses APIs that are only available as of Mac OS 10.6 and up.

Example

MAImageView *imageView = [[MAImageView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)];

[imageView setBorderColor:[NSColor blackColor]];
[imageView setBorderWidth:2];
[imageView setCornerRadius:10];
[imageView setImage:[NSImage imageNamed:@"Image.png"]];    

[self addSubview:imageView];