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

Jens Ayton mailing-lists.jens at ayton.se
Fri Dec 23 15:32:26 PST 2011


On Dec 23, 2011, at 17:00, Sean McBride wrote:
> On Tue, 13 Dec 2011 23:37:49 +0100, Jean-Daniel Dupas said:
>>> I filed rdar://10566004 asking that NSApp be changed from 'id' to
>> 'NSApplication*'.
>> 
>> Though it may look easy to fix, I would not rely on Apple to fix this
>> soon.
> 
> It doesn't just _look_ easy to fix, it surely is easy, no? :)  Anyway, I thought you'd be amused to know that the bug has come back as a dupe of rdar://2745084, which, looking at my old bugs, puts it at around August 2001.  Wow!

Mechanically easy, certainly, but it has implications. NSApp is not necessarily an instance of NSApplication; it can be an instance of a subclass specified in Info.plist. Changing its type would break an unknowable amount of existing, correct code. I assume radar 2745084 is marked Works Correctly for this reason.


-- 
Jens Ayton





More information about the cfe-dev mailing list