Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Playground/Playground/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ @implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
NSView *redView = [[NSView alloc] initWithFrame:NSMakeRect(20, 20, 100, 200)];
[redView setWantsLayer:YES];
[[redView layer] setBackgroundColor:NSColor.redColor.CGColor];
[[_window contentView] addSubview:redView];
}


Expand Down