Post

Replies

Boosts

Views

Created

Playground starts slowly or never runs
I am a little hesitant to ask this question because it's been years, during which I hoped it's just a specific problem of my own computer or Xcode version. I'm not sure if it's only me alone with this problem. First time run of any playground project is extremely slow (after I open it); sometimes it just never runs with the build indicator circling forever). This is true for objc or swift playgrounds, or different machines, different Xcode versions, different OS versions. Can anyone help?
2
0
1.7k
Feb ’22
Unwanted debug messages
I always get the following debug messages when I debug a simple test app: 2021-02-03 06:27:08.068287+0800 objcapp[4385:33065] Metal API Validation Enabled 2021-02-03 06:27:09.530861+0800 objcapp[4385:33767] Errors found! Invalidating cache... 2021-02-03 06:27:09.970280+0800 objcapp[4385:33767] Errors found! Invalidating cache... 2021-02-03 06:27:10.899920+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7 2021-02-03 06:27:10.971477+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7 2021-02-03 06:27:10.991057+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7 This began a few versions ago of macOS updates/upgrades. Is there any way to get rid of these messages? They are really interfering my focus on coding and debugging.
0
0
825
Feb ’21
How detect SDK version
I have the following code:@implementation NSWindow (Coordination) - (NSPoint)convertPointFromScreen:(NSPoint)point { NSRect rect = NSMakeRect(point.x, point.y, 1, 1); return [self convertRectFromScreen:rect].origin; }I get a compiliation warning:Category is implementing a method which will also be implemented by its primary classI know Swift has builtin preprocessor directives to detect SDK version, but don't know how to do this in objc. Any suggestions?
6
0
8.1k
Oct ’18
How to identify the first desktop (space)?
My app observes NSWorkspaceActiveSpaceDidChangeNotification and set wallpaper on the active screen. But I see there is no way to distinguish between spaces on a screen. I'm not sure if I have read the docs thoroughly. I would like to know if it is possible to tell which space is active for the active screen.
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
918
Jan ’17