ClosestStorm / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

NSImage warning with 10.8 #421

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Open a file from the terminal with mvim.

What is the expected output? What do you see instead?

Expected: no output.

Instead:

2012-08-14 10:17:07.879 MacVim[3256:707] *** WARNING: -[NSImage 
compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later. 
Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?

MacPorts MacVim @7.3.snapshot64_0+huge+python27+ruby on OS X 10.8.

Original issue reported on code.google.com by chro...@gmail.com on 14 Aug 2012 at 5:24

GoogleCodeExporter commented 9 years ago
Contrary to my initial bug report, the NSImage warning appears when using the 
command-t plugin. 

1. Open a file with mvim
2. Activate command-t, select another file.
3. NSImage warning is written to the terminal.

Original comment by chro...@gmail.com on 14 Aug 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Thanks for the report.

It turned out the deprecated method was being called inside the 
PSMTabBarControl framework, so each time you open a tab the message is logged 
(it had nothing to do with command-t).

I have pushed a patch.

(Why Apple chose to log that message at runtime instead of simply giving a 
warning when compiling is beyond me.)

Original comment by bjorn.winckler@gmail.com on 17 Aug 2012 at 6:12