have an Objective C app originally developed in Xcode 12.3 on Catalina and ported to Xcode 13.4 on Monterey. The minimum OS version is set to 10.12 (Catalina). In the app is a class ImageController defined as below, with a number of functions
ImageController.h
#import <Cocoa/Cocoa.h>
@class AppDelegate;
…
@interface ImagesController : NSArrayController {
…
- (void)addFileAtIndex:(NSString *)filePath index:(NSUInteger)index;
}
ImageController.m
#import "ImagesController.h"
…
#import "AppDelegate.h"
…
@implementation ImagesController
- (void)addFileAtIndex:(NSString*)filePath index:(NSUInteger) index{
...
NSMutableArray *filesToAdd = [NSMutableArray array];
[filesToAdd addObject:[CSSImageInfo containerWithPath:filePath]];
NSMutableIndexSet *indexSet = [NSMutableIndexSet indexSetWithIndex:index];
self insertObjects:filesToAdd atArrangedObjectIndexes:indexSet];
NSInteger selectedIndex = [self selectionIndex];
…
}
When the function addFileAtIndex is called (with [imagesController addFileAtIndex:filename index:selectedIndex]; the app running on Monterey it executes normally. When is is called from the app running on Catalina it is never entered. What do I have to do to make the function accessible on Catalina?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Can MacOS apps be downloaded from outside the App Store as well as from it? I'd like to make it available directly from my web site as well as within the App Store.
I would like to record application log data in a file which iOS users can locate using the Files app and email to me in case of problems. Can I do this using the os_log functionality? The file path is defined as below:
let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)
let documentsDirectory = paths[0]
let fileName = "\(Date()) CaptionEdit Logfile.txt"
let logFilePath = (documentsDirectory as NSString).appendingPathComponent(fileName)
I have a Swift 5.0 iOS app in Xcode 13 targeting iOS 14 where I try to access the Google Photoscan app programmatically using the following code running on an iPhone 8 with iOS 16
let photoScanURLString1 = "https://apps.apple.com/au/app/photoscan-by-google-photos/id116552994"
UIApplication.shared.open(NSURL(string:photoScanURLString1)! as URL)
This takes me to the App Store and shows the message "This app is currently not available in your region or country", which is en-AU, but does not go to the App page and let me download. The same behaviour is observed if I enter the URL photoScanURLString1 into Safari on the iPhone.
However, if I click the URL in a mail message I can download the app, and if I search for Google Photoscan in the App Store app I can download it OK.
How can I download the app from the App Store programmatically without changing my region in the iPhone settings?
The Main storyboard in an Xcode 14.01 Swift project workspace shows all panels as blank, Opening the Main.storyboard file (in Base.lproj folder) with Xcode shows it as expected but it appears blank when loaded into the project. Removing and adding the file does not show its content in Xcode.
I have been using an "Elements SE" 1 Tb USB hard drive for Time Machine backup on a 2012 MacBook Pro running Catalina, where it worked OK. When I plug the drive into a 2019 MacBook Pro running Monterey, Time Machine cannot write to it as it appears as read-only. Whe I try and inspect the disk using Disk Utility it appears as unmounted, and greyed out, and the Mount button is greyed out. First Aid on the disk fails. What do I have to do to make it useable by Time Machine on the 2019 MacBook Pro?
I have an Objective-C app running on MacOS using XCode 14.1, in which there are 3 levels of form. The Level 2 form is opened from an action with a makeKeyAndFront action from a button. The Level 3 form is a regular panel opened from the level 2 form in a similar way. The level 3 form can be closed normally if no action changes the level 2 form. However, if an image is loaded into an NSImageView control on the level 2 form, the level 3 form can be displayed but cannot be closed by clicking on the red x button which normally performs this function. The level 3 form can be minimised. What do I have to do to allow the level 3 form to be closed in this situation?
I have an new iOS app called CaptionEdit. I have set a number of different keywords for it in App Store Connect including 'caption photos' and 'add text to photos'. However, if I type either of these these phrases into the iOS App Store search box, my app does not appear in the 150+ results at all, even though the bottom-ranking apps (like mine) have no ratings or reviews. App Store connect indicates that my app has had 29 downloads over the past month and 5 over the past 7 days. Is the absence of my app in search results from a keyword due to apps requiring a minimum number of downloads over an averaging period to even appear in keyword search results? (The app does appear if use the app name as a search term).
I have an NSImage that I would like to pad out with white pixels. How can I do this?
The UIbarButtonItems in an iOS/ Swift app navigation bar in a view controller do not respond to clicks after navigation bar origin changed in the viewWillTransition event.
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.
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?
No AppName.dSym file is generated in App Archive by Xcode 13 using the default settings ported from Xcode 12. Has a setting been lost which enables symbol creation?