[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error compiling GUI - string constants
From: |
Josh Freeman |
Subject: |
Re: error compiling GUI - string constants |
Date: |
Wed, 26 Jul 2017 09:58:51 -0400 |
On Jul 26, 2017, at 7:37 AM, Daniel Ferreira (theiostream) wrote:
Also, the reason it just does not assign the same const string to
the different constants is because the two consts should be the same
pointer, and doing it explicitly seemed like a good way to make that
intent clear and guarantee that would happen.
Changing the second string constant into a macro of the first
would guarantee they're the same pointer:
APPKIT_EXPORT NSString *NSStringPboardType;
...
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
# define NSPasteboardTypeString NSStringPboardType
#endif
Re: error compiling GUI - string constants,
Josh Freeman <=
- Re: error compiling GUI - string constants, David Chisnall, 2017/07/27
- Re: error compiling GUI - string constants, Fred Kiefer, 2017/07/27
- Re: error compiling GUI - string constants, David Chisnall, 2017/07/28
- Re: error compiling GUI - string constants, Ivan Vučica, 2017/07/28
- Re: error compiling GUI - string constants, David Chisnall, 2017/07/28
- Re: error compiling GUI - string constants, Ivan Vučica, 2017/07/28