Created
December 5, 2011 03:07
-
-
Save rentzsch/1432129 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSView *contentView = [[self window] contentView]; | |
rootLayer = [[[CALayer alloc] init] autorelease]; | |
[contentView setLayer:rootLayer]; | |
[contentView setWantsLayer:YES]; | |
NSLog(@"%@", [rootLayer valueForKey:@"view"]); // => <NSView: 0x32fbf0> | |
NSLog(@"%@", rootLayer.delegate); // => (null) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment