Posts

Post not yet marked as solved
1 Replies
450 Views
I am writing a web server and testing with Safari. The server is written in Go. I have a page which allows the user to upload an image. The image displays properly in Safari. The image data is in a base64 string. This is on an input tag in the HTML. The save button submits this image along with other inputs. If the string length is over about 500K, when the request arrives at the server, the image string has been truncated which then produces an error EOF when attempting to decode the image. I have used the web inspector to see if I can find an issue there, but everything appears normal. If I select an image of less than around 500K, it is shown fine in the browser and the data string is fine when it arrives at the server. The image upload is accomplished by an input button of type "file" which onchange() executes this javascript code: function processFile(imageInput) { const reader = new FileReader() reader.addEventListener("load", () => { uploaded_image = reader.result; let displayImage = document.querySelector("#display_image"); displayImage.style.backgroundImage = `url(${uploaded_image})`; document.querySelector("#display_image_data").value = uploaded_image; document.querySelector("#display_image_size").innerHTML = uploaded_image.length.toString(); }); reader.readAsDataURL(imageInput.files[0]); } The display_image_data element is <input id = "display_image_data" name = "photoBytesString" hidden>
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
2 Replies
311 Views
I use cloudkit notifications to keep my 3 macs in synch when changes occur in cloudkit. Yesterday, 2 of the 3 macs did not receive notifications while 1 did receive. All Macs are running the latest Catalina, 10.15.3. Today, with no code changes, 1 of the 3 macs is not receiving notifications, even after rebooting. But one is receiving that didn't receive yesterday.didRegisterForRemoteNotificationsWithDeviceToken is successful on all 3 Macs.OK, just rebooted the failing Mac again and it is now receiving notifications. Now I am just concerned about the robustness of using the notifications.
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
4 Replies
303 Views
I have an app which uses in-app purchases. I created 3 subscriptions of the type: non-renewing subscription. However, after purchasing a 1-month subscription, I purchase again and it says already purchased so this is free. Why is that?
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
3 Replies
425 Views
I have implemented in-app purchases; however, in attempting to test it, I keep getting this error when making a purchase:Your Apple ID has been locked for security reasons.I have created 5 different testers and get this error on all of them. I have tried doing the unlock, changing passwords, but I still get the same error.
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
1 Replies
256 Views
Entity: ContactRecord@property (nonatomic) int64_t contactType;enum contactType{ contactTypeCustomer = 0, contactTypeVendor = 1, contactTypeRestaurantTableSupplier = 2, contactTypeReclaimedWoodSupplier = 3, contactTypeHardwoodFlooringSupplier = 4};enum contactType contactType = (enum contactType)[[CoreDataManager sharedManager]contactTypeFromString:contactTypeString];self.currentContactRecord.contactType = contactType;
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
21 Replies
2.8k Views
Just launched xcode 1Version 11.0 (11A420a) and built and ran my app. The popup buttons show up as just the title, no box around it and no icon on the right to indicate a dropdown. The popup still works, just the UI is messed up.Also, NSToolbar items with icons are messed up. Either the icon is empy or a weird image shows up. They work fine in xcode 10.
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
2 Replies
511 Views
I have a few Macs running my app using cloudkit. My Macbook Pro is the only one where I am running the latest Catalina beta, 10.15 Beta (19A526h). It is able to access the cloud database fine, but does not receive any cloudkit notifications. I think this may be due to cataling as the other Macs get their notifications fine.
Posted
by rschluet.
Last updated
.
Post marked as solved
6 Replies
1.4k Views
I have a Mac OS X app which has around 15 tables. These have worked fine for multiple years. I am in development mode for this container. I recently added a new table, adding it automatically as I created records from the app. I have created about 10 sample records in it, some from a different machine than my dev Mac. For 2 of these records, in an attempt to save, I get this error:&lt;CKError 0x600000d7b5d0: "Permission Failure" (10/2007); server message = "WRITE operation not permitted";From the dashboard on my dev Mac, I can retrieve the record, changed it, and save from there.
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
I have an Mac app which I have been running on a few different Macs. I added a Mac today to my devices. I archive the app and copy it to this new Mac just the same as I do on the other machines, but it crashes on launch with the 'code signatur invalid' error. Do I need to somehow add this device to this app id?
Posted
by rschluet.
Last updated
.
Post marked as solved
3 Replies
777 Views
I have updated my app to support dark mode and it's working everywhere now, except for printing. I have an NSView to print. In order for most controls to print correctly, black on whitebackground, I have done this:[control setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];The only portion which still prints dark on dark is the table headers. How can I set the headers to print black on white?I have set the table view itself to NSAppearanceNameAqua and the rest is ok.
Posted
by rschluet.
Last updated
.
Post marked as solved
7 Replies
2.3k Views
I want to print an NSView to the printer while in dark mode. For an NSTextField, I get a white background and white text, so it is unreadable.What should I set the background and text colors to so it will print white background and black text? I currently have text color set to Text Color and background set to Text Background color, which works in light mode, but not in dark mode.
Posted
by rschluet.
Last updated
.
Post marked as solved
3 Replies
1.1k Views
I am updating my Mac app to support Dark Mode. I am having trouble with NSTableViews. On two of my views it is working fine, but on others it is still showing as white background with black text.I wish this forum supported images(why not?) Anyway, I have set the Grid color to Default(Gridn Color) and the Background to Default(Control Background Color) and it looks fine in Interface Builder. It is set this way in both the table views that work and those that don't. When running the app, the non-working table views have a white background and black text. Also, I have checked every other setting in attributes inspector and they are also the same.
Posted
by rschluet.
Last updated
.
Post marked as solved
3 Replies
517 Views
I am currently running our business using Cloudkit apps on Macs and IOS devices. The container is in development mode so that I can add tables and fields as necessary. I would like to upgrade to production, but worry about the need for schema modifications after that. It appears that you cannot go back to development mode after switching to production. Is there a good process for handling this?
Posted
by rschluet.
Last updated
.
Post not yet marked as solved
1 Replies
532 Views
I am successfully using Cloudkit to synch data between multiple macs and iOS devices on a development container. I am using this app to run our business. I am considering distributing the app and support multiple companies. I have two concerns.1) After switching to a production container, how could I modify the database schema for a future version of the app.2) I use notifications via subscriptions to keep the devices in synch. After going production, can I still create new subscriptions for each new company?
Posted
by rschluet.
Last updated
.