I have downloaded an Objective-C Project CocoaSlideshow which I have modified, built, and run successfully in XCode 12.3 running on Catalina (10.15.7) but I cannot display the interface in XCode. I have created an archive and generated a .dmg file. There is no Main.storyboard file in the project. There is a message Unable to Load revisions at the bottom of the centre and right-hand panels. The Editor menu option does not include the option to display the Assistant Editor. How can I display the interface in this project?
Post
Replies
Boosts
Views
Activity
Where is the data for NSUserDefaults standardUserDefaults stored? I would like to edit stored values as is possible in the Windows Registry. I am using XCode 12.3 on Catalina. Finder search does not show any non-source code file on the machine which contains the persisted values.
I have an Objective C project for MacOS in XCode 12.3 running on Catalina. A preferences screen shown at run time has started displaying controls in inverted vertical order, as though the Y origin is at the top (as it is for iOS) rather than the bottom (as it is for MacOS). In design view the ordering is correct. How can I fix this problem?
I am trying to create a file from a text string in a web server in a folder C:\inetpub\wwwroot\AlekaConsulting\AlekaConsulting\License using IIS 10.0.14393.0 on a Windows Server 2016 environment using the following Objective-C code on macOS Catalina, but no file is created and the returnString variable contains the error message
405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
The same error appears if I use PUT rather than POST as HTTPmethod.
No verbs are listed in the Request Filtering tab of IIS Manager, which means no verbs are blocked. webDav is not installed as a server feature.
Content can be successfully read from files in the specified folder.
Is the error connected with the URL being accessed via https?
(void) UploadFileContent: (NSString *) fileContent{
NSString *urlString = @"https://captionpro.com.au:444/AlekaConsulting/License";
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
NSMutableData *body = [NSMutableData data];
NSString *boundary = @"---------------------------14737809831466499882746641449";
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary];
[request addValue:contentType forHTTPHeaderField:@"Content-Type"];
[body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithFormat:@"Content-Disposition: form-data; name=\"parameter1\"\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithString:fileContent] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[@"\r\n" dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithFormat:@"--%@--\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
[request setHTTPBody:body];
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];
NSLog(@"%@", returnString);
}
fg
I have an Xcode 12.3 XIB project using Objective C running on Catalina with a panel to which I have added a vertical split view of type NSSplitview using default attributes. The split view divider is not visible when I run the application, but objects placed in each pane of the NSSplitview are. The invisible divider (there is no change in the cursor when moving over where the divider should be) means that NSSplitview does not work.
If a create a new XIB project, an NSSplitview control added to a panel is visible OK, so I think there is something about the parent project which is upsetting NSSplitview.
In an Objective C project for MacOS using XCode 12.3 I define variables of various types including NSRect and CGFloat at the start of a class implementation region so that they are accessible from all methods. When I add a breakpoint in a method, some of the variables can be displayed by hovering the cursor over the variable in the code window or examining the variables window. However, some class-level variables are not shown in the variables window or by hovering over them. Attempting to examine then using po in the debugger console shows an undeclared variable error. Class-level variables of type CGFloat which are assigned are visible but not variables that do not have values assigned. None of the objects class NSRect appearing on the RHS of assignments are visible when hovering over the or by using po in the debugger console.
When viewing total downloads for an App in App Store Connect App
Analytics, the option to filter Total Downloads by version is greyed out
when clicking Add Filter even though the app has had a version change 1
week ago as shown in the App Store Version history. The version option
is greyed out when running App Store Connect from Windows (using
Firefox) and from a Mac (using Safari)
I have a Swift 5 app that I would like to test on an iPad simulator but the only iPad simulator available is iPad (8th generation). I have a 5th generation iPad which is running iPadOS 15.4 which is presumably capable of running a Swift 5 app but its simulator does not appear in the list of possible iOS simulators.
I'm getting the error "Cannot create Swift scratch context (couldn't create a ClangImporter)" when running a Swift project in XCode 12.3 on Catalina when I try to use the debugger. There is a resolution of this problem described at https://forums.raywenderlich.com/t/entering-debugger-in-swift-project-couldnt-create-a-clangimporter/130829 but I don't understand the fix of "removing zsh customisations in dotfiles". Can anyone explain what the files to change are and how they have to be changed? (I'm new to Mac development)
I would like to be able to select a photo in iOS using Swift from the Photos library using
UIImagePicker and copy all the image (with modified Exif metadata) to a
new photo which I save in Photos. If I use UIActivityViewController to
choose the save option (from copy/save/assign to contact/print/add to
shared album/save to file), the input image Exif metadata is not transferred
when I create a new UIimage from the loaded image data with the
modified metadata. How can get the image with modified Exif metadata attached
to the saved photo?
I have developed a MacOS app with a toolbar in Catalina running on a 2013 Macbook Pro and the toolbar height is sufficient to show all icons in half the screen as shown below:
However a user has reported that their toolbar appears as shown below, where the toolbar is reduced in height and the icons so widely spaced that some are not shown and appear as pop-up menu items which are disabled. Is this a consequence of using a newer OS than Catalina? Is there a way of increasing the toolbar height so that all icons are shown in newer versions of MacOS?
How can I create a simulator for an iPhone 6 (runninf iOS12.4) in Xcode 12.3? Entries in the Simulators list shown in Preferences->Components are all greyed out. The entries go up to iOS14.2. If I try to create a new Simulator by clicking + in Window->Devices and Simulators, Simulators tab, the only OS version available in the dropdown is iOS 14.3. If I try to download more Simulator runtimes I see the greyed out list shown in Preferences->Components.
I am developing an app to run on iOS 12.4 or newer using Xcode 12.3 on MacOS Catalina. On my screens I have a number of navigation bar buttons which have a system icon specified as well as text in Interface Builder. When running on an iOS 14.3 simulator, the bar button icons appear but on an iOS 12.4 simulator (and an iOS 12.4 device) the icons do not appear and only text is shown. The buttons still work OK on iOS12.4. How can I make system icons appear in Navigation bar button items in Xcode 12.4?
I'm trying to sign into a Sandbox account which is visible in App Store Connect from an iPhone 6 running iOS 12.5.5. After submitting Sandbox account or Apple ID credentials, a gear wheel appears but when it disappears the Sign In prompt reappears. If I enter invalid credentials, immediate feedback they they are invalid is shown.
An application toolbar in an XIB file created in XCode 12.3 on MacOS Catalina from an Objective-C project appears as below
But in XCode 13.4 it appears as below (the rotate icon has been changed)
When the application is run under Xcode 13.4 or on MacOS Monterey the application toolbar appears as below
How can I make the toolbar appear as it does in Xcode 12.4 when running on Monterey or using Xcode 13.4?