I have a weird problem with Xcode v15.4.
For some unknown reasons, it sometimes becomes a zombie process - I cannot even quit it using CMD+Q, nor can I close open projects. I have to forcibly kill the process using Activity Monitor.
The problem will mostly strike after a long time of idle time (hours or even days).
Does anyone else have this same problem? Is there known workaround?
BTW, when it becomes a zombie process, another related com.apple.dt.SKAgent process will begin consuming much CPU time forever.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I believe starting from version 15, Developer Documentation is broken in several ways (at least for me).
Quick Help pane shows meaningless header information about many classes:
Reveal in Navigator does not work in most cases:
For example stringWithFormat:
I tried \s+$ to find trailing spaces, but it seems the IDE code editor behaves strangely - it locates random lines that obviously has no trailing spaces.
Did I misunderstand regex in the editor?
I want to use NSTask to run a shell script that resides in Resouces directory. The script performs some operations on files in the app's Data directory.But I am concerned that Apple could refuse my app for some reasons. Can anyone confirm if this approach is safe. Thanks.
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?
I'm not sure what I have missed in the new release, but I cannot set Standard Value in IB anymore like that I did for years.
The Standard Value is disabled in constraint dropdown list. If I clear the hardcoded value, "Standard" will appear but when I press ENTER, the old value comes back.
Is this a known bug or a new 'feature'?
I have a need to tell if 2 images are different by unimportant details.
For example, one image is only slightly different than another because:
*) It is a little stretched
*) or it has 99% portion of another (only missing some pixels on borders)
I wonder if there is an efficient algorithm to achieve my goal. Any suggestions are welcome.
Got confused about these 2 methods.
NSObject protocol has an isEqual: method.
NSObject implements NSObject protocol but it does not have isEqual:, instead it has an isEqualTo: method.
What's the magic behind the design? Or is the doc wrong?
Should I implement both methods in a derived class?
In IB I connect a button to a VC and set the segue kind to 'Popover'. Now I have a problem. How do I get the NSPopover and its delegate?
-(void)prepareForSegue:(NSStoryboardSegue *)segue sender:(id)sender {
NSLog(@"%s: %@", __func__, segue.destinationController);
NSViewController* vc = segue.destinationController;
}
I want to add "Show in Finder" in my app that is similar to the one in Xcode. How do I do this using objc?
I am currently using Xcode 14.2 (14C18), but it has some glitches (which I don't want to enumerate here).
I now want to revert back to an earlier older version. Any suggestions?
I cannot find any docs on this image name but I can select it from the dropdown list in IB. What is the mim macOS version for this name?
I target my project to macOS version 10.10. Now I have an NSStackView in IB and I can set its distribution property in the inspector pane. But there is a yellow warning saying that the distribution property is available only on 10.11+.
My question is - will my app crash if it runs on macOS 10.10?
I submitted a test package and got the following email:
ITMS-90345: Metadata/Info.plist Mismatch - The value for bundle_identifier in the metadata.xml file does not match the value for CFBundleIdentifier in test [net.neolib.test.pkg/Payload/test.app].
I really don't have any idea what's wrong. It's a simple (almost blank) app with nearly no modification (except linked with a dylib).
What is the metadata.xml? I cannot find it in my test project.
I once posted a question in the forums, but it seems I cannot find the thread now (maybe the thread was before the new forums was born).
I don't know why I am so confused about this directive (or whatever):
It looks like a compiler directive because it has a specific syntax.
But it also looks like it's a runtime check because it is used in if statement (not in #if).
So my question is:
Given the following code:
if (@available(macOS 13.0, *) {
NSLog("Running on macOS Ventura or later")
} else {
NSLog("Running on older version before Ventura")
}
Does this directive check real macOS version during runtime?