Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DevT

macrumors newbie
Original poster
Aug 23, 2019
7
1
Hi,
using xcode 15.3 and new to it. I created a cocoa / xib project. Dragged custom view to the view. made custom view smaller than the view. filled the custom view area with color. when I launch the APP, custom view covers the entire view area. No matter what I tried, could not undo the expansion of the custom view. It just covers the entire of the view area. I tried the inspector attributes but no help.
 

galad

macrumors 6502a
Apr 22, 2022
598
484
Are you filling the dirty rect? Don't do that. NSView since Sonoma don't clip to bounds, so either use the bounds in your drawRect code, or set clipsToBound to false.

The AppKit release notes list the changes of every macOS version.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.