<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Virtual Sanity</title>
 <link href="https://www.virtualsanity.com/feed/" rel="self"/>
 <link href="https://www.virtualsanity.com/"/>
 <updated>2026-08-12T07:29:18-04:00</updated>
 <id>https://www.virtualsanity.com/</id>

 
 <entry>
   <title>Vertically Off-Center Components in NSSearchToolbarItem in macOS 27 Developer Beta 5</title>
   <link href="https://www.virtualsanity.com/202608/vertically-off-center-components-in-nssearchtoolbaritem-in-macos-27-developer-beta-5/"/>
   <updated>2026-08-12T07:29:48-04:00</updated>
   <id>https://www.virtualsanity.com/202608/vertically-off-center-components-in-nssearchtoolbaritem-in-macos-27-developer-beta-5</id>
   <author>
      <name>John Brayton</name>
      <uri>https://www.virtualsanity.com/</uri>
   </author>
   <content type="html">&lt;p&gt;In macOS 27 developer beta 5, search fields in toolbars (NSSearchToolbarItem instances) have their placeholder text, search strings, and magnifying glass icons vertically off-center. I reported this as &lt;b&gt;FB24286690&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;You can see this in the Feedback Assistant app. The &amp;ldquo;Search&amp;rdquo; placeholder text, the magnifying glass, and the search string are all closer to the top of the toolbar item than the bottom.&lt;/p&gt;

&lt;p&gt;I have a &lt;a href=&quot;/2026-08-search-toolbar/SearchToolbarItem.zip&quot;&gt;sample project demonstrating this&lt;/a&gt;.&lt;/p&gt;

To reproduce this:

&lt;ol&gt;
&lt;li&gt;Open the sample project.

&lt;li&gt;Observe that the sample project is a simple AppKit app that creates a window with a toolbar. The toolbar has an NSSearchToolbarItem.

&lt;li&gt;Run the app.
&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Expected results:&lt;/b&gt; The app presents a window with a toolbar. The toolbar has a search field. Alignment of all elements looks good.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual results:&lt;/b&gt; The magnifying glass, &amp;ldquo;Search&amp;rdquo; placeholder text, and any entered search string are much closer to the top of the text field than the bottom.&lt;/p&gt;


&lt;p&gt;It looks like the placeholder text is 11 points from the top border of the toolbar item, and 16 points from the bottom border.&lt;/p&gt;

&lt;p&gt;You can also see the effect in the toolbar customization palette. Choose &amp;ldquo;Customize Toolbar&amp;hellip;&amp;rdquo; from the View menu. The search toolbar item elements are also closer to the top of the toolbar item than the bottom in that palette.&lt;/p&gt;

&lt;p&gt;This is a screenshot of my sample app:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/2026-08-search-toolbar/from-sample-app.png&quot; width=&quot;929&quot; height=&quot;776&quot; alt=&quot;A window with a toolbar. The toolbar has a search field. The placeholder text and magnifying glass are closer to the top of the search field than the bottom.&quot;&gt;&lt;/p&gt;

&lt;p&gt;This is a screenshot of the toolbar customization palette in the sample app:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/2026-08-search-toolbar/customize-toolbar.png&quot; width=&quot;912&quot; height=&quot;748&quot; alt=&quot;A window showing a toolbar customization palette. The search field in the palette has the same issue as the one in the sample app.&quot;&gt;&lt;/p&gt;

&lt;p&gt;This is a screenshot of the top of the main window of the Feedback Assistant app:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/2026-08-search-toolbar/from-feedback-assistant.png&quot; width=&quot;518&quot; height=&quot;108&quot; alt=&quot;The search field of the Feedback Assistant app. The placeholder text and magnifying glass are closer to the top of the search field than the bottom.&quot;&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>NSTrackingSeparatorToolbarItem causes white bar over top of content in macOS 27 developer beta 5</title>
   <link href="https://www.virtualsanity.com/202608/nstrackingseparatortoolbaritem-causes-white-bar-over-top-of-content-in-macos-27-developer-beta-5/"/>
   <updated>2026-08-11T09:24:11-04:00</updated>
   <id>https://www.virtualsanity.com/202608/nstrackingseparatortoolbaritem-causes-white-bar-over-top-of-content-in-macos-27-developer-beta-5</id>
   <author>
      <name>John Brayton</name>
      <uri>https://www.virtualsanity.com/</uri>
   </author>
   <content type="html">&lt;p&gt;macOS 27 developer beta 5 (26A5406e) introduces a bug that causes a white bar to appear over window content if the window’s toolbar has an NSTrackingSeparatorToolbarItem. I filed &lt;b&gt;FB24266969&lt;/b&gt; with Apple describing this.&lt;/p&gt;

&lt;p&gt;I have a &lt;a href=&quot;/2026-08-split-view-bug/FullScreenIssue.zip&quot;&gt;sample project&lt;/a&gt; demonstrating this. This is a screenshot of the result:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/2026-08-split-view-bug/tracking-separator-bug.png&quot; width=&quot;1128&quot; height=&quot;731&quot; alt=&quot;A window showing a split view with 3 panes. The first pane has a solid blue color, the second has a solid green color, and the third has a solid orange color. At the top of the window there is a toolbar. Just below the toolbar there is a weird white bar that is just about the height of the toolbar. But it is below the toolbar, covering the top of the content.&quot;&gt;&lt;/p&gt;

&lt;p&gt;To reproduce the issue:&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;Open the attached sample project.

&lt;li&gt;Observe that the app presents a simple window with a 3-pane split view and a toolbar, and that there is a NSTrackingSeparatorToolbarItem tracking the separator between the second split view pane and the third split view pane.

&lt;li&gt;Run the app on a Mac running macOS 27 developer beta 5.

&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Expected results:&lt;/b&gt; The window should appear with a toolbar and the three panes.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual results:&lt;/b&gt; The window appears, but there is a white bar covering the top of the content. That white bar is roughly the height of the toolbar, but it is below the toolbar.&lt;/p&gt;

&lt;p&gt;Interestingly, I &lt;a href=&quot;/202607/nstrackingseparatortoolbaritem-causes-problems-when-putting-a-window-in-full-screen-on-golden-gate-macos-27/&quot;&gt;described a somewhat similar issue&lt;/a&gt; almost a month ago with developer beta 3. That prior issue only became visible after invoking full screen mode. It was fixed in developer beta 4. This new issue happens right away when the window appears.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>NSTrackingSeparatorToolbarItem causes problems when putting a window in full screen on Golden Gate (macOS 27)</title>
   <link href="https://www.virtualsanity.com/202607/nstrackingseparatortoolbaritem-causes-problems-when-putting-a-window-in-full-screen-on-golden-gate-macos-27/"/>
   <updated>2026-07-18T15:30:41-04:00</updated>
   <id>https://www.virtualsanity.com/202607/nstrackingseparatortoolbaritem-causes-problems-when-putting-a-window-in-full-screen-on-golden-gate-macos-27</id>
   <author>
      <name>John Brayton</name>
      <uri>https://www.virtualsanity.com/</uri>
   </author>
   <content type="html">&lt;p&gt;&lt;b&gt;Update July 20:&lt;/b&gt; Developer beta 4 seems to fix this.&lt;/p&gt;

&lt;p&gt;NSTrackingSeparatorToolbarItem adds a white band over the top of the leading split view panes when in full screen mode on macOS 27. That white band appears to have the height of the toolbar.&lt;/p&gt;

&lt;p&gt;I have a &lt;a href=&quot;/media/2027-07-18-tracking-separator/FullScreenIssue.zip&quot;&gt;sample project&lt;/a&gt; that demonstrates the issue. To reproduce it:&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;Download and open the &lt;a href=&quot;/media/2027-07-18-tracking-separator/FullScreenIssue.zip&quot;&gt;sample project&lt;/a&gt;. Observe that the main window contains a simple three pane split view. Also observe that the window it creates has a toolbar with an NSTrackingSeparatorToolbarItem. The NSTrackingSeparatorToolbarItem tracks the divider between the second pane and the third pane.

&lt;li&gt;Run the attached sample project on a Mac running Golden Gate (macOS 27).

&lt;li&gt;Click the green traffic light button in the upper left corner of the window.

&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Expected results:&lt;/b&gt; I expected a smooth animation. I expected all three panes to be completely visible when in full screen.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual results:&lt;/b&gt; The animation looks janky near the top of the screen. When the animation is complete, a white band covers the top of the first two panes.&lt;/p&gt;

&lt;p&gt;The symptoms change if you repeat entering and exiting full screen mode during the same session.&lt;/p&gt;


&lt;p&gt;This is a video of my following these steps:&lt;/p&gt;

&lt;p&gt;&lt;video src=&quot;/media/2027-07-18-tracking-separator/full-screen-issue.mp4&quot; poster=&quot;/media/2027-07-18-tracking-separator/poster.png&quot; width=&quot;835&quot; height=&quot;540&quot; controls&gt;&lt;/p&gt;

&lt;p&gt;I filed this as &lt;b&gt;FB23827858&lt;/b&gt; and am hoping it gets attention.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update July 20:&lt;/b&gt; Developer beta 4 seems to fix this.&lt;/p&gt;

</content>
 </entry>
 
 <entry>
   <title>Bug Involving Keyboard Shortcuts for Menu Items That Have No Modifier Keys on macOS 26.5</title>
   <link href="https://www.virtualsanity.com/202605/bug-involving-keyboard-shortcuts-for-menu-items-that-have-no-modifier-keys-on-macos-265/"/>
   <updated>2026-05-12T13:28:22-04:00</updated>
   <id>https://www.virtualsanity.com/202605/bug-involving-keyboard-shortcuts-for-menu-items-that-have-no-modifier-keys-on-macos-265</id>
   <author>
      <name>John Brayton</name>
      <uri>https://www.virtualsanity.com/</uri>
   </author>
   <content type="html">&lt;p&gt;I am seeing a bug that affects keyboard shortcuts that have no modifiers and are attached to menu items. For example, the bug would affect the keyboard shortcut J on a menu item, but not the keyboard shortcut &amp;#8984;J.&lt;/p&gt;

&lt;p&gt;I believe this bug was introduced in macOS 26.5. It is also present in the first developer beta of macOS 27.&lt;/p&gt;

&lt;p&gt;I filed this as &lt;b&gt;FB22762541&lt;/b&gt;, and am writing this to let others know about it.&lt;/p&gt;

&lt;p&gt;I do not have a macOS 26.4 environment to test against, but based on customer input I believe this is a new bug in macOS 26.5.&lt;/p&gt;

&lt;h2&gt;The Bug&lt;/h2&gt;

&lt;p&gt;When a menu item is invoked with a keyboard shortcut that has no modifiers and its validateMenuItem(_:) method returns false, the system beeps and refuses to perform the operation. This is expected.&lt;/p&gt; 

&lt;p&gt;But then even after validateMenuItem(_:) is returning true again, the app will continue refusing to perform that keyboard shortcut until the app is quit and relaunched. It will also do the same with all other keyboard shortcuts that have no modifiers and are attached to menu items.&lt;/p&gt;

&lt;p&gt;In addition, if a key is pressed for which there first responder to handle it, the system gets into the same state. The next valid key command without a modifier might get processed, but ones after that will not.&lt;/p&gt;

&lt;h2&gt;Sample App&lt;/h2&gt;

&lt;p&gt;To demonstrate this, I wrote a &lt;a href=&quot;/postimages/unmodified-keyboard-shortcuts/KeyboardShortcuts.zip&quot;&gt;sample project&lt;/a&gt;.

&lt;p&gt;&lt;img src=&quot;/postimages/unmodified-keyboard-shortcuts/app.png&quot; alt=&quot;&quot; width=&quot;492&quot; height=&quot;689&quot;&gt;&lt;/p&gt;

&lt;p&gt;Its app shows a counter. The File menu has these menu items:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Increment Counter (keyboard shortcut: &amp;#8984;J)
&lt;li&gt;Increment Counter (keyboard shortcut: J)
&lt;li&gt;Decrement Counter (keyboard shortcut: &amp;#8984;K)
&lt;li&gt;Decrement Counter (keyboard shortcut: K)
&lt;/ul&gt;

&lt;p&gt;The app also has an Enable Menu Items checkbox. When checked, validateMenuItem(_:) returns true for the four menu items above. When unchecked, it returns false.&lt;/p&gt;

&lt;p&gt;To see the issue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the sample app.
&lt;li&gt;Take note of the Increment/Decrement Counter menu items in the File menu.
&lt;li&gt;Increment the counter with the &amp;#8984;J and J keyboard shortcuts. Decrement the counter with the &amp;#8984;K and K keyboard shortcuts. Observe that all four keyboard shortcuts work as one would expect.
&lt;li&gt;Uncheck the Enable Menu Items checkbox.
&lt;li&gt;Open the File menu, and observe that the four menu items are disabled.
&lt;li&gt;Press the J key to increment the counter. Observe that you get a system beep and that nothing happens,&amp;nbsp;as one would expect.
&lt;li&gt;Check the Enable Menu Items checkbox.
&lt;li&gt;Open the File menu, and observe that the four menu items are enabled.
&lt;li&gt;Try to increment the counter with the &amp;#8984;J and J keyboard shortcuts, and to decrement the counter with the &amp;#8984;K and K keyboard shortcuts. 
&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Expected result:&lt;/b&gt; One would expect that all four keyboard shortcuts (&amp;#8984;J, J, &amp;#8984;K, and K) work again.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual result:&lt;/b&gt; &amp;#8984;J and &amp;#8984;K work. When you press J or K, you get a system beep and nothing happens, as if validateMenuItem(_:) was still returning false.&lt;/p&gt;

&lt;p&gt;Another way to see the issue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the sample app.
&lt;li&gt;Take note of the Increment/Decrement Counter menu items in the File menu.
&lt;li&gt;Increment the counter with the &amp;#8984;J and J keyboard shortcuts. Decrement the counter with the &amp;#8984;K and K keyboard shortcuts. Observe that all four keyboard shortcuts work as one would expect.
&lt;li&gt;Press the L key. The system beeps because nothing should handle that key press.
&lt;li&gt;Press the J or K key a few times.
&lt;/ol&gt;

&lt;p&gt;&lt;b&gt;Expected result:&lt;/b&gt; One would expect the J key presses to increment the counter, and the K presses to decrement the counter.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Actual result:&lt;/b&gt; The very first J or K key press after pressing L might work as expected. After that, pressing either J and K will consistently result in nothing happening, except for the system beeping.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;&lt;b&gt;Updated 2026-05-12 at 5:30 PM Boston time:&lt;/b&gt; After learning more about the symptoms, I added that pressing a key (such as L) without a corresponding keyboard shortcut also triggers the issue.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Updated 2026-06-11:&lt;/b&gt; Added that this issue also exists in macOS 27.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Murder</title>
   <link href="https://www.virtualsanity.com/202601/murder/"/>
   <updated>2026-01-12T10:13:51-05:00</updated>
   <id>https://www.virtualsanity.com/202601/murder</id>
   <author>
      <name>John Brayton</name>
      <uri>https://www.virtualsanity.com/</uri>
   </author>
   <content type="html">&lt;p&gt;In July, a man died less than two miles from my home while being pinned to the ground by police officers. The police had been called because the man was acting erratically and having some sort of health event. I was deeply concerned, and I wanted a thorough investigation of the incident. If the police officers used excessive force or acted with ill intent, I want them to be held accountable.&lt;/p&gt;

&lt;p&gt;There were a number of protests in the area shortly after this incident. I decided not to attend them. I anticipated that some attendees of those protests would accuse the police officers of murder. Since the deceased seemed to be having a health event before police were called, I did not know whether the police were to blame. Therefore I did not want to participate in a protest that might make such accusations.&lt;/p&gt;

&lt;p&gt;I was also confident that there would be a thorough investigation. I hope that this confidence was well placed.&lt;/p&gt;

&lt;p&gt;The death of Renee Nicole Good is a very different situation. The administration has made it clear that they are avoiding investigation. The FBI is trying to block state and local officials from investigating. I hope that state and local officials are able to investigate and prosecute despite this, but I am skeptical.&lt;/p&gt;

&lt;p&gt;JD Vance &lt;a href=&quot;https://x.com/JDVance/status/2009688858036986310&quot;&gt;suggests&lt;/a&gt; that we &lt;a href=&quot;https://x.com/AlphaNews/status/2009679932289626385&quot;&gt;watch video of the incident&lt;/a&gt;, so I did. I also watched several breakdowns of the video footage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=ILyy5zT5pQ0&quot;&gt;Jen Psaki at MS NOW&lt;/a&gt;
&lt;li&gt;&lt;a href=&quot;https://www.thebulwark.com/p/breaking-new-footage-in-minneapolis&quot;&gt;Tim Miller at The Bulwark&lt;/a&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=F_7tjt_CdVg&quot;&gt;Jon Favreau and Tommy Vietor at Pod Save America&lt;/a&gt;
&lt;/ul&gt;

&lt;p&gt;Based on all that video footage, it looks like the car was moving slowly and away from the ICE thug. It also like looks the ICE thug walks away without a scratch from this slow-moving vehicle. It looks like he was in about as much danger as he would be walking through any grocery store parking lot. Based on the words uttered just after the shooting, it sounds like he shot her out of unwarranted anger &amp;mdash; not out of self-defense.&lt;/p&gt;

&lt;p&gt;This was a murder.&lt;/p&gt;</content>
 </entry>
  
</feed>