From: Torsten B. <re...@ma...> - 2012-09-27 18:42:55
|
Hi, I had a look into the code for the dialogs on the Mac (tkMacOSXDialog.c) and found a Cocoa method there that has been marked deprecated by Apple for OS X 10.6. It is the method 'runModalForDirectory' that is used e.g. in the code for tk_getOpenFile: http://developer.apple.com/library/mac/#documentation/cocoa/reference/ApplicationKit/Classes/NSOpenPanel_Class/DeprecationAppendix/AppendixADeprecatedAPI.html Apple says, the method 'runModal' should be used instead. This is a method that existed since Mac OS X 10.0 and as such would not cause any trouble with Tk-Cocoa running on older versions of OS X. What is the feeling in the Tcl community? Should we keep using deprecated methods until Apple removes them or should we actively try to maintain the code and update these methods when such issues are emerging? I haven't looked if there are other methods in this category, but there might well be more. Regards, Torsten |