Reputation: 45
Trying to compile Chromium Embedded framework on Yosemite Developer Preview gives me a few errors involving [NSApp setDelegate:self];
cefsimple_mac.mm with the error:
cefsimple_mac.mm:93:22: Incompatible pointer types sending 'SimpleAppDelegate *' to parameter of type 'id'
Obviously not a solution, but commenting this out provides more of these errors in the code as well.
I looked up NSApp setDelegate in the Mac Developer Pre-Release library, and it seems that it no longer works as intended in 10.10 (I don't want to say deprecated because I am going off of memory, and just know it was crossed out).
Does anyone know of a way I could fix this?
Upvotes: 1
Views: 456
Reputation: 856
I haven't tried CEF on 10.10, but looks like it's API change of NSApp in 10.10,
Here is a similar issue in Qt:
So the fix maybe replacing
[NSApp setDelegate:self]
with
[[NSApplication sharedApplication] setDelegate:self];
Upvotes: 1