I just updated my Mac to Xcode 15 beta 6 and I find when I created a new view,
The code is shown below:
NSView * view = [[NSView alloc] init];
NSLog(@"%@",NSStringFromRect(view.visibleRect));
Console output
{{-8.9884656743115785e+307, -8.9884656743115785e+307}, {1.7976931348623157e+308, 1.7976931348623157e+308}}
But this has always been {0,0,0,0}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
(void)addSubview:(NSView *)view positioned:(NSWindowOrderingMode)place relativeTo:(nullable NSView *)otherView
will crash when NSWindowOrderingMode == NSWindowOut
After I upgrade my Xcode to Xcode15, When I use this function, the underlying view is no longer drawn
(void)addFloatingSubview:(NSView *)view forAxis:(NSEventGestureAxis)axis API_AVAILABLE(macos(10.9));
After I upgraded to xcode15 I noticed that a lot of our application was not displayed, and I found that the function was giving the wrong value
(void)drawRect:(NSRect)dirtyRect