<feed xmlns='http://www.w3.org/2005/Atom'>
<title>systray, branch use-mac-os-version-value-instead-of-macro</title>
<subtitle>a cross platfrom Go library to place an icon and menu in the notification area</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/'/>
<entry>
<title>systray_darwin.m: Compare Mac OS min version with value instead of macro</title>
<updated>2019-07-26T20:02:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2019-07-26T19:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=df494a923b6ecec23a2f0b03689826ee24e139af'/>
<id>df494a923b6ecec23a2f0b03689826ee24e139af</id>
<content type='text'>
I was getting this error building on Mac OS X 10.12:

    $ pwd
    &lt;$GOPATH&gt;/src/github.com/getlantern/systray/example
    $ go run .
    # github.com/getlantern/systray
    systray_darwin.m:132:22: error: use of undeclared identifier 'NSControlStateValueOn'
    systray_darwin.m:134:22: error: use of undeclared identifier 'NSControlStateValueOff'

The `NSControlStateValueOn` and `NSControlStateValueOff` were not
defined because Mac OS versions prior to 10.14 don't define
`__MAC_10_14`.

From `/usr/include/Availability.h`:

&gt; It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
&gt; source base that can be compiled to target a range of OS versions.  It is best
&gt; to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
&gt; That is because you might get compiled on an old OS that does not define a later
&gt; OS version macro, and in the C preprocessor undefined values evaluate to zero
&gt; in expresssions, which could cause the #if expression to evaluate in an unexpected
&gt; way.
&gt;
&gt;     #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
&gt;         // code only compiled when targeting Mac OS X and not iPhone
&gt;         // note use of 1050 instead of __MAC_10_5
&gt;         #if __MAC_OS_X_VERSION_MIN_REQUIRED &lt; 1050
&gt;             // code in here might run on pre-Leopard OS
&gt;         #else
&gt;             // code here can assume Leopard or later
&gt;         #endif
&gt;     #endif

See #75, #92.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I was getting this error building on Mac OS X 10.12:

    $ pwd
    &lt;$GOPATH&gt;/src/github.com/getlantern/systray/example
    $ go run .
    # github.com/getlantern/systray
    systray_darwin.m:132:22: error: use of undeclared identifier 'NSControlStateValueOn'
    systray_darwin.m:134:22: error: use of undeclared identifier 'NSControlStateValueOff'

The `NSControlStateValueOn` and `NSControlStateValueOff` were not
defined because Mac OS versions prior to 10.14 don't define
`__MAC_10_14`.

From `/usr/include/Availability.h`:

&gt; It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
&gt; source base that can be compiled to target a range of OS versions.  It is best
&gt; to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
&gt; That is because you might get compiled on an old OS that does not define a later
&gt; OS version macro, and in the C preprocessor undefined values evaluate to zero
&gt; in expresssions, which could cause the #if expression to evaluate in an unexpected
&gt; way.
&gt;
&gt;     #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
&gt;         // code only compiled when targeting Mac OS X and not iPhone
&gt;         // note use of 1050 instead of __MAC_10_5
&gt;         #if __MAC_OS_X_VERSION_MIN_REQUIRED &lt; 1050
&gt;             // code in here might run on pre-Leopard OS
&gt;         #else
&gt;             // code here can assume Leopard or later
&gt;         #endif
&gt;     #endif

See #75, #92.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #92 from gearboxworks/osx-mojave-fix</title>
<updated>2019-06-26T06:45:21+00:00</updated>
<author>
<name>joesis</name>
</author>
<published>2019-06-26T06:45:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=f2fa635d0474eae70a9d869b7d90423e85c5baef'/>
<id>f2fa635d0474eae70a9d869b7d90423e85c5baef</id>
<content type='text'>
Attempt to fix https://github.com/getlantern/systray/issues/75</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Attempt to fix https://github.com/getlantern/systray/issues/75</pre>
</div>
</content>
</entry>
<entry>
<title>Attempt to fix https://github.com/getlantern/systray/issues/75</title>
<updated>2019-06-26T01:27:49+00:00</updated>
<author>
<name>Mike Schinkel</name>
</author>
<published>2019-06-26T01:27:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=0a29fdd2c570df7af8d987be7517bf12ef1db610'/>
<id>0a29fdd2c570df7af8d987be7517bf12ef1db610</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #91 from raunaqrox/patch-1</title>
<updated>2019-06-18T00:46:38+00:00</updated>
<author>
<name>joesis</name>
</author>
<published>2019-06-18T00:46:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=3d7db9f66352b8bbe4901f61526b9015ce50aaa0'/>
<id>3d7db9f66352b8bbe4901f61526b9015ce50aaa0</id>
<content type='text'>
Fix application path for MacOS in README</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix application path for MacOS in README</pre>
</div>
</content>
</entry>
<entry>
<title>Fix application path for MacOS in README</title>
<updated>2019-06-17T23:14:57+00:00</updated>
<author>
<name>Sahebjot singh</name>
</author>
<published>2019-06-17T23:14:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=ad0c3762b269c98874404a05ff04f29b6e23aa0e'/>
<id>ad0c3762b269c98874404a05ff04f29b6e23aa0e</id>
<content type='text'>
App does not work with MacOS and Resources folder outside Contents.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
App does not work with MacOS and Resources folder outside Contents.</pre>
</div>
</content>
</entry>
<entry>
<title>more precise comment of LR_DEFAULTSIZE</title>
<updated>2019-01-31T07:37:53+00:00</updated>
<author>
<name>Joesis</name>
</author>
<published>2019-01-31T07:37:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=26d5b920200dbc1869c4bfde4571497082f83caa'/>
<id>26d5b920200dbc1869c4bfde4571497082f83caa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #78 from juja256/master</title>
<updated>2019-01-31T07:36:28+00:00</updated>
<author>
<name>joesis</name>
</author>
<published>2019-01-31T07:36:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=57a2af442e8b7aa8efd37d365856ece5f446382d'/>
<id>57a2af442e8b7aa8efd37d365856ece5f446382d</id>
<content type='text'>
Fix bad-looking system tray icon in Windows</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix bad-looking system tray icon in Windows</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #81 from michaelsanford/master</title>
<updated>2019-01-30T01:48:07+00:00</updated>
<author>
<name>joesis</name>
</author>
<published>2019-01-30T01:48:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=0daad7b8e5bd9533578e674141123f6a264a7454'/>
<id>0daad7b8e5bd9533578e674141123f6a264a7454</id>
<content type='text'>
Document cross-platform console window details</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Document cross-platform console window details</pre>
</div>
</content>
</entry>
<entry>
<title>Document cross-platform console window details</title>
<updated>2019-01-29T15:39:24+00:00</updated>
<author>
<name>Michael Sanford</name>
</author>
<published>2019-01-29T15:39:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=c7802de1542f2014d9fd6a3f1a1d4701b6f7ebba'/>
<id>c7802de1542f2014d9fd6a3f1a1d4701b6f7ebba</id>
<content type='text'>
Fixes #55. Explain how to hide the console window when running on Windows / macOS.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #55. Explain how to hide the console window when running on Windows / macOS.</pre>
</div>
</content>
</entry>
<entry>
<title>fixed bad-looking icon issue on windows</title>
<updated>2019-01-10T14:52:56+00:00</updated>
<author>
<name>Yevhen Hrubiian</name>
</author>
<published>2019-01-10T14:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/systray/commit/?id=42b54dae2e8ea291a213c6398fe597a33ec5bd37'/>
<id>42b54dae2e8ea291a213c6398fe597a33ec5bd37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
