Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples do not build #75

Open
iosdev-republicofapps opened this issue Dec 26, 2016 · 4 comments
Open

Examples do not build #75

iosdev-republicofapps opened this issue Dec 26, 2016 · 4 comments

Comments

@iosdev-republicofapps
Copy link

Trying to compile any of the examples in the examples workspace gives the following error:

Butter/BTRView.m:130:16: No visible @interface for 'NSView' declares the selector 'actionForLayer:forKey:'

Any ideas?

Is this framework still under active development and I'd be happy to help if any help is needed. :-)

Thanks!

@jwilling
Copy link
Member

@indragiek Happen to know why -actionForLayer:forKey: was removed from NSView in 10.12? I haven't kept up with OS X developer release notes, not sure if you have either.

@indragiek
Copy link
Contributor

@jwilling
Copy link
Member

@indragiek Yeah you're right. I guess what happened then is that NSView was declared as conforming to CALayerDelegate but no longer is.

@johndpope
Copy link

ok - stupid hack solution / unsupported / don't call me if and when this breaks / blows up.

in header

@interface HackView : NSView <CALayerDelegate>
@end

@interface BTRView : HackView <CALayerDelegate>
@end

in implementation 
@implementation HackView
@end


this 
     [NSApp sendAction:action.action to:action.target]; -> 
to this
     [NSApp sendAction:action.action to:action.target from:self];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants