1999-07-15 05:52:55 +00:00
|
|
|
/*
|
1997-08-04 20:42:56 +00:00
|
|
|
externs.m
|
|
|
|
|
|
|
|
External data
|
|
|
|
|
2017-07-26 12:23:00 +00:00
|
|
|
Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
1997-08-04 20:42:56 +00:00
|
|
|
|
|
|
|
Author: Scott Christley <scottc@net-community.com>
|
|
|
|
Date: August 1997
|
1999-07-15 05:52:55 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
1997-08-04 20:42:56 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
1999-07-15 05:52:55 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
1997-08-04 20:42:56 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2007-10-29 21:16:17 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
1999-07-15 05:52:55 +00:00
|
|
|
*/
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2010-05-24 10:48:14 +00:00
|
|
|
#import "config.h"
|
|
|
|
#import <Foundation/NSString.h>
|
2020-03-26 14:19:32 +00:00
|
|
|
#import <Foundation/NSObjCRuntime.h>
|
|
|
|
|
2013-01-29 08:35:49 +00:00
|
|
|
#import "AppKit/NSApplication.h"
|
2010-05-24 10:48:14 +00:00
|
|
|
#import "AppKit/NSEvent.h"
|
2020-01-17 15:06:00 +00:00
|
|
|
#import "AppKit/NSAppearance.h"
|
1997-08-04 20:42:56 +00:00
|
|
|
|
|
|
|
// Global strings
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSModalPanelRunLoopMode = @"NSModalPanelRunLoopMode";
|
|
|
|
NSString *NSEventTrackingRunLoopMode = @"NSEventTrackingRunLoopMode";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2013-01-29 08:35:49 +00:00
|
|
|
const double NSAppKitVersionNumber = NSAppKitVersionNumber10_4;
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
//
|
1999-07-15 05:52:55 +00:00
|
|
|
// Global Exception Strings
|
1997-08-04 20:42:56 +00:00
|
|
|
//
|
2020-03-26 14:19:32 +00:00
|
|
|
NSExceptionName NSAbortModalException = @"NSAbortModalException";
|
|
|
|
NSExceptionName NSAbortPrintingException = @"NSAbortPrintingException";
|
|
|
|
NSExceptionName NSAppKitIgnoredException = @"NSAppKitIgnoredException";
|
|
|
|
NSExceptionName NSAppKitVirtualMemoryException = @"NSAppKitVirtualMemoryException";
|
|
|
|
NSExceptionName NSBadBitmapParametersException = @"NSBadBitmapParametersException";
|
|
|
|
NSExceptionName NSBadComparisonException = @"NSBadComparisonException";
|
|
|
|
NSExceptionName NSBadRTFColorTableException = @"NSBadRTFColorTableException";
|
|
|
|
NSExceptionName NSBadRTFDirectiveException = @"NSBadRTFDirectiveException";
|
|
|
|
NSExceptionName NSBadRTFFontTableException = @"NSBadRTFFontTableException";
|
|
|
|
NSExceptionName NSBadRTFStyleSheetException = @"NSBadRTFStyleSheetException";
|
|
|
|
NSExceptionName NSBrowserIllegalDelegateException = @"NSBrowserIllegalDelegateException";
|
|
|
|
NSExceptionName NSColorListIOException = @"NSColorListIOException";
|
|
|
|
NSExceptionName NSColorListNotEditableException = @"NSColorListNotEditableException";
|
|
|
|
NSExceptionName NSDraggingException = @"NSDraggingException";
|
|
|
|
NSExceptionName NSFontUnavailableException = @"NSFontUnavailableException";
|
|
|
|
NSExceptionName NSIllegalSelectorException = @"NSIllegalSelectorException";
|
|
|
|
NSExceptionName NSImageCacheException = @"NSImageCacheException";
|
|
|
|
NSExceptionName NSNibLoadingException = @"NSNibLoadingException";
|
|
|
|
NSExceptionName NSPPDIncludeNotFoundException = @"NSPPDIncludeNotFoundException";
|
|
|
|
NSExceptionName NSPPDIncludeStackOverflowException = @"NSPPDIncludeStackOverflowException";
|
|
|
|
NSExceptionName NSPPDIncludeStackUnderflowException = @"NSPPDIncludeStackUnderflowException";
|
|
|
|
NSExceptionName NSPPDParseException = @"NSPPDParseException";
|
|
|
|
NSExceptionName NSPrintOperationExistsException = @"NSPrintOperationExistsException";
|
|
|
|
NSExceptionName NSPrintPackageException = @"NSPrintPackageException";
|
|
|
|
NSExceptionName NSPrintingCommunicationException = @"NSPrintingCommunicationException";
|
|
|
|
NSExceptionName NSRTFPropertyStackOverflowException = @"NSRTFPropertyStackOverflowException";
|
|
|
|
NSExceptionName NSTIFFException = @"NSTIFFException";
|
|
|
|
NSExceptionName NSTextLineTooLongException = @"NSTextLineTooLongException";
|
|
|
|
NSExceptionName NSTextNoSelectionException = @"NSTextNoSelectionException";
|
|
|
|
NSExceptionName NSTextReadException = @"NSTextReadException";
|
|
|
|
NSExceptionName NSTextWriteException = @"NSTextWriteException";
|
|
|
|
NSExceptionName NSTypedStreamVersionException = @"NSTypedStreamVersionException";
|
|
|
|
NSExceptionName NSWindowServerCommunicationException = @"NSWindowServerCommunicationException";
|
|
|
|
NSExceptionName NSWordTablesReadException = @"NSWordTablesReadException";
|
|
|
|
NSExceptionName NSWordTablesWriteException = @"NSWordTablesWriteException";
|
|
|
|
|
|
|
|
NSExceptionName GSWindowServerInternalException = @"WindowServerInternal";
|
2002-04-10 22:04:39 +00:00
|
|
|
|
2009-11-08 19:26:49 +00:00
|
|
|
// NSAnimation
|
|
|
|
NSString* NSAnimationProgressMarkNotification
|
|
|
|
= @"NSAnimationProgressMarkNotification";
|
|
|
|
NSString *NSAnimationProgressMark = @"NSAnimationProgressMark";
|
|
|
|
NSString *NSAnimationTriggerOrderIn = @"NSAnimationTriggerOrderIn";
|
|
|
|
NSString *NSAnimationTriggerOrderOut = @"NSAnimationTriggerOrderOut";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// Application notifications
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationDidBecomeActiveNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationDidBecomeActiveNotification";
|
2007-07-24 08:40:58 +00:00
|
|
|
NSString *NSApplicationDidChangeScreenParametersNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationDidChangeScreenParametersNotification";
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationDidFinishLaunchingNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationDidFinishLaunchingNotification";
|
|
|
|
NSString *NSApplicationDidHideNotification = @"NSApplicationDidHideNotification";
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationDidResignActiveNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationDidResignActiveNotification";
|
|
|
|
NSString *NSApplicationDidUnhideNotification = @"NSApplicationDidUnhideNotification";
|
|
|
|
NSString *NSApplicationDidUpdateNotification = @"NSApplicationDidUpdateNotification";
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationWillBecomeActiveNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationWillBecomeActiveNotification";
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationWillFinishLaunchingNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationWillFinishLaunchingNotification";
|
|
|
|
NSString *NSApplicationWillTerminateNotification = @"NSApplicationWillTerminateNotification";
|
|
|
|
NSString *NSApplicationWillHideNotification = @"NSApplicationWillHideNotification";
|
1999-07-15 05:52:55 +00:00
|
|
|
NSString *NSApplicationWillResignActiveNotification
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSApplicationWillResignActiveNotification";
|
|
|
|
NSString *NSApplicationWillUnhideNotification = @"NSApplicationWillUnhideNotification";
|
|
|
|
NSString *NSApplicationWillUpdateNotification = @"NSApplicationWillUpdateNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
Change Log
Mon. 20-Nov-2006 Mark Tracy <tracy454 at concentric dot net>
Many changes related to bitmap images
1. NSBitmapImateRep attribute global strings were not defined
Fix: add definitions to externs.h, and declarations to NSBitmapImageRep.h
Comment: Two strings defined in Cocoa were commented out: NSImageColorSyncData
is proprietary to Apple, and NSImageEXIFData has no support elsewhere in
GNUstep. I propose adding GSImageICCProfileData if and when color management
is added to GNUstep.
2. LZW compression in TIFF was disabled for lack of a test of its availability
Fix: Implement NSTiffIsCodecConfigured(codec) in tiff.m
Comment: As of libtiff-3.7.0, there is a function call in the API to test
availability at runtime. For libtiff-3.6.0 (earlier?) there are macros
#defined in tiffconf.h. The implementation check the library version at
compile time, and uses one of the two methods. I have not tested the
second method for lack of an installation of an old libtiff.
3. -canCompressUsing: relied on a static list of capabilities
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: The static list could be wrong, as it was on my system. Also
eliminate the supports_lzw_compression flag.
4. +getTIFFCompressionTypes:count: relied on a static list of compressors.
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: Compares GNUstep supported compressors against actual availability.
Also change the private instance methods _localFromCompressionType and
_compressionTypeFromLocal to private class methods so that they can be used
in -initWithTIFFImage:number: and -TIFFRepresentationUsingCompression:factor:
and +getTIFFCompressionTypes:count: This is probably a clumsy implementation
but it works.
5. -setProperty:toValue: and -valueForProperty: were not implemented
Fix: Add a new instance variable NSMutableDictionary * _properties to
NSBitmapImageRep.h and implemented accessors in NSBitmapImageRep.m. Patch
-_initFromTIFFImage to set compression type and factor in _properties.
Comment: This feature is used to pass options to and from JPEG, PNG, TIFF, and
GIF in Cocoa, although the docs are kind of vague. In one case the Cocoa docs
said the properties were set when reading a TIFF, but the implementation
didn't; I chose to implement the docs. Cocoa does use properties when
exporting bitmaps, so I implemented that.
6. Checked and updated NSBitmapImageFileType in NSBitmapImageRep.h
Fix: confirmed the enumeration values against Cocoa, and added
NSJPEG2000FileType = 5
Comment: JPEG-2000 is not implemented, just reserved a space for it.
7. -representationUsingType:properties: was not implemented
Fix: Implement export of TIFF, JPEG, GIF and PNG in NSBitmapImage.m
Comment: See the change notes for JPEG, GIF, and PNG for more. BMP and JPEG-2000
are not implemented; they just log a message to that effect. As apparently
Cocoa does it this way, if you pass nil for properties, it falls back to
the internal _properties, and if that is empty, there are some safe defaults.
8. +representationfOfImageRepsInArray:UsingType:properties: was not implemented
Fix: Partially implement in NSBitmapImageRep.m
Comment: I just stole the incomplete code from
+TIFFRepresentationOfImageRepsInArray: since I have yet to find an explanation
of how this really ought to work.
9. JPEG export didn't handle alpha channel, properties or errors.
Fix: Add -_JPEGRepresentationWithProperties:errorMessage: to
NSBitmapImageRep+JPEG.h and greatly rework Nicolas Roard's code in
NSBitmapImageRep+JPEG.m. Patch -_initBitmapFromJPEG:errorMessage to
write properties.
Comment: Major rewrite of Nicolas Roard's JPEG export code.
To do: Support for planar bitmaps and support for colorspaces other than
RGB(A).
10. PNG export not implemented
Fix: Add -_PNGRepresentationWithProperties: to
NSBitmapImageRep+PNG.h and implement NSBitmapImageRep+PNG.m
Comment: No support yet for planar bitmaps. Only supports
NS*WhiteColorSpace and NS*RGBColorSpace. Does support alpha. Support for
reading and writing NSImageGamma is experimental. In keeping with Cocoa,
the property NSImageGamma ranges from 0.0 to 1.0; representing the range
of minimum supported gamma to maximum supported gamma, in this case 1.0
to 2.5. This is in contrast to GNUstep where by convention the property
would range from 0.0 to 255.0.
To do: proper error message support
11. GIF export not implemented
Fix: Add -_GIFRepresentationWithPropterties:errorMessage: to
NSBitmapImageRep+GIF.h and implement in NSBitmapImageRep+GIF.m
Comments: Supports only RGB(A) colorspaces, but ignores alpha. Supports
planar or interleaved bitmaps. Supports properties NSImageRGBColorTable.
12. -_initBitmapFromGIF:errorMessage: did not support transparency
Fix: Don't ignore control blocks in NSBitmapImageRep+GIF.m; check for
transparency.
Comment: If a transparent color is found, it adds an alpha channel to the
bitmap. Also, save the color table in properties.
13. -_initBitmapFromGIF:errorMessage: would show the last image in a
multi-image GIF file
Fix: Break the parsing loop after the first image in NSBitmapImageRep+GIF.m
Comment: Also check for frame duration, and set that property. There is not
yet any support for animated GIF. This will require some additional
infrastructure, and I won't do it unless asked.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24140 72102866-910b-0410-8b05-ffd578937521
2006-11-21 06:36:26 +00:00
|
|
|
// NSBitmapImageRep Global strings
|
|
|
|
NSString *NSImageCompressionMethod = @"NSImageCompressionMethod";
|
|
|
|
NSString *NSImageCompressionFactor = @"NSImageCompressionFactor";
|
|
|
|
NSString *NSImageDitherTransparency = @"NSImageDitherTransparency";
|
|
|
|
NSString *NSImageRGBColorTable = @"NSImageRGBColorTable";
|
|
|
|
NSString *NSImageInterlaced = @"NSImageInterlaced";
|
2007-07-26 17:55:36 +00:00
|
|
|
NSString *NSImageColorSyncProfileData = @"NSImageColorSyncProfileData"; // Mac OS X only
|
Change Log
Mon. 20-Nov-2006 Mark Tracy <tracy454 at concentric dot net>
Many changes related to bitmap images
1. NSBitmapImateRep attribute global strings were not defined
Fix: add definitions to externs.h, and declarations to NSBitmapImageRep.h
Comment: Two strings defined in Cocoa were commented out: NSImageColorSyncData
is proprietary to Apple, and NSImageEXIFData has no support elsewhere in
GNUstep. I propose adding GSImageICCProfileData if and when color management
is added to GNUstep.
2. LZW compression in TIFF was disabled for lack of a test of its availability
Fix: Implement NSTiffIsCodecConfigured(codec) in tiff.m
Comment: As of libtiff-3.7.0, there is a function call in the API to test
availability at runtime. For libtiff-3.6.0 (earlier?) there are macros
#defined in tiffconf.h. The implementation check the library version at
compile time, and uses one of the two methods. I have not tested the
second method for lack of an installation of an old libtiff.
3. -canCompressUsing: relied on a static list of capabilities
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: The static list could be wrong, as it was on my system. Also
eliminate the supports_lzw_compression flag.
4. +getTIFFCompressionTypes:count: relied on a static list of compressors.
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: Compares GNUstep supported compressors against actual availability.
Also change the private instance methods _localFromCompressionType and
_compressionTypeFromLocal to private class methods so that they can be used
in -initWithTIFFImage:number: and -TIFFRepresentationUsingCompression:factor:
and +getTIFFCompressionTypes:count: This is probably a clumsy implementation
but it works.
5. -setProperty:toValue: and -valueForProperty: were not implemented
Fix: Add a new instance variable NSMutableDictionary * _properties to
NSBitmapImageRep.h and implemented accessors in NSBitmapImageRep.m. Patch
-_initFromTIFFImage to set compression type and factor in _properties.
Comment: This feature is used to pass options to and from JPEG, PNG, TIFF, and
GIF in Cocoa, although the docs are kind of vague. In one case the Cocoa docs
said the properties were set when reading a TIFF, but the implementation
didn't; I chose to implement the docs. Cocoa does use properties when
exporting bitmaps, so I implemented that.
6. Checked and updated NSBitmapImageFileType in NSBitmapImageRep.h
Fix: confirmed the enumeration values against Cocoa, and added
NSJPEG2000FileType = 5
Comment: JPEG-2000 is not implemented, just reserved a space for it.
7. -representationUsingType:properties: was not implemented
Fix: Implement export of TIFF, JPEG, GIF and PNG in NSBitmapImage.m
Comment: See the change notes for JPEG, GIF, and PNG for more. BMP and JPEG-2000
are not implemented; they just log a message to that effect. As apparently
Cocoa does it this way, if you pass nil for properties, it falls back to
the internal _properties, and if that is empty, there are some safe defaults.
8. +representationfOfImageRepsInArray:UsingType:properties: was not implemented
Fix: Partially implement in NSBitmapImageRep.m
Comment: I just stole the incomplete code from
+TIFFRepresentationOfImageRepsInArray: since I have yet to find an explanation
of how this really ought to work.
9. JPEG export didn't handle alpha channel, properties or errors.
Fix: Add -_JPEGRepresentationWithProperties:errorMessage: to
NSBitmapImageRep+JPEG.h and greatly rework Nicolas Roard's code in
NSBitmapImageRep+JPEG.m. Patch -_initBitmapFromJPEG:errorMessage to
write properties.
Comment: Major rewrite of Nicolas Roard's JPEG export code.
To do: Support for planar bitmaps and support for colorspaces other than
RGB(A).
10. PNG export not implemented
Fix: Add -_PNGRepresentationWithProperties: to
NSBitmapImageRep+PNG.h and implement NSBitmapImageRep+PNG.m
Comment: No support yet for planar bitmaps. Only supports
NS*WhiteColorSpace and NS*RGBColorSpace. Does support alpha. Support for
reading and writing NSImageGamma is experimental. In keeping with Cocoa,
the property NSImageGamma ranges from 0.0 to 1.0; representing the range
of minimum supported gamma to maximum supported gamma, in this case 1.0
to 2.5. This is in contrast to GNUstep where by convention the property
would range from 0.0 to 255.0.
To do: proper error message support
11. GIF export not implemented
Fix: Add -_GIFRepresentationWithPropterties:errorMessage: to
NSBitmapImageRep+GIF.h and implement in NSBitmapImageRep+GIF.m
Comments: Supports only RGB(A) colorspaces, but ignores alpha. Supports
planar or interleaved bitmaps. Supports properties NSImageRGBColorTable.
12. -_initBitmapFromGIF:errorMessage: did not support transparency
Fix: Don't ignore control blocks in NSBitmapImageRep+GIF.m; check for
transparency.
Comment: If a transparent color is found, it adds an alpha channel to the
bitmap. Also, save the color table in properties.
13. -_initBitmapFromGIF:errorMessage: would show the last image in a
multi-image GIF file
Fix: Break the parsing loop after the first image in NSBitmapImageRep+GIF.m
Comment: Also check for frame duration, and set that property. There is not
yet any support for animated GIF. This will require some additional
infrastructure, and I won't do it unless asked.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24140 72102866-910b-0410-8b05-ffd578937521
2006-11-21 06:36:26 +00:00
|
|
|
//NSString *GSImageICCProfileData = @"GSImageICCProfileData"; // if & when GNUstep supports color management
|
|
|
|
NSString *NSImageFrameCount = @"NSImageFrameCount";
|
|
|
|
NSString *NSImageCurrentFrame = @"NSImageCurrentFrame";
|
|
|
|
NSString *NSImageCurrentFrameDuration = @"NSImageCurrentFrameDuration";
|
|
|
|
NSString *NSImageLoopCount = @"NSImageLoopCount";
|
|
|
|
NSString *NSImageGamma = @"NSImageGamma";
|
|
|
|
NSString *NSImageProgressive = @"NSImageProgressive";
|
2007-07-26 17:55:36 +00:00
|
|
|
NSString *NSImageEXIFData = @"NSImageEXIFData"; // No support yet in GNUstep
|
Change Log
Mon. 20-Nov-2006 Mark Tracy <tracy454 at concentric dot net>
Many changes related to bitmap images
1. NSBitmapImateRep attribute global strings were not defined
Fix: add definitions to externs.h, and declarations to NSBitmapImageRep.h
Comment: Two strings defined in Cocoa were commented out: NSImageColorSyncData
is proprietary to Apple, and NSImageEXIFData has no support elsewhere in
GNUstep. I propose adding GSImageICCProfileData if and when color management
is added to GNUstep.
2. LZW compression in TIFF was disabled for lack of a test of its availability
Fix: Implement NSTiffIsCodecConfigured(codec) in tiff.m
Comment: As of libtiff-3.7.0, there is a function call in the API to test
availability at runtime. For libtiff-3.6.0 (earlier?) there are macros
#defined in tiffconf.h. The implementation check the library version at
compile time, and uses one of the two methods. I have not tested the
second method for lack of an installation of an old libtiff.
3. -canCompressUsing: relied on a static list of capabilities
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: The static list could be wrong, as it was on my system. Also
eliminate the supports_lzw_compression flag.
4. +getTIFFCompressionTypes:count: relied on a static list of compressors.
Fix: Use the new NSTiffIsCodecConfigured(codec) in NSBitmapImageRep.m
Comment: Compares GNUstep supported compressors against actual availability.
Also change the private instance methods _localFromCompressionType and
_compressionTypeFromLocal to private class methods so that they can be used
in -initWithTIFFImage:number: and -TIFFRepresentationUsingCompression:factor:
and +getTIFFCompressionTypes:count: This is probably a clumsy implementation
but it works.
5. -setProperty:toValue: and -valueForProperty: were not implemented
Fix: Add a new instance variable NSMutableDictionary * _properties to
NSBitmapImageRep.h and implemented accessors in NSBitmapImageRep.m. Patch
-_initFromTIFFImage to set compression type and factor in _properties.
Comment: This feature is used to pass options to and from JPEG, PNG, TIFF, and
GIF in Cocoa, although the docs are kind of vague. In one case the Cocoa docs
said the properties were set when reading a TIFF, but the implementation
didn't; I chose to implement the docs. Cocoa does use properties when
exporting bitmaps, so I implemented that.
6. Checked and updated NSBitmapImageFileType in NSBitmapImageRep.h
Fix: confirmed the enumeration values against Cocoa, and added
NSJPEG2000FileType = 5
Comment: JPEG-2000 is not implemented, just reserved a space for it.
7. -representationUsingType:properties: was not implemented
Fix: Implement export of TIFF, JPEG, GIF and PNG in NSBitmapImage.m
Comment: See the change notes for JPEG, GIF, and PNG for more. BMP and JPEG-2000
are not implemented; they just log a message to that effect. As apparently
Cocoa does it this way, if you pass nil for properties, it falls back to
the internal _properties, and if that is empty, there are some safe defaults.
8. +representationfOfImageRepsInArray:UsingType:properties: was not implemented
Fix: Partially implement in NSBitmapImageRep.m
Comment: I just stole the incomplete code from
+TIFFRepresentationOfImageRepsInArray: since I have yet to find an explanation
of how this really ought to work.
9. JPEG export didn't handle alpha channel, properties or errors.
Fix: Add -_JPEGRepresentationWithProperties:errorMessage: to
NSBitmapImageRep+JPEG.h and greatly rework Nicolas Roard's code in
NSBitmapImageRep+JPEG.m. Patch -_initBitmapFromJPEG:errorMessage to
write properties.
Comment: Major rewrite of Nicolas Roard's JPEG export code.
To do: Support for planar bitmaps and support for colorspaces other than
RGB(A).
10. PNG export not implemented
Fix: Add -_PNGRepresentationWithProperties: to
NSBitmapImageRep+PNG.h and implement NSBitmapImageRep+PNG.m
Comment: No support yet for planar bitmaps. Only supports
NS*WhiteColorSpace and NS*RGBColorSpace. Does support alpha. Support for
reading and writing NSImageGamma is experimental. In keeping with Cocoa,
the property NSImageGamma ranges from 0.0 to 1.0; representing the range
of minimum supported gamma to maximum supported gamma, in this case 1.0
to 2.5. This is in contrast to GNUstep where by convention the property
would range from 0.0 to 255.0.
To do: proper error message support
11. GIF export not implemented
Fix: Add -_GIFRepresentationWithPropterties:errorMessage: to
NSBitmapImageRep+GIF.h and implement in NSBitmapImageRep+GIF.m
Comments: Supports only RGB(A) colorspaces, but ignores alpha. Supports
planar or interleaved bitmaps. Supports properties NSImageRGBColorTable.
12. -_initBitmapFromGIF:errorMessage: did not support transparency
Fix: Don't ignore control blocks in NSBitmapImageRep+GIF.m; check for
transparency.
Comment: If a transparent color is found, it adds an alpha channel to the
bitmap. Also, save the color table in properties.
13. -_initBitmapFromGIF:errorMessage: would show the last image in a
multi-image GIF file
Fix: Break the parsing loop after the first image in NSBitmapImageRep+GIF.m
Comment: Also check for frame duration, and set that property. There is not
yet any support for animated GIF. This will require some additional
infrastructure, and I won't do it unless asked.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24140 72102866-910b-0410-8b05-ffd578937521
2006-11-21 06:36:26 +00:00
|
|
|
|
2007-07-28 13:41:18 +00:00
|
|
|
// NSBrowser notification
|
|
|
|
NSString *NSBrowserColumnConfigurationDidChangeNotification = @"NSBrowserColumnConfigurationDidChange";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSColor Global strings
|
|
|
|
NSString *NSCalibratedWhiteColorSpace = @"NSCalibratedWhiteColorSpace";
|
|
|
|
NSString *NSCalibratedBlackColorSpace = @"NSCalibratedBlackColorSpace";
|
|
|
|
NSString *NSCalibratedRGBColorSpace = @"NSCalibratedRGBColorSpace";
|
|
|
|
NSString *NSDeviceWhiteColorSpace = @"NSDeviceWhiteColorSpace";
|
|
|
|
NSString *NSDeviceBlackColorSpace = @"NSDeviceBlackColorSpace";
|
|
|
|
NSString *NSDeviceRGBColorSpace = @"NSDeviceRGBColorSpace";
|
|
|
|
NSString *NSDeviceCMYKColorSpace = @"NSDeviceCMYKColorSpace";
|
|
|
|
NSString *NSNamedColorSpace = @"NSNamedColorSpace";
|
2003-04-25 22:51:55 +00:00
|
|
|
NSString *NSPatternColorSpace = @"NSPatternColorSpace";
|
1997-08-04 20:42:56 +00:00
|
|
|
NSString *NSCustomColorSpace = @"NSCustomColorSpace";
|
|
|
|
|
|
|
|
// NSColor Global gray values
|
2013-01-30 08:43:56 +00:00
|
|
|
const CGFloat NSBlack = 0;
|
|
|
|
const CGFloat NSDarkGray = .333;
|
|
|
|
const CGFloat NSGray = 0.5;
|
|
|
|
const CGFloat NSLightGray = .667;
|
|
|
|
const CGFloat NSWhite = 1;
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2017-08-10 03:25:35 +00:00
|
|
|
const CGFloat NSFontWeightUltraLight = -0.8;
|
|
|
|
const CGFloat NSFontWeightThin = -0.6;
|
|
|
|
const CGFloat NSFontWeightLight = -0.4;
|
|
|
|
const CGFloat NSFontWeightRegular = 0;
|
|
|
|
const CGFloat NSFontWeightMedium = 0.23;
|
|
|
|
const CGFloat NSFontWeightSemibold = 0.3;
|
|
|
|
const CGFloat NSFontWeightBold = 0.4;
|
|
|
|
const CGFloat NSFontWeightHeavy = 0.56;
|
|
|
|
const CGFloat NSFontWeightBlack = 0.62;
|
|
|
|
|
2000-12-28 23:42:18 +00:00
|
|
|
// NSColor notification
|
|
|
|
NSString *NSSystemColorsDidChangeNotification =
|
|
|
|
@"NSSystemColorsDidChangeNotification";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSColorList notifications
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSColorListDidChangeNotification = @"NSColorListDidChangeNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
|
|
|
// NSColorPanel notifications
|
2011-01-15 19:28:24 +00:00
|
|
|
NSString *NSColorPanelColorDidChangeNotification =
|
2014-06-09 10:21:22 +00:00
|
|
|
@"NSColorPanelColorDidChangeNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2001-04-09 21:27:19 +00:00
|
|
|
// NSComboBox notifications
|
|
|
|
NSString *NSComboBoxWillPopUpNotification =
|
|
|
|
@"NSComboBoxWillPopUpNotification";
|
|
|
|
NSString *NSComboBoxWillDismissNotification =
|
|
|
|
@"NSComboBoxWillDismissNotification";
|
|
|
|
NSString *NSComboBoxSelectionDidChangeNotification =
|
|
|
|
@"NSComboBoxSelectionDidChangeNotification";
|
|
|
|
NSString *NSComboBoxSelectionIsChangingNotification =
|
|
|
|
@"NSComboBoxSelectionIsChangingNotification";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSControl notifications
|
|
|
|
NSString *NSControlTextDidBeginEditingNotification =
|
|
|
|
@"NSControlTextDidBeginEditingNotification";
|
|
|
|
NSString *NSControlTextDidEndEditingNotification =
|
|
|
|
@"NSControlTextDidEndEditingNotification";
|
|
|
|
NSString *NSControlTextDidChangeNotification =
|
|
|
|
@"NSControlTextDidChangeNotification";
|
|
|
|
|
|
|
|
// NSDataLink global strings
|
2005-09-10 21:06:25 +00:00
|
|
|
NSString *NSDataLinkFilenameExtension = @"dlf";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2001-08-01 00:04:31 +00:00
|
|
|
// NSDrawer notifications
|
|
|
|
NSString *NSDrawerDidCloseNotification =
|
|
|
|
@"NSDrawerDidCloseNotification";
|
|
|
|
NSString *NSDrawerDidOpenNotification =
|
|
|
|
@"NSDrawerDidOpenNotification";
|
|
|
|
NSString *NSDrawerWillCloseNotification =
|
|
|
|
@"NSDrawerWillCloseNotification";
|
|
|
|
NSString *NSDrawerWillOpenNotification =
|
|
|
|
@"NSDrawerWillOpenNotification";
|
|
|
|
|
2000-01-13 23:14:11 +00:00
|
|
|
// NSForm private notification
|
|
|
|
NSString *_NSFormCellDidChangeTitleWidthNotification
|
|
|
|
= @"_NSFormCellDidChangeTitleWidthNotification";
|
|
|
|
|
2001-11-08 18:26:39 +00:00
|
|
|
// NSGraphicContext constants
|
|
|
|
NSString *NSGraphicsContextDestinationAttributeName =
|
|
|
|
@"NSGraphicsContextDestinationAttributeName";
|
|
|
|
NSString *NSGraphicsContextPDFFormat =
|
|
|
|
@"NSGraphicsContextPDFFormat";
|
|
|
|
NSString *NSGraphicsContextPSFormat =
|
|
|
|
@"NSGraphicsContextPSFormat";
|
|
|
|
NSString *NSGraphicsContextRepresentationFormatAttributeName =
|
|
|
|
@"NSGraphicsContextRepresentationFormatAttributeName";
|
|
|
|
|
1999-09-10 23:12:48 +00:00
|
|
|
// NSHelpManager notifications;
|
|
|
|
NSString *NSContextHelpModeDidActivateNotification =
|
|
|
|
@"NSContextHelpModeDidActivateNotification";
|
|
|
|
NSString *NSContextHelpModeDidDeactivateNotification =
|
|
|
|
@"NSContextHelpModeDidDeactivateNotification";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSFont Global Strings
|
|
|
|
NSString *NSAFMAscender = @"Ascender";
|
|
|
|
NSString *NSAFMCapHeight = @"CapHeight";
|
|
|
|
NSString *NSAFMCharacterSet = @"CharacterSet";
|
|
|
|
NSString *NSAFMDescender = @"Descender";
|
|
|
|
NSString *NSAFMEncodingScheme = @"EncodingScheme";
|
|
|
|
NSString *NSAFMFamilyName = @"FamilyName";
|
|
|
|
NSString *NSAFMFontName = @"FontName";
|
|
|
|
NSString *NSAFMFormatVersion = @"FormatVersion";
|
|
|
|
NSString *NSAFMFullName = @"FullName";
|
|
|
|
NSString *NSAFMItalicAngle = @"ItalicAngle";
|
|
|
|
NSString *NSAFMMappingScheme = @"MappingScheme";
|
|
|
|
NSString *NSAFMNotice = @"Notice";
|
|
|
|
NSString *NSAFMUnderlinePosition = @"UnderlinePosition";
|
|
|
|
NSString *NSAFMUnderlineThickness = @"UnderlineThickness";
|
|
|
|
NSString *NSAFMVersion = @"Version";
|
|
|
|
NSString *NSAFMWeight = @"Weight";
|
|
|
|
NSString *NSAFMXHeight = @"XHeight";
|
|
|
|
|
2007-08-08 11:05:19 +00:00
|
|
|
// NSFontDescriptor global strings
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSFontFamilyAttribute = @"NSFontFamilyAttribute";
|
|
|
|
NSString *NSFontNameAttribute = @"NSFontNameAttribute";
|
|
|
|
NSString *NSFontFaceAttribute = @"NSFontFaceAttribute";
|
|
|
|
NSString *NSFontSizeAttribute = @"NSFontSizeAttribute";
|
|
|
|
NSString *NSFontVisibleNameAttribute = @"NSFontVisibleNameAttribute";
|
|
|
|
NSString *NSFontColorAttribute = @"NSFontColorAttribute";
|
|
|
|
NSString *NSFontMatrixAttribute = @"NSFontMatrixAttribute";
|
|
|
|
NSString *NSFontVariationAttribute = @"NSCTFontVariationAttribute";
|
|
|
|
NSString *NSFontCharacterSetAttribute = @"NSCTFontCharacterSetAttribute";
|
|
|
|
NSString *NSFontCascadeListAttribute = @"NSCTFontCascadeListAttribute";
|
|
|
|
NSString *NSFontTraitsAttribute = @"NSCTFontTraitsAttribute";
|
|
|
|
NSString *NSFontFixedAdvanceAttribute = @"NSCTFontFixedAdvanceAttribute";
|
|
|
|
|
|
|
|
NSString *NSFontSymbolicTrait = @"NSCTFontSymbolicTrait";
|
|
|
|
NSString *NSFontWeightTrait = @"NSCTFontWeightTrait";
|
|
|
|
NSString *NSFontWidthTrait = @"NSCTFontProportionTrait";
|
|
|
|
NSString *NSFontSlantTrait = @"NSCTFontSlantTrait";
|
|
|
|
|
|
|
|
NSString *NSFontVariationAxisIdentifierKey = @"NSCTFontVariationAxisIdentifier";
|
|
|
|
NSString *NSFontVariationAxisMinimumValueKey = @"NSCTFontVariationAxisMinimumValue";
|
|
|
|
NSString *NSFontVariationAxisMaximumValueKey = @"NSCTFontVariationAxisMaximumValue";
|
|
|
|
NSString *NSFontVariationAxisDefaultValueKey = @"NSCTFontVariationAxisDefaultValue";
|
|
|
|
NSString *NSFontVariationAxisNameKey = @"NSCTFontVariationAxisName";
|
2007-08-08 11:05:19 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSScreen Global device dictionary key strings
|
2000-04-25 20:26:51 +00:00
|
|
|
NSString *NSDeviceResolution = @"NSDeviceResolution";
|
|
|
|
NSString *NSDeviceColorSpaceName = @"NSDeviceColorSpaceName";
|
|
|
|
NSString *NSDeviceBitsPerSample = @"NSDeviceBitsPerSample";
|
|
|
|
NSString *NSDeviceIsScreen = @"NSDeviceIsScreen";
|
|
|
|
NSString *NSDeviceIsPrinter = @"NSDeviceIsPrinter";
|
|
|
|
NSString *NSDeviceSize = @"NSDeviceSize";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
|
|
|
// NSImageRep notifications
|
|
|
|
NSString *NSImageRepRegistryChangedNotification =
|
|
|
|
@"NSImageRepRegistryChangedNotification";
|
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Pasteboard Type Globals
|
2017-07-17 17:41:57 +00:00
|
|
|
NSString *const NSPasteboardTypeString = @"NSStringPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSStringPboardType = @"NSStringPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeColor = @"NSColorPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSColorPboardType = @"NSColorPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeFont = @"NSFontPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSFontPboardType = @"NSFontPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeRuler = @"NSRulerPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSRulerPboardType = @"NSRulerPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeTabularText = @"NSTabularTextPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSTabularTextPboardType = @"NSTabularTextPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeRTF = @"NSRTFPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSRTFPboardType = @"NSRTFPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeRTFD = @"NSRTFDPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSRTFDPboardType = @"NSRTFDPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeTIFF = @"NSTIFFPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSTIFFPboardType = @"NSTIFFPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypePDF = @"NSPDFPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSPDFPboardType = @"NSPDFPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *const NSPasteboardTypeHTML = @"NSHTMLPboardType";
|
2017-07-26 12:23:00 +00:00
|
|
|
NSString *const NSHTMLPboardType = @"NSHTMLPboardType";
|
2017-07-17 17:41:57 +00:00
|
|
|
|
|
|
|
NSString *NSPasteboardTypePNG = @"NSPasteboardTypePNG";
|
|
|
|
NSString *NSPasteboardTypeSound = @"NSPasteboardTypeSound";
|
|
|
|
NSString *NSPasteboardTypeMultipleTextSelection =
|
|
|
|
@"NSPasteboardTypeMultipleTextSelection";
|
|
|
|
NSString *NSPasteboardTypeTextFinderOptions =
|
|
|
|
@"NSPasteboardTypeTextFinderOptions";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
NSString *NSFileContentsPboardType = @"NSFileContentsPboardType";
|
|
|
|
NSString *NSFilenamesPboardType = @"NSFilenamesPboardType";
|
|
|
|
NSString *NSPostScriptPboardType = @"NSPostScriptPboardType";
|
|
|
|
NSString *NSDataLinkPboardType = @"NSDataLinkPboardType";
|
|
|
|
NSString *NSGeneralPboardType = @"NSGeneralPboardType";
|
2001-05-13 21:08:35 +00:00
|
|
|
NSString *NSPICTPboardType = @"NSPICTPboardType";
|
|
|
|
NSString *NSURLPboardType = @"NSURLPboardType";
|
2003-10-29 08:29:55 +00:00
|
|
|
NSString *NSVCardPboardType = @"NSVCardPboardType";
|
|
|
|
NSString *NSFilesPromisePboardType = @"NSFilesPromisePboardType";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Pasteboard Name Globals
|
1997-08-04 20:42:56 +00:00
|
|
|
NSString *NSDragPboard = @"NSDragPboard";
|
|
|
|
NSString *NSFindPboard = @"NSFindPboard";
|
|
|
|
NSString *NSFontPboard = @"NSFontPboard";
|
|
|
|
NSString *NSGeneralPboard = @"NSGeneralPboard";
|
|
|
|
NSString *NSRulerPboard = @"NSRulerPboard";
|
|
|
|
|
1997-09-23 22:43:24 +00:00
|
|
|
//
|
|
|
|
// Pasteboard Exceptions
|
|
|
|
//
|
|
|
|
NSString *NSPasteboardCommunicationException
|
|
|
|
= @"NSPasteboardCommunicationException";
|
|
|
|
|
2017-08-10 03:20:12 +00:00
|
|
|
NSString *_NXSmartPaste = @"NeXT smart paste pasteboard type";
|
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Printing Information Dictionary Keys
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSPrintAllPages = @"NSPrintAllPages";
|
|
|
|
NSString *NSPrintBottomMargin = @"NSBottomMargin";
|
|
|
|
NSString *NSPrintCopies = @"NSCopies";
|
|
|
|
NSString *NSPrintFaxCoverSheetName = @"NSPrintFaxCoverSheetName";
|
|
|
|
NSString *NSPrintFaxHighResolution = @"NSPrintFaxHighResolution";
|
|
|
|
NSString *NSPrintFaxModem = @"NSPrintFaxModem";
|
|
|
|
NSString *NSPrintFaxReceiverNames = @"NSPrintFaxReceiverNames";
|
|
|
|
NSString *NSPrintFaxReceiverNumbers = @"NSPrintFaxReceiverNumbers";
|
|
|
|
NSString *NSPrintFaxReturnReceipt = @"NSPrintFaxReturnReceipt";
|
|
|
|
NSString *NSPrintFaxSendTime = @"NSPrintFaxSendTime";
|
|
|
|
NSString *NSPrintFaxTrimPageEnds = @"NSPrintFaxTrimPageEnds";
|
|
|
|
NSString *NSPrintFaxUseCoverSheet = @"NSPrintFaxUseCoverSheet";
|
|
|
|
NSString *NSPrintFirstPage = @"NSFirstPage";
|
2014-06-09 10:43:20 +00:00
|
|
|
NSString *NSPrintHorizontalPagination = @"NSHorizontalPagination";
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSPrintHorizontallyCentered = @"NSHorizontallyCentered";
|
|
|
|
NSString *NSPrintJobDisposition = @"NSJobDisposition";
|
|
|
|
NSString *NSPrintJobFeatures = @"NSJobFeatures";
|
|
|
|
NSString *NSPrintLastPage = @"NSLastPage";
|
|
|
|
NSString *NSPrintLeftMargin = @"NSLeftMargin";
|
|
|
|
NSString *NSPrintManualFeed = @"NSPrintManualFeed";
|
|
|
|
NSString *NSPrintMustCollate = @"NSMustCollate";
|
|
|
|
NSString *NSPrintOrientation = @"NSOrientation";
|
|
|
|
NSString *NSPrintPagesPerSheet = @"NSPagesPerSheet";
|
|
|
|
NSString *NSPrintPaperFeed = @"NSPaperFeed";
|
|
|
|
NSString *NSPrintPaperName = @"NSPaperName";
|
|
|
|
NSString *NSPrintPaperSize = @"NSPaperSize";
|
|
|
|
NSString *NSPrintPrinter = @"NSPrinter";
|
|
|
|
NSString *NSPrintReversePageOrder = @"NSReversePageOrder";
|
|
|
|
NSString *NSPrintRightMargin = @"NSRightMargin";
|
|
|
|
NSString *NSPrintSavePath = @"NSSavePath";
|
|
|
|
NSString *NSPrintScalingFactor = @"NSScalingFactor";
|
|
|
|
NSString *NSPrintTopMargin = @"NSTopMargin";
|
|
|
|
NSString *NSPrintVerticalPagination = @"NSVerticalPagination";
|
|
|
|
NSString *NSPrintVerticallyCentered = @"NSVerticallyCentered";
|
|
|
|
NSString *NSPrintPagesAcross = @"NSPagesAcross";
|
|
|
|
NSString *NSPrintPagesDown = @"NSPagesDown";
|
|
|
|
NSString *NSPrintTime = @"NSPrintTime";
|
|
|
|
NSString *NSPrintDetailedErrorReporting = @"NSDetailedErrorReporting";
|
|
|
|
NSString *NSPrintFaxNumber = @"NSFaxNumber";
|
|
|
|
NSString *NSPrintPrinterName = @"NSPrinterName";
|
|
|
|
NSString *NSPrintHeaderAndFooter = @"NSPrintHeaderAndFooter";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2002-09-06 19:31:00 +00:00
|
|
|
NSString *NSPrintPageDirection = @"NSPrintPageDirection";
|
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Print Job Disposition Values
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSPrintCancelJob = @"NSPrintCancelJob";
|
|
|
|
NSString *NSPrintFaxJob = @"NSPrintFaxJob";
|
|
|
|
NSString *NSPrintPreviewJob = @"NSPrintPreviewJob";
|
|
|
|
NSString *NSPrintSaveJob = @"NSPrintSaveJob";
|
|
|
|
NSString *NSPrintSpoolJob = @"NSPrintSpoolJob";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2011-06-05 21:55:34 +00:00
|
|
|
// Print Panel
|
2011-06-06 11:33:40 +00:00
|
|
|
NSString *NSPrintPanelAccessorySummaryItemNameKey = @"name";
|
|
|
|
NSString *NSPrintPanelAccessorySummaryItemDescriptionKey = @"description";
|
|
|
|
NSString *NSPrintPhotoJobStyleHint = @"Photo";
|
2011-06-05 21:55:34 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSSplitView notifications
|
|
|
|
NSString *NSSplitViewDidResizeSubviewsNotification =
|
|
|
|
@"NSSplitViewDidResizeSubviewsNotification";
|
|
|
|
NSString *NSSplitViewWillResizeSubviewsNotification =
|
|
|
|
@"NSSplitViewWillResizeSubviewsNotification";
|
|
|
|
|
2000-03-18 00:20:09 +00:00
|
|
|
// NSTableView notifications
|
|
|
|
NSString *NSTableViewColumnDidMove = @"NSTableViewColumnDidMoveNotification";
|
|
|
|
NSString *NSTableViewColumnDidResize
|
|
|
|
= @"NSTableViewColumnDidResizeNotification";
|
|
|
|
NSString *NSTableViewSelectionDidChange
|
|
|
|
= @"NSTableViewSelectionDidChangeNotification";
|
|
|
|
NSString *NSTableViewSelectionIsChanging
|
|
|
|
= @"NSTableViewSelectionIsChangingNotification";
|
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSText notifications
|
|
|
|
NSString *NSTextDidBeginEditingNotification =
|
|
|
|
@"NSTextDidBeginEditingNotification";
|
|
|
|
NSString *NSTextDidEndEditingNotification = @"NSTextDidEndEditingNotification";
|
|
|
|
NSString *NSTextDidChangeNotification = @"NSTextDidChangeNotification";
|
|
|
|
|
2001-11-23 00:28:15 +00:00
|
|
|
// NSTextStorage Notifications
|
|
|
|
NSString *NSTextStorageWillProcessEditingNotification =
|
|
|
|
@"NSTextStorageWillProcessEditingNotification";
|
|
|
|
NSString *NSTextStorageDidProcessEditingNotification =
|
|
|
|
@"NSTextStorageDidProcessEditingNotification";
|
|
|
|
|
1999-02-17 09:13:43 +00:00
|
|
|
// NSTextView notifications
|
1999-02-17 09:40:00 +00:00
|
|
|
NSString *NSTextViewDidChangeSelectionNotification =
|
|
|
|
@"NSTextViewDidChangeSelectionNotification";
|
|
|
|
NSString *NSTextViewWillChangeNotifyingTextViewNotification =
|
|
|
|
@"NSTextViewWillChangeNotifyingTextViewNotification";
|
2008-01-07 11:26:13 +00:00
|
|
|
NSString *NSTextViewDidChangeTypingAttributesNotification =
|
|
|
|
@"NSTextViewDidChangeTypingAttributesNotification";
|
1999-02-17 09:13:43 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSView notifications
|
1997-08-05 22:33:00 +00:00
|
|
|
NSString *NSViewFocusDidChangeNotification
|
|
|
|
= @"NSViewFocusDidChangeNotification";
|
|
|
|
NSString *NSViewFrameDidChangeNotification
|
|
|
|
= @"NSViewFrameDidChangeNotification";
|
|
|
|
NSString *NSViewBoundsDidChangeNotification
|
|
|
|
= @"NSViewBoundsDidChangeNotification";
|
2009-03-03 20:12:43 +00:00
|
|
|
NSString *NSViewGlobalFrameDidChangeNotification
|
|
|
|
= @"NSViewGlobalFrameDidChangeNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
2009-11-08 19:26:49 +00:00
|
|
|
// NSViewAnimation
|
|
|
|
NSString *NSViewAnimationTargetKey = @"NSViewAnimationTargetKey";
|
|
|
|
NSString *NSViewAnimationStartFrameKey = @"NSViewAnimationStartFrameKey";
|
|
|
|
NSString *NSViewAnimationEndFrameKey = @"NSViewAnimationEndFrameKey";
|
|
|
|
NSString *NSViewAnimationEffectKey = @"NSViewAnimationEffectKey";
|
|
|
|
NSString *NSViewAnimationFadeInEffect = @"NSViewAnimationFadeInEffect";
|
|
|
|
NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
|
|
|
|
|
|
|
|
|
1998-12-16 15:21:55 +00:00
|
|
|
// NSMenu notifications
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString* const NSMenuDidSendActionNotification = @"NSMenuDidSendActionNotification";
|
|
|
|
NSString* const NSMenuWillSendActionNotification = @"NSMenuWillSendActionNotification";
|
|
|
|
NSString* const NSMenuDidAddItemNotification = @"NSMenuDidAddItemNotification";
|
|
|
|
NSString* const NSMenuDidRemoveItemNotification = @"NSMenuDidRemoveItemNotification";
|
|
|
|
NSString* const NSMenuDidChangeItemNotification = @"NSMenuDidChangeItemNotification";
|
2015-09-21 20:37:56 +00:00
|
|
|
NSString* const NSMenuDidBeginTrackingNotification = @"NSMenuDidBeginTrackingNotification";
|
2015-09-19 16:45:36 +00:00
|
|
|
NSString* const NSMenuDidEndTrackingNotification = @"NSMenuDidEndTrackingNotification";
|
1998-12-16 15:21:55 +00:00
|
|
|
|
1999-07-26 07:02:26 +00:00
|
|
|
// NSPopUpButton notification
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSPopUpButtonWillPopUpNotification = @"NSPopUpButtonWillPopUpNotification";
|
|
|
|
NSString *NSPopUpButtonCellWillPopUpNotification = @"NSPopUpButtonCellWillPopUpNotification";
|
1999-07-26 07:02:26 +00:00
|
|
|
|
2013-04-21 21:32:36 +00:00
|
|
|
// NSPopover notifications
|
|
|
|
NSString *NSPopoverWillShowNotification = @"NSPopoverWillShowNotification";
|
|
|
|
NSString *NSPopoverDidShowNotification = @"NSPopoverDidShowNotification";
|
|
|
|
NSString *NSPopoverWillCloseNotification = @"NSPopoverWillCloseNotification";
|
|
|
|
NSString *NSPopoverDidCloseNotification = @"NSPopoverDidCloseNotification";
|
|
|
|
|
|
|
|
// NSPopover keys
|
|
|
|
NSString *NSPopoverCloseReasonKey = @"NSPopoverCloseReasonKey";
|
|
|
|
NSString *NSPopoverCloseReasonStandard = @"NSPopoverCloseReasonStandard";
|
|
|
|
NSString *NSPopoverCloseReasonDetachToWindow = @"NSPopoverCloseReasonDetachToWindow";
|
|
|
|
|
1999-08-04 09:15:07 +00:00
|
|
|
// NSTable notifications
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSTableViewSelectionDidChangeNotification = @"NSTableViewSelectionDidChangeNotification";
|
|
|
|
NSString *NSTableViewColumnDidMoveNotification = @"NSTableViewColumnDidMoveNotification";
|
|
|
|
NSString *NSTableViewColumnDidResizeNotification = @"NSTableViewColumnDidResizeNotification";
|
|
|
|
NSString *NSTableViewSelectionIsChangingNotification = @"NSTableViewSelectionIsChangingNotification";
|
1999-08-04 09:15:07 +00:00
|
|
|
|
2002-02-23 16:37:17 +00:00
|
|
|
// NSOutlineView notifications
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSOutlineViewSelectionDidChangeNotification = @"NSOutlineViewSelectionDidChangeNotification";
|
|
|
|
NSString *NSOutlineViewColumnDidMoveNotification = @"NSOutlineViewColumnDidMoveNotification";
|
|
|
|
NSString *NSOutlineViewColumnDidResizeNotification = @"NSOutlineViewColumnDidResizeNotification";
|
|
|
|
NSString *NSOutlineViewSelectionIsChangingNotification = @"NSOutlineViewSelectionIsChangingNotification";
|
|
|
|
NSString *NSOutlineViewItemDidExpandNotification = @"NSOutlineViewItemDidExpandNotification";
|
|
|
|
NSString *NSOutlineViewItemDidCollapseNotification = @"NSOutlineViewItemDidCollapseNotification";
|
|
|
|
NSString *NSOutlineViewItemWillExpandNotification = @"NSOutlineViewItemWillExpandNotification";
|
|
|
|
NSString *NSOutlineViewItemWillCollapseNotification = @"NSOutlineViewItemWillCollapseNotification";
|
2002-02-23 16:37:17 +00:00
|
|
|
|
1997-08-04 20:42:56 +00:00
|
|
|
// NSWindow notifications
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSWindowDidBecomeKeyNotification = @"NSWindowDidBecomeKeyNotification";
|
|
|
|
NSString *NSWindowDidBecomeMainNotification = @"NSWindowDidBecomeMainNotification";
|
|
|
|
NSString *NSWindowDidChangeScreenNotification = @"NSWindowDidChangeScreenNotification";
|
|
|
|
NSString *NSWindowDidChangeScreenProfileNotification = @"NSWindowDidChangeScreenProfileNotification";
|
|
|
|
NSString *NSWindowDidDeminiaturizeNotification = @"NSWindowDidDeminiaturizeNotification";
|
|
|
|
NSString *NSWindowDidEndSheetNotification = @"NSWindowDidEndSheetNotification";
|
|
|
|
NSString *NSWindowDidExposeNotification = @"NSWindowDidExposeNotification";
|
|
|
|
NSString *NSWindowDidMiniaturizeNotification = @"NSWindowDidMiniaturizeNotification";
|
|
|
|
NSString *NSWindowDidMoveNotification = @"NSWindowDidMoveNotification";
|
|
|
|
NSString *NSWindowDidResignKeyNotification = @"NSWindowDidResignKeyNotification";
|
|
|
|
NSString *NSWindowDidResignMainNotification = @"NSWindowDidResignMainNotification";
|
|
|
|
NSString *NSWindowDidResizeNotification = @"NSWindowDidResizeNotification";
|
|
|
|
NSString *NSWindowDidUpdateNotification = @"NSWindowDidUpdateNotification";
|
|
|
|
NSString *NSWindowWillBeginSheetNotification = @"NSWindowWillBeginSheetNotification";
|
|
|
|
NSString *NSWindowWillCloseNotification = @"NSWindowWillCloseNotification";
|
|
|
|
NSString *NSWindowWillMiniaturizeNotification = @"NSWindowWillMiniaturizeNotification";
|
|
|
|
NSString *NSWindowWillMoveNotification = @"NSWindowWillMoveNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Workspace File Type Globals
|
1997-08-04 20:42:56 +00:00
|
|
|
NSString *NSPlainFileType = @"NSPlainFileType";
|
|
|
|
NSString *NSDirectoryFileType = @"NSDirectoryFileType";
|
|
|
|
NSString *NSApplicationFileType = @"NSApplicationFileType";
|
|
|
|
NSString *NSFilesystemFileType = @"NSFilesystemFileType";
|
|
|
|
NSString *NSShellCommandFileType = @"NSShellCommandFileType";
|
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
// Workspace File Operation Globals
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSWorkspaceCompressOperation = @"compress";
|
|
|
|
NSString *NSWorkspaceCopyOperation = @"copy";
|
|
|
|
NSString *NSWorkspaceDecompressOperation = @"decompress";
|
|
|
|
NSString *NSWorkspaceDecryptOperation = @"decrypt";
|
|
|
|
NSString *NSWorkspaceDestroyOperation = @"destroy";
|
|
|
|
NSString *NSWorkspaceDuplicateOperation = @"duplicate";
|
|
|
|
NSString *NSWorkspaceEncryptOperation = @"encrypt";
|
|
|
|
NSString *NSWorkspaceLinkOperation = @"link";
|
|
|
|
NSString *NSWorkspaceMoveOperation = @"move";
|
|
|
|
NSString *NSWorkspaceRecycleOperation = @"recycle";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
|
|
|
// NSWorkspace notifications
|
|
|
|
NSString *NSWorkspaceDidLaunchApplicationNotification =
|
|
|
|
@"NSWorkspaceDidLaunchApplicationNotification";
|
|
|
|
NSString *NSWorkspaceDidMountNotification = @"NSWorkspaceDidMountNotification";
|
|
|
|
NSString *NSWorkspaceDidPerformFileOperationNotification =
|
|
|
|
@"NSWorkspaceDidPerformFileOperationNotification";
|
|
|
|
NSString *NSWorkspaceDidTerminateApplicationNotification =
|
|
|
|
@"NSWorkspaceDidTerminateApplicationNotification";
|
|
|
|
NSString *NSWorkspaceDidUnmountNotification =
|
|
|
|
@"NSWorkspaceDidUnmountNotification";
|
|
|
|
NSString *NSWorkspaceWillLaunchApplicationNotification =
|
|
|
|
@"NSWorkspaceWillLaunchApplicationNotification";
|
|
|
|
NSString *NSWorkspaceWillPowerOffNotification =
|
|
|
|
@"NSWorkspaceWillPowerOffNotification";
|
|
|
|
NSString *NSWorkspaceWillUnmountNotification =
|
|
|
|
@"NSWorkspaceWillUnmountNotification";
|
2011-06-11 15:48:08 +00:00
|
|
|
NSString *NSWorkspaceDidWakeNotification =
|
|
|
|
@"NSWorkspaceDidWakeNotification";
|
|
|
|
NSString *NSWorkspaceSessionDidBecomeActiveNotification =
|
|
|
|
@"NSWorkspaceSessionDidBecomeActiveNotification";
|
|
|
|
NSString *NSWorkspaceSessionDidResignActiveNotification =
|
|
|
|
@"NSWorkspaceSessionDidResignActiveNotification";
|
|
|
|
NSString *NSWorkspaceWillSleepNotification =
|
|
|
|
@"NSWorkspaceWillSleepNotification";
|
1997-08-04 20:42:56 +00:00
|
|
|
|
1999-07-15 05:52:55 +00:00
|
|
|
/*
|
2007-03-26 13:37:33 +00:00
|
|
|
* NSStringDrawing NSAttributedString additions
|
1999-07-15 05:52:55 +00:00
|
|
|
*/
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSAttachmentAttributeName = @"NSAttachment";
|
|
|
|
NSString *NSBackgroundColorAttributeName = @"NSBackgroundColor";
|
|
|
|
NSString *NSBaselineOffsetAttributeName = @"NSBaselineOffset";
|
|
|
|
NSString *NSCursorAttributeName = @"NSCursor";
|
|
|
|
NSString *NSExpansionAttributeName = @"NSExpansion";
|
|
|
|
NSString *NSFontAttributeName = @"NSFont";
|
|
|
|
NSString *NSForegroundColorAttributeName = @"NSColor";
|
|
|
|
NSString *NSKernAttributeName = @"NSKern";
|
|
|
|
NSString *NSLigatureAttributeName = @"NSLigature";
|
|
|
|
NSString *NSLinkAttributeName = @"NSLink";
|
|
|
|
NSString *NSObliquenessAttributeName = @"NSObliqueness";
|
|
|
|
NSString *NSParagraphStyleAttributeName = @"NSParagraphStyle";
|
|
|
|
NSString *NSShadowAttributeName = @"NSShadow";
|
2007-03-26 13:37:33 +00:00
|
|
|
NSString *NSStrikethroughColorAttributeName
|
2014-06-09 10:21:22 +00:00
|
|
|
= @"NSStrikethroughColor";
|
|
|
|
NSString *NSStrikethroughStyleAttributeName = @"NSStrikethrough";
|
|
|
|
NSString *NSStrokeColorAttributeName = @"NSStrokeColor";
|
|
|
|
NSString *NSStrokeWidthAttributeName = @"NSStrokeWidth";
|
|
|
|
NSString *NSSuperscriptAttributeName = @"NSSuperScript";
|
|
|
|
NSString *NSToolTipAttributeName = @"NSToolTip";
|
|
|
|
NSString *NSUnderlineColorAttributeName = @"NSUnderlineColor";
|
|
|
|
NSString *NSUnderlineStyleAttributeName = @"NSUnderline";
|
|
|
|
|
2017-07-22 16:39:35 +00:00
|
|
|
NSString *NSTextAlternativesAttributeName = @"NSTextAlternatives";
|
2017-07-22 16:40:30 +00:00
|
|
|
NSString *NSWritingDirectionAttributeName = @"NSWritingDirection";
|
2017-07-22 16:39:35 +00:00
|
|
|
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSCharacterShapeAttributeName = @"NSCharacterShape";
|
|
|
|
NSString *NSGlyphInfoAttributeName = @"NSGlyphInfo";
|
2007-06-18 21:08:54 +00:00
|
|
|
|
|
|
|
NSString *NSPaperSizeDocumentAttribute = @"PaperSize";
|
|
|
|
NSString *NSLeftMarginDocumentAttribute = @"LeftMargin";
|
|
|
|
NSString *NSRightMarginDocumentAttribute = @"RightMargin";
|
|
|
|
NSString *NSTopMarginDocumentAttribute = @"TopMargin";
|
|
|
|
NSString *NSBottomMarginDocumentAttribute = @"BottomMargin";
|
|
|
|
NSString *NSHyphenationFactorDocumentAttribute = @"HyphenationFactor";
|
|
|
|
NSString *NSDocumentTypeDocumentAttribute = @"DocumentType";
|
|
|
|
NSString *NSCharacterEncodingDocumentAttribute = @"CharacterEncoding";
|
|
|
|
NSString *NSViewSizeDocumentAttribute = @"ViewSize";
|
|
|
|
NSString *NSViewZoomDocumentAttribute = @"ViewZoom";
|
|
|
|
NSString *NSViewModeDocumentAttribute = @"ViewMode";
|
|
|
|
NSString *NSBackgroundColorDocumentAttribute = @"BackgroundColor";
|
|
|
|
NSString *NSCocoaVersionDocumentAttribute = @"CocoaVersion";
|
|
|
|
NSString *NSReadOnlyDocumentAttribute = @"ReadOnly";
|
|
|
|
NSString *NSConvertedDocumentAttribute = @"Converted";
|
|
|
|
NSString *NSDefaultTabIntervalDocumentAttribute = @"DefaultTabInterval";
|
|
|
|
NSString *NSTitleDocumentAttribute = @"Title";
|
|
|
|
NSString *NSCompanyDocumentAttribute = @"Company";
|
|
|
|
NSString *NSCopyrightDocumentAttribute = @"Copyright";
|
|
|
|
NSString *NSSubjectDocumentAttribute = @"Subject";
|
|
|
|
NSString *NSAuthorDocumentAttribute = @"Author";
|
|
|
|
NSString *NSKeywordsDocumentAttribute = @"Keywords";
|
|
|
|
NSString *NSCommentDocumentAttribute = @"Comment";
|
|
|
|
NSString *NSEditorDocumentAttribute = @"Editor";
|
|
|
|
NSString *NSCreationTimeDocumentAttribute = @"CreationTime";
|
|
|
|
NSString *NSModificationTimeDocumentAttribute = @"ModificationTime";
|
|
|
|
|
2017-08-10 03:16:09 +00:00
|
|
|
NSString *NSTextInsertionUndoableAttributeName =
|
|
|
|
@"NSTextInsertionUndoableAttributeName";
|
|
|
|
|
2007-06-18 21:08:54 +00:00
|
|
|
const unsigned NSUnderlineByWordMask = 0x01;
|
|
|
|
|
2011-03-12 07:45:14 +00:00
|
|
|
NSString *NSSpellingStateAttributeName = @"NSSpellingState";
|
|
|
|
const unsigned NSSpellingStateSpellingFlag = 1;
|
|
|
|
const unsigned NSSpellingStateGrammarFlag = 2;
|
|
|
|
|
2017-08-15 01:49:11 +00:00
|
|
|
NSString *NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification =
|
|
|
|
@"NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification";
|
|
|
|
NSString *NSSpellCheckerDidChangeAutomaticTextReplacementNotification =
|
|
|
|
@"NSSpellCheckerDidChangeAutomaticTextReplacementNotification";
|
|
|
|
NSString *NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification =
|
|
|
|
@"NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification";
|
|
|
|
NSString *NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification =
|
|
|
|
@"NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification";
|
|
|
|
|
2011-03-12 07:45:14 +00:00
|
|
|
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSPlainTextDocumentType = @"NSPlainText";
|
|
|
|
NSString *NSRTFTextDocumentType = @"NSRTF";
|
|
|
|
NSString *NSRTFDTextDocumentType = @"NSRTFD";
|
|
|
|
NSString *NSMacSimpleTextDocumentType = @"NSMacSimpleText";
|
|
|
|
NSString *NSHTMLTextDocumentType = @"NSHTML";
|
|
|
|
NSString *NSDocFormatTextDocumentType = @"NSDocFormat";
|
|
|
|
NSString *NSWordMLTextDocumentType = @"NSWordML";
|
2017-06-13 08:20:52 +00:00
|
|
|
NSString *NSOfficeOpenXMLTextDocumentType = @"NSOfficeOpenXML";
|
|
|
|
NSString *NSOpenDocumentTextDocumentType = @"NSOpenDocumentText";
|
2007-06-18 21:08:54 +00:00
|
|
|
|
|
|
|
NSString *NSExcludedElementsDocumentAttribute = @"ExcludedElements";
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSTextEncodingNameDocumentAttribute = @"TextEncodingName";
|
2007-06-18 21:08:54 +00:00
|
|
|
NSString *NSPrefixSpacesDocumentAttribute = @"PrefixSpaces";
|
|
|
|
|
|
|
|
NSString *NSBaseURLDocumentOption = @"BaseURL";
|
|
|
|
NSString *NSCharacterEncodingDocumentOption = @"CharacterEncoding";
|
|
|
|
NSString *NSDefaultAttributesDocumentOption = @"DefaultAttributes";
|
|
|
|
NSString *NSDocumentTypeDocumentOption = @"DocumentType";
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSTextEncodingNameDocumentOption = @"TextEncodingName";
|
2007-06-18 21:08:54 +00:00
|
|
|
NSString *NSTextSizeMultiplierDocumentOption = @"TextSizeMultiplier";
|
|
|
|
NSString *NSTimeoutDocumentOption = @"Timeout";
|
|
|
|
NSString *NSWebPreferencesDocumentOption = @"WebPreferences";
|
|
|
|
NSString *NSWebResourceLoadDelegateDocumentOption = @"WebResourceLoadDelegate";
|
|
|
|
|
|
|
|
// NSTextTab
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSTabColumnTerminatorsAttributeName = @"NSTabColumnTerminatorsAttributeName";
|
2000-12-22 16:49:09 +00:00
|
|
|
|
2017-08-19 23:01:10 +00:00
|
|
|
// Private Exports
|
|
|
|
NSString *NSMarkedClauseSegmentAttributeName =
|
|
|
|
@"NSMarkedClauseSegmentAttributeName";
|
|
|
|
NSString *NSTextInputReplacementRangeAttributeName =
|
|
|
|
@"NSTextInputReplacementRangeAttributeName";
|
|
|
|
|
2002-06-30 05:14:21 +00:00
|
|
|
// NSToolbar notifications
|
|
|
|
NSString *NSToolbarDidRemoveItemNotification = @"NSToolbarDidRemoveItemNotification";
|
|
|
|
NSString *NSToolbarWillAddItemNotification = @"NSToolbarWillAddItemNotification";
|
|
|
|
|
|
|
|
// NSToolbarItem constants
|
2014-06-09 10:21:22 +00:00
|
|
|
NSString *NSToolbarSeparatorItemIdentifier = @"NSToolbarSeparatorItem";
|
|
|
|
NSString *NSToolbarSpaceItemIdentifier = @"NSToolbarSpaceItem";
|
|
|
|
NSString *NSToolbarFlexibleSpaceItemIdentifier = @"NSToolbarFlexibleSpaceItem";
|
|
|
|
NSString *NSToolbarShowColorsItemIdentifier = @"NSToolbarShowColorsItem";
|
|
|
|
NSString *NSToolbarShowFontsItemIdentifier = @"NSToolbarShowFontsItem";
|
|
|
|
NSString *NSToolbarCustomizeToolbarItemIdentifier = @"NSToolbarCustomizeToolbarItem";
|
|
|
|
NSString *NSToolbarPrintItemIdentifier = @"NSToolbarPrintItem";
|
2002-06-30 05:14:21 +00:00
|
|
|
|
2015-11-18 23:05:00 +00:00
|
|
|
NSString *NSImageNameTrashEmpty = @"NSImageTrashEmpty";
|
|
|
|
NSString *NSImageNameTrashFull = @"NSImageTrashFull";
|
|
|
|
|
|
|
|
// Misc named images
|
|
|
|
NSString *NSImageNameMultipleDocuments = @"NSImageNameMultipleDocuments";
|
|
|
|
|
2000-12-22 16:49:09 +00:00
|
|
|
/*
|
|
|
|
* NSTextView userInfo for notifications
|
|
|
|
*/
|
|
|
|
NSString *NSOldSelectedCharacterRange = @"NSOldSelectedCharacterRange";
|
1998-11-16 20:32:48 +00:00
|
|
|
|
1999-05-13 13:51:57 +00:00
|
|
|
/* NSFont matrix */
|
2010-02-20 16:30:27 +00:00
|
|
|
const CGFloat NSFontIdentityMatrix[] = {1, 0, 0, 1, 0, 0};
|
1998-11-16 20:32:48 +00:00
|
|
|
|
1998-12-10 19:53:41 +00:00
|
|
|
/* Drawing engine externs */
|
|
|
|
NSString *NSBackendContext = @"NSBackendContext";
|
1998-11-16 20:32:48 +00:00
|
|
|
|
2000-04-25 20:26:51 +00:00
|
|
|
typedef int NSWindowDepth;
|
|
|
|
|
|
|
|
/**** Color function externs ****/
|
|
|
|
/* Since these are constants it was not possible
|
|
|
|
to do the OR directly. If you change the
|
|
|
|
_GS*BitValue numbers, please remember to
|
|
|
|
change the corresponding depth values */
|
|
|
|
const NSWindowDepth _GSGrayBitValue = 256;
|
|
|
|
const NSWindowDepth _GSRGBBitValue = 512;
|
|
|
|
const NSWindowDepth _GSCMYKBitValue = 1024;
|
|
|
|
const NSWindowDepth _GSNamedBitValue = 2048;
|
|
|
|
const NSWindowDepth _GSCustomBitValue = 4096;
|
|
|
|
const NSWindowDepth NSDefaultDepth = 0; // GRAY = 256, RGB = 512
|
|
|
|
const NSWindowDepth NSTwoBitGrayDepth = 258; // 0100000010 GRAY | 2bps
|
|
|
|
const NSWindowDepth NSEightBitGrayDepth = 264; // 0100001000 GRAY | 8bps
|
|
|
|
const NSWindowDepth NSEightBitRGBDepth = 514; // 1000000010 RGB | 2bps
|
|
|
|
const NSWindowDepth NSTwelveBitRGBDepth = 516; // 1000000100 RGB | 4bps
|
|
|
|
const NSWindowDepth GSSixteenBitRGBDepth = 517; // 1000000101 RGB | 5bps GNUstep specific
|
|
|
|
const NSWindowDepth NSTwentyFourBitRGBDepth = 520; // 1000001000 RGB | 8bps
|
|
|
|
const NSWindowDepth _GSWindowDepths[7] = { 258, 264, 514, 516, 517, 520, 0 };
|
|
|
|
|
|
|
|
/* End of color functions externs */
|
2001-10-17 03:53:55 +00:00
|
|
|
|
2006-12-19 18:35:16 +00:00
|
|
|
// NSKeyValueBinding
|
2007-12-11 18:50:42 +00:00
|
|
|
NSString *NSObservedObjectKey = @"NSObservedObject";
|
|
|
|
NSString *NSObservedKeyPathKey = @"NSObservedKeyPath";
|
|
|
|
NSString *NSOptionsKey = @"NSOptions";
|
|
|
|
|
|
|
|
NSString *NSAllowsEditingMultipleValuesSelectionBindingOption = @"NSAllowsEditingMultipleValuesSelection";
|
|
|
|
NSString *NSAllowsNullArgumentBindingOption = @"NSAllowsNullArgument";
|
|
|
|
NSString *NSConditionallySetsEditableBindingOption = @"NSConditionallySetsEditable";
|
|
|
|
NSString *NSConditionallySetsEnabledBindingOption = @"NSConditionallySetsEnabled";
|
|
|
|
NSString *NSConditionallySetsHiddenBindingOption = @"NSConditionallySetsHidden";
|
|
|
|
NSString *NSContinuouslyUpdatesValueBindingOption = @"NSContinuouslyUpdatesValue";
|
|
|
|
NSString *NSCreatesSortDescriptorBindingOption = @"NSCreatesSortDescriptor";
|
|
|
|
NSString *NSDeletesObjectsOnRemoveBindingsOption = @"NSDeletesObjectsOnRemove";
|
|
|
|
NSString *NSDisplayNameBindingOption = @"NSDisplayName";
|
|
|
|
NSString *NSDisplayPatternBindingOption = @"NSDisplayPattern";
|
|
|
|
NSString *NSHandlesContentAsCompoundValueBindingOption = @"NSHandlesContentAsCompoundValue";
|
|
|
|
NSString *NSInsertsNullPlaceholderBindingOption = @"NSInsertsNullPlaceholder";
|
|
|
|
NSString *NSInvokesSeparatelyWithArrayObjectsBindingOption = @"NSInvokesSeparatelyWithArrayObjects";
|
|
|
|
NSString *NSMultipleValuesPlaceholderBindingOption = @"NSMultipleValuesPlaceholder";
|
|
|
|
NSString *NSNoSelectionPlaceholderBindingOption = @"NSNoSelectionPlaceholder";
|
|
|
|
NSString *NSNotApplicablePlaceholderBindingOption = @"NSNotApplicablePlaceholder";
|
|
|
|
NSString *NSNullPlaceholderBindingOption = @"NSNullPlaceholder";
|
|
|
|
NSString *NSPredicateFormatBindingOption = @"NSPredicateFormat";
|
|
|
|
NSString *NSRaisesForNotApplicableKeysBindingOption = @"NSRaisesForNotApplicableKeys";
|
|
|
|
NSString *NSSelectorNameBindingOption = @"NSSelectorName";
|
|
|
|
NSString *NSSelectsAllWhenSettingContentBindingOption = @"NSSelectsAllWhenSettingContent";
|
|
|
|
NSString *NSValidatesImmediatelyBindingOption = @"NSValidatesImmediately";
|
|
|
|
NSString *NSValueTransformerNameBindingOption = @"NSValueTransformerName";
|
|
|
|
NSString *NSValueTransformerBindingOption = @"NSValueTransformer";
|
|
|
|
|
|
|
|
NSString *NSAlignmentBinding = @"alignment";
|
2012-03-12 12:24:17 +00:00
|
|
|
NSString *NSContentArrayBinding = @"contentArray";
|
|
|
|
NSString *NSContentBinding = @"content";
|
2009-06-28 23:09:50 +00:00
|
|
|
NSString *NSContentObjectBinding = @"contentObject";
|
2013-04-15 20:20:38 +00:00
|
|
|
NSString *NSContentValuesBinding = @"contentValues";
|
2007-12-11 18:50:42 +00:00
|
|
|
NSString *NSEditableBinding = @"editable";
|
|
|
|
NSString *NSEnabledBinding = @"enabled";
|
|
|
|
NSString *NSFontBinding = @"font";
|
2011-03-07 15:35:36 +00:00
|
|
|
NSString *NSFontNameBinding = @"fontName";
|
|
|
|
NSString *NSFontSizeBinding = @"fontSize";
|
2007-12-11 18:50:42 +00:00
|
|
|
NSString *NSHiddenBinding = @"hidden";
|
|
|
|
NSString *NSSelectedIndexBinding = @"selectedIndex";
|
2011-06-11 12:01:59 +00:00
|
|
|
NSString *NSSelectedObjectBinding = @"selectedObject";
|
2011-03-07 15:35:36 +00:00
|
|
|
NSString *NSSelectedTagBinding = @"selectedTag";
|
2020-01-10 19:53:53 +00:00
|
|
|
NSString *NSSelectedValueBinding = @"selectedValue";
|
2012-03-12 12:24:17 +00:00
|
|
|
NSString *NSSelectionIndexesBinding = @"selectionIndexes";
|
2020-01-10 19:53:53 +00:00
|
|
|
NSString *NSSortDescriptorsBinding = @"sortDescriptors";
|
2007-12-11 18:50:42 +00:00
|
|
|
NSString *NSTextColorBinding = @"textColor";
|
2009-12-10 12:43:35 +00:00
|
|
|
NSString *NSTitleBinding = @"title";
|
2007-12-11 18:50:42 +00:00
|
|
|
NSString *NSToolTipBinding = @"toolTip";
|
|
|
|
NSString *NSValueBinding = @"value";
|
|
|
|
|
2014-06-09 10:21:22 +00:00
|
|
|
// FIXME: Need to define class _NSStateMarker!
|
|
|
|
id NSMultipleValuesMarker = @"<MULTIPLE VALUES MARKER>";
|
|
|
|
id NSNoSelectionMarker = @"<NO SELECTION MARKER>";
|
|
|
|
id NSNotApplicableMarker = @"<NOT APPLICABLE MARKER>";
|
2006-12-19 18:35:16 +00:00
|
|
|
|
|
|
|
|
2010-03-28 21:33:08 +00:00
|
|
|
// NSNib
|
|
|
|
NSString *NSNibTopLevelObjects = @"NSTopLevelObjects";
|
|
|
|
NSString *NSNibOwner = @"NSOwner";
|
|
|
|
|
2016-03-04 00:10:16 +00:00
|
|
|
// NSImage directly mapped NS named images constants
|
2016-03-09 15:36:59 +00:00
|
|
|
NSString *NSImageNameUserAccounts = @"NSUserAccounts";
|
|
|
|
NSString *NSImageNamePreferencesGeneral = @"NSPreferencesGeneral";
|
|
|
|
NSString *NSImageNameAdvanced = @"NSAdvanced";
|
|
|
|
NSString *NSImageNameInfo = @"NSInfo";
|
|
|
|
NSString *NSImageNameFontPanel = @"NSFontPanel";
|
2016-03-04 00:10:16 +00:00
|
|
|
NSString *NSImageNameColorPanel = @"NSColorPanel";
|
2016-03-09 15:36:59 +00:00
|
|
|
NSString *NSImageNameCaution = @"NSCaution";
|
2016-03-04 00:10:16 +00:00
|
|
|
|
2020-01-07 20:25:21 +00:00
|
|
|
// NSRuleEditor
|
|
|
|
NSString *const NSRuleEditorPredicateLeftExpression = @"NSRuleEditorPredicateLeftExpression";
|
|
|
|
NSString *const NSRuleEditorPredicateRightExpression = @"NSRuleEditorPredicateRightExpression";
|
|
|
|
NSString *const NSRuleEditorPredicateComparisonModifier = @"NSRuleEditorPredicateComparisonModifier";
|
|
|
|
NSString *const NSRuleEditorPredicateOptions = @"NSRuleEditorPredicateOptions";
|
|
|
|
NSString *const NSRuleEditorPredicateOperatorType = @"NSRuleEditorPredicateOperatorType";
|
|
|
|
NSString *const NSRuleEditorPredicateCustomSelector = @"NSRuleEditorPredicateCustomSelector";
|
|
|
|
NSString *const NSRuleEditorPredicateCompoundType = @"NSRuleEditorPredicateCompoundType";
|
|
|
|
|
|
|
|
NSString *NSRuleEditorRowsDidChangeNotification = @"NSRuleEditorRowsDidChangeNotification";
|
|
|
|
|
2020-01-17 15:06:00 +00:00
|
|
|
// NSAppearance
|
|
|
|
const NSAppearanceName NSAppearanceNameAqua = @"NSAppearanceNameAqua";
|
|
|
|
const NSAppearanceName NSAppearanceNameDarkAqua = @"NSAppearanceNameDarkAqua";
|
|
|
|
const NSAppearanceName NSAppearanceNameVibrantLight = @"NSAppearanceNameVibrantLight";
|
|
|
|
const NSAppearanceName NSAppearanceNameVibrantDark = @"NSAppearanceNameVibrantDark";
|
|
|
|
const NSAppearanceName NSAppearanceNameAccessibilityHighContrastAqua = @"NSAppearanceNameAccessibilityHighContrastAqua";
|
|
|
|
const NSAppearanceName NSAppearanceNameAccessibilityHighContrastDarkAqua = @"NSAppearanceNameAccessibilityHighContrastDarkAqua";
|
|
|
|
const NSAppearanceName NSAppearanceNameAccessibilityHighContrastVibrantLight =
|
|
|
|
@"NSAppearanceNameAccessibilityHighContrastVibrantLight";
|
|
|
|
const NSAppearanceName NSAppearanceNameAccessibilityHighContrastVibrantDark =
|
|
|
|
@"NSAppearanceNameAccessibilityHighContrastVibrantDark";
|
|
|
|
const NSAppearanceName NSAppearanceNameLightContent = @"NSAppearanceNameLightContent";
|
|
|
|
|
2020-02-04 10:26:52 +00:00
|
|
|
// Speech recognition...
|
|
|
|
const NSString *GSSpeechRecognizerDidRecognizeWordNotification = @"GSSpeechRecognizerDidRecognizeWordNotification";
|
|
|
|
|
2001-10-17 03:53:55 +00:00
|
|
|
extern void __objc_gui_force_linking (void);
|
|
|
|
|
|
|
|
void
|
|
|
|
__objc_gui_force_linking (void)
|
|
|
|
{
|
|
|
|
extern void __objc_gui_linking (void);
|
|
|
|
__objc_gui_linking ();
|
|
|
|
}
|