Tk Source Code

View Ticket
Login
Ticket UUID: 0140de255afc5cc8a4daaf335bc7414671380e64
Title: Aqua : warnings when compiling Tk's trunk on macOS12 (without -mmacosx-version-min option)
Type: Support Version: trunk
Submitter: nab Created on: 2021-11-04 07:15:50
Subsystem: (unused) Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2021-11-10 14:35:20
Resolution: Duplicate Closed By: marc_culler
    Closed on: 2021-11-10 14:35:20
Description:
Hi Marc,
maybe you're aware of such warnings...
there's three files impacted tkMacOSXBitmap.c, tkMacOSXColor.c and tkMacOSXDialog.c
Please note that those warnings are also present when compiling Tk in deploy mode.
They are not present when I'm setting -mmacosx-version-min= at compile time

here's what I do using https://core.tcl-lang.org/tk/info/231581c8be3ab1d5

make -C macosx develop  CFLAGS="-fno-omit-frame-pointer -Og -g"
sudo make -C macosx install-develop

and here's resulting warnings:
/usr/bin/clang -c -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../unix -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../generic -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../bitmaps -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../xlib -fno-omit-frame-pointer -Og -g -Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -Wc++-compat -fextended-identifiers -fno-common -DBUILD_tk -I/Users/nico/daylight/lib/framework/tcl-8747737d99/generic -I/Users/nico/daylight/lib/framework/tcl-8747737d99/unix -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.7\" -DPACKAGE_STRING=\"tk\ 8.7\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_STDBOOL_H=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DMAC_OSX_TK=1 -DTK_MAC_DEBUG=1 -DTK_FRAMEWORK=1     -DTCL_NO_DEPRECATED -std=gnu99 -x objective-c -DTK_FRAMEWORK_VERSION=\"8.7\" -DUSE_TCL_STUBS /Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:177:25: warning: 'UTTypeCreatePreferredIdentifierForTag' is deprecated: first deprecated in macOS 12.0 - Use the UTType class instead. [-Wdeprecated-declarations]
    NSString *iconUTI = OSTYPE_TO_UTI(PTR2UINT(source));
                        ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:52:38: note: expanded from macro 'OSTYPE_TO_UTI'
#define OSTYPE_TO_UTI(x) (NSString *)UTTypeCreatePreferredIdentifierForTag( \
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:317:1: note: 'UTTypeCreatePreferredIdentifierForTag' has been explicitly marked deprecated here
UTTypeCreatePreferredIdentifierForTag(
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:177:25: warning: 'kUTTagClassOSType' is deprecated: first deprecated in macOS 12.0 - HFS file types are obsolete. [-Wdeprecated-declarations]
    NSString *iconUTI = OSTYPE_TO_UTI(PTR2UINT(source));
                        ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:53:6: note: expanded from macro 'OSTYPE_TO_UTI'
     kUTTagClassOSType, UTCreateStringForOSType(x), nil)
     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:270:26: note: 'kUTTagClassOSType' has been explicitly marked deprecated here
extern const CFStringRef kUTTagClassOSType                           API_DEPRECATED("HFS file types are obsolete.", macos(10.3, 12.0)) API_UNAVAILABLE(ios, tvos, watchos);
                         ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:177:25: warning: 'UTCreateStringForOSType' is deprecated: first deprecated in macOS 12.0 - HFS type codes are obsolete. [-Wdeprecated-declarations]
    NSString *iconUTI = OSTYPE_TO_UTI(PTR2UINT(source));
                        ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:53:25: note: expanded from macro 'OSTYPE_TO_UTI'
     kUTTagClassOSType, UTCreateStringForOSType(x), nil)
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:607:1: note: 'UTCreateStringForOSType' has been explicitly marked deprecated here
UTCreateStringForOSType(OSType inOSType)                             API_DEPRECATED("HFS type codes are obsolete.", macos(10.3, 12.0)) API_UNAVAILABLE(ios, tvos, watchos);
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:179:9: warning: 'iconForFileType:' is deprecated: first deprecated in macOS 12.0 - Use -[NSWorkspace iconForContentType:] instead. [-Wdeprecated-declarations]
                             iconForFileType: iconUTI];
                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:456:1: note: 'iconForFileType:' has been explicitly marked deprecated here
- (NSImage *)iconForFileType:(NSString *)fileType API_DEPRECATED("Use -[NSWorkspace iconForContentType:] instead.", macos(10.0, 12.0));
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:271:45: warning: 'iconForFileType:' is deprecated: first deprecated in macOS 12.0 - Use -[NSWorkspace iconForContentType:] instead. [-Wdeprecated-declarations]
            image = [[NSWorkspace sharedWorkspace] iconForFileType:string];
                                                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:456:1: note: 'iconForFileType:' has been explicitly marked deprecated here
- (NSImage *)iconForFileType:(NSString *)fileType API_DEPRECATED("Use -[NSWorkspace iconForContentType:] instead.", macos(10.0, 12.0));
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:276:42: warning: 'iconForFileType:' is deprecated: first deprecated in macOS 12.0 - Use -[NSWorkspace iconForContentType:] instead. [-Wdeprecated-declarations]
                image = [[NSWorkspace sharedWorkspace] iconForFileType:string];
                                                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:456:1: note: 'iconForFileType:' has been explicitly marked deprecated here
- (NSImage *)iconForFileType:(NSString *)fileType API_DEPRECATED("Use -[NSWorkspace iconForContentType:] instead.", macos(10.0, 12.0));
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:317:26: warning: 'UTTypeCreatePreferredIdentifierForTag' is deprecated: first deprecated in macOS 12.0 - Use the UTType class instead. [-Wdeprecated-declarations]
            NSString *iconUTI = OSTYPE_TO_UTI(iconType);
                                ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:52:38: note: expanded from macro 'OSTYPE_TO_UTI'
#define OSTYPE_TO_UTI(x) (NSString *)UTTypeCreatePreferredIdentifierForTag( \
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:317:1: note: 'UTTypeCreatePreferredIdentifierForTag' has been explicitly marked deprecated here
UTTypeCreatePreferredIdentifierForTag(
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:317:26: warning: 'kUTTagClassOSType' is deprecated: first deprecated in macOS 12.0 - HFS file types are obsolete. [-Wdeprecated-declarations]
            NSString *iconUTI = OSTYPE_TO_UTI(iconType);
                                ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:53:6: note: expanded from macro 'OSTYPE_TO_UTI'
     kUTTagClassOSType, UTCreateStringForOSType(x), nil)
     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:270:26: note: 'kUTTagClassOSType' has been explicitly marked deprecated here
extern const CFStringRef kUTTagClassOSType                           API_DEPRECATED("HFS file types are obsolete.", macos(10.3, 12.0)) API_UNAVAILABLE(ios, tvos, watchos);
                         ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:317:26: warning: 'UTCreateStringForOSType' is deprecated: first deprecated in macOS 12.0 - HFS type codes are obsolete. [-Wdeprecated-declarations]
            NSString *iconUTI = OSTYPE_TO_UTI(iconType);
                                ^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:53:25: note: expanded from macro 'OSTYPE_TO_UTI'
     kUTTagClassOSType, UTCreateStringForOSType(x), nil)
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h:607:1: note: 'UTCreateStringForOSType' has been explicitly marked deprecated here
UTCreateStringForOSType(OSType inOSType)                             API_DEPRECATED("HFS type codes are obsolete.", macos(10.3, 12.0)) API_UNAVAILABLE(ios, tvos, watchos);
^
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXBitmap.c:319:10: warning: 'iconForFileType:' is deprecated: first deprecated in macOS 12.0 - Use -[NSWorkspace iconForContentType:] instead. [-Wdeprecated-declarations]
                                     iconForFileType: iconUTI];
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:456:1: note: 'iconForFileType:' has been explicitly marked deprecated here
- (NSImage *)iconForFileType:(NSString *)fileType API_DEPRECATED("Use -[NSWorkspace iconForContentType:] instead.", macos(10.0, 12.0));
^
10 warnings generated.




/usr/bin/clang -c -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../unix -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../generic -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../bitmaps -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../xlib -fno-omit-frame-pointer -Og -g -Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -Wc++-compat -fextended-identifiers -fno-common -DBUILD_tk -I/Users/nico/daylight/lib/framework/tcl-8747737d99/generic -I/Users/nico/daylight/lib/framework/tcl-8747737d99/unix -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.7\" -DPACKAGE_STRING=\"tk\ 8.7\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_STDBOOL_H=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DMAC_OSX_TK=1 -DTK_MAC_DEBUG=1 -DTK_FRAMEWORK=1     -DTCL_NO_DEPRECATED -std=gnu99 -x objective-c -DTK_FRAMEWORK_VERSION=\"8.7\" -DUSE_TCL_STUBS /Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXColor.c
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXColor.c:431:28: warning: 'currentAppearance' is deprecated: first deprecated in macOS 12.0 - Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance. [-Wdeprecated-declarations]
            name = [[NSAppearance currentAppearance] name];
                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: property 'currentAppearance' is declared deprecated here
@property (class, null_resettable, strong) NSAppearance *currentAppearance API_DEPRECATED("Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance.", macos(10.9, 12.0));
                                                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: 'currentAppearance' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXColor.c:627:53: warning: 'currentAppearance' is deprecated: first deprecated in macOS 12.0 - Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance. [-Wdeprecated-declarations]
                    NSAppearance *savedAppearance = [NSAppearance currentAppearance];
                                                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: property 'currentAppearance' is declared deprecated here
@property (class, null_resettable, strong) NSAppearance *currentAppearance API_DEPRECATED("Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance.", macos(10.9, 12.0));
                                                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: 'currentAppearance' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXColor.c:637:21: warning: 'setCurrentAppearance:' is deprecated: first deprecated in macOS 12.0 - Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance. [-Wdeprecated-declarations]
                    [NSAppearance setCurrentAppearance:windowAppearance];
                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: property 'currentAppearance' is declared deprecated here
@property (class, null_resettable, strong) NSAppearance *currentAppearance API_DEPRECATED("Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance.", macos(10.9, 12.0));
                                                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: 'setCurrentAppearance:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXColor.c:639:21: warning: 'setCurrentAppearance:' is deprecated: first deprecated in macOS 12.0 - Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance. [-Wdeprecated-declarations]
                    [NSAppearance setCurrentAppearance:savedAppearance];
                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: property 'currentAppearance' is declared deprecated here
@property (class, null_resettable, strong) NSAppearance *currentAppearance API_DEPRECATED("Use -performAsCurrentDrawingAppearance: to temporarily set the drawing appearance, or +currentDrawingAppearance to access the currently drawing appearance.", macos(10.9, 12.0));
                                                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAppearance.h:28:58: note: 'setCurrentAppearance:' has been explicitly marked deprecated here
4 warnings generated.




/usr/bin/clang -c -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../unix -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../generic -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../bitmaps -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx -I/Users/nico/daylight/lib/framework/tk-231581c8/unix/../xlib -fno-omit-frame-pointer -Og -g -Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -Wc++-compat -fextended-identifiers -fno-common -DBUILD_tk -I/Users/nico/daylight/lib/framework/tcl-8747737d99/generic -I/Users/nico/daylight/lib/framework/tcl-8747737d99/unix -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.7\" -DPACKAGE_STRING=\"tk\ 8.7\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DTCL_CFGVAL_ENCODING=\"utf-8\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_STDBOOL_H=1 -DTCL_SHLIB_EXT=\".dylib\" -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DMAC_OSX_TK=1 -DTK_MAC_DEBUG=1 -DTK_FRAMEWORK=1     -DTCL_NO_DEPRECATED -std=gnu99 -x objective-c -DTK_FRAMEWORK_VERSION=\"8.7\" -DUSE_TCL_STUBS /Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:315:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [openpanel setAllowedFileTypes:nil];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:319:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [openpanel setAllowedFileTypes:allowedtypes];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:332:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [savepanel setAllowedFileTypes:nil];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:336:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [savepanel setAllowedFileTypes:allowedtypes];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:813:17: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
            [openpanel setAllowedFileTypes:filterInfo.allowedExtensions];
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:815:17: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
            [openpanel setAllowedFileTypes:filterInfo.allowedExtensions];
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:1087:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [savepanel setAllowedFileTypes:[filterInfo.fileTypeExtensions objectAtIndex:filterInfo.fileTypeIndex]];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
/Users/nico/daylight/lib/framework/tk-231581c8/unix/../macosx/tkMacOSXDialog.c:1099:13: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations]
        [savepanel setAllowedFileTypes:AllowedFileTypes];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here
@property (nullable, copy) NSArray<NSString *> *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
8 warnings generated.
User Comments: marc_culler (claiming to be Marc Culler) added on 2021-11-10 14:35:20:
Closing this as a duplicate of [33de843084].

marc_culler (claiming to be Marc Culler) added on 2021-11-05 02:43:51:
Yes, I am aware of this.  It is the subject of ticket [33de843084].  However
I only saw those warnings with the beta release, as I said in the ticket.
I did not see them with the actual release.  Maybe I am mistaken, but I thought
Apple decided to wait until next year to deprecate the 4-character OSType
codes.  Anyway, it is a chore to deal with and not urgent.