Skip to content

mikeahmarani/MAImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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];

About

Extremely simple layer based replacement for NSImageView.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published