• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unhidden subview outside of superview's bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unhidden subview outside of superview's bounds


  • Subject: Unhidden subview outside of superview's bounds
  • From: Dragan Milić via Cocoa-dev <email@hidden>
  • Date: Sat, 10 Feb 2024 11:16:11 +0100

Hello all,

I’ve finally changed my main development platform to macOS 14 Sonoma and almost
immediately have I encountered something I consider being a bug. I searched for
similar issues, but nowhere have I found any relevant information or help.

The issue is rather funny; if you have a subview and, for whatever reason, it
finds itself outside of its superview’s bounds, it remains visible, instead of
being hidden. It’s like you have a window on your room wall, but still the
interior of your room is visible outside of window’s borders :-)

Here’s a simple Xcode project that explains what I’m talking about:

https://zigz.ag/temp/SubviewBug/UnhiddenXcodeProject.zip

Unpack and build this project, run the test application and see it yourself.

However, there are some differences, regarding the Xcode/SDK version used to
build the application and the macOS version it runs on. The project format is
“Xcode 13.0” and " MACOSX_DEPLOYMENT_TARGET = 13.0”. Here you can find
application bundle, build with Xcode 14:

https://zigz.ag/temp/SubviewBug/UnhiddenXcode14Build.zip

The relevant build parameters, as found in application's Info.plist are:

BuildMachineOSBuild: 22G605
DTPlatformVersion: 13.3
DTSDKBuild: 22E245
DTXcode: 1431
DTXcodeBuild: 14E300c

If you run it on both Ventura and Sonoma, you’ll see ti behaves as expected.
However, here you can find application bundle, build with Xcode 15:

https://zigz.ag/temp/SubviewBug/UnhiddenXcode15Build.zip

The relevant build parameters, as found in application's Info.plist are:

BuildMachineOSBuild: 23D56
DTPlatformVersion: 14.2
DTSDKBuild: 23C53
DTXcode: 1520
DTXcodeBuild: 15C500b

Now, if you run this build on Ventura, you’ll see it behaves fine. Running it
on Sonoma however, shows the behaviour I’m trying to explain; the ratio button
titled “Two” remains visible, even though its superview shrinks and it goes out
of its superview’s bounds. So, the issue is present only on Sonoma, if build
with Xcode 15.

The difference is visible even inside Interface Builder. Here is a short video
of shrinking a superview in IB of Xcode 14, note how the “Two” radio button
becomes invisible, as it goes outside of its superview’s bounds:

https://zigz.ag/temp/SubviewBug/InterfaceBuilderXcode14.mov

Here is the video of shrinking the same superview in IB of Xcode 15, the “Two”
radio button remains visible regardless of its superview’s bounds:

https://zigz.ag/temp/SubviewBug/InterfaceBuilderXcode15.mov

Is this a bug? Or did I miss something in macOS 14 Sonoma SDK release notes,
which would indicate from now on this is expected behaviour (highly unlikely)?

-- Dragan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unhidden subview outside of superview's bounds
      • From: Dragan Milić via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Screen saver settings don't take effect (again) under Sonoma
  • Next by Date: Re: Unhidden subview outside of superview's bounds
  • Previous by thread: Re: Screen saver settings don't take effect (again) under Sonoma
  • Next by thread: Re: Unhidden subview outside of superview's bounds
  • Index(es):
    • Date
    • Thread