[cfe-dev] False positive warning: "warning: 'terminate:' is deprecated"?

Sean McBride sean at rogue-research.com
Tue Dec 13 13:07:08 PST 2011


On Tue, 13 Dec 2011 12:20:43 -0800, Nico Weber said:

>This breaks the chromium build with the 10.6 sdk. So the recommended
>fix is to explicitly typecast NSApp everywhere it's used?

Another solution is to not use the NSApp global (which is 'id'), but instead call [NSApplication sharedApplication] (which is 'NSApplication*').

I filed rdar://10566004 asking that NSApp be changed from 'id' to 'NSApplication*'.

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada






More information about the cfe-dev mailing list