Posts

Post not yet marked as solved
0 Replies
80 Views
In the apple APNS docs, it says: ‘When you have a notification to send to the user’ how do I determine the device has reach a state where the user needs a notification from normal websocket reception? for instance, let’s say Johnny and Amber are arguing over chat. They each send each other 50 texts, which are received over websocket. Johnny then leaves his phone chat, how does the push provider server know that Johnny needs APNS notifications to be sent? note that I am not having issue with sending notifications, nor do I want to send notifications for every chat message. if the switch from websocket -> APNS isn’t consistent, I’ll have to request data from the server, which includes data prior to the notification, to make sure all messages are received. Is this the way it’s done?
Posted
by aligned.
Last updated
.
Post not yet marked as solved
0 Replies
117 Views
I would like to save commands entered into a terminal instance for every console window I bring up. I am envisioning a directory that each time a terminal is opened a new file is created. As I enter in commands like ‘ls’ or ‘pwd’ it would write those commands to that file. Is there a way to do this? I would also like to write it to a database directly or web url through a POST if possible. Is there a way to add code snippets in a terminal window that takes action like this?
Posted
by aligned.
Last updated
.
Post not yet marked as solved
0 Replies
153 Views
When I got started with CSS, there were a few pages that had all the basic examples - spacing subviews of a fixed size, spacing subviews with a certain amount of padding, etc. Basically given a list of subviews, what it would take to see the subviews displayed within the parent container.Before SwiftUI, Modern Auto Layout was a great reference into how UIKit managed views. There was a clear description of how the engine worked, and how the parent and child views were rendered.With SwiftUI, it's not clear to me. The API has pretty short explanations, and when I try different combinations, it seems like the modifiers overlap each other, and most I apply seem to have no effect at all, which brings me to the reason why I don't like CSS.Is there anything out there that goes into detail about how the rendering engine manages parent/child views, in the context of the modifiers?
Posted
by aligned.
Last updated
.
Post marked as solved
4 Replies
841 Views
In looking through the forums, there are a lot of questions that have over 50 views, no comments, and no feedback of any type.Why isn't there some form of closure of open items? Why would people come here instead of SO?Joe
Posted
by aligned.
Last updated
.
Post not yet marked as solved
0 Replies
5.3k Views
I am running Xcode Version 10.1 (10B61), Mojave 10.14 (18A391)I see this problem go away if I remove the last model added in Core Data. It seems to trigger when I add a relationship to another object. If I back out the new item, the build succeeds, but once a class is added with a to many relationship, the build fails.I found this similar issue:https://forums.developer.apple.com/message/292507#292507what's similar about this issue is that the compiler is comparing the user model to the derived data model. The SO issue referenced shows an example where the user duplicated the model in their own environment.In this linkhttps://forums.developer.apple.com/message/157140#157140it mentions setting the class to "Manual/None" and this appears to work, but what is going on here? Why is this a possibility?Error:Multiple commands produce '//Library/Developer/Xcode/DerivedData/ProjectCoreData-ehjvvgovpitmbcegzopwciptfafr/Build/Intermediates.noindex/ProjectCoreData.build/Debug-iphonesimulator/ProjectCoreData.build/Objects-normax86_64/Contact+CoreDataClass.o': Target 'ProjectCoreData' (project 'ProjectCoreData') has compile command for Swift source files Target 'ProjectCoreData' (project 'ProjectCoreData') has compile command for Swift source filesfrom the logs: :0: error: filename "Contact+CoreDataClass.swift" used twice: '/Users//Desktop/ProjectCoreData/Contact+CoreDataClass.swift' and '/Users//Library/Developer/Xcode/DerivedData/ProjectCoreData-ehjvvgovpitmbcegzopwciptfafr/Build/Intermediates.noindex/ProjectCoreData.build/Debug-iphonesimulator/ProjectCoreData.build/DerivedSources/CoreDataGenerated/ProjectCoreData/Contact+CoreDataClass.swift' :0: note: filenames are used to distinguish private declarations with the same name :0: error: filename "Contact+CoreDataProperties.swift" used twice: '/Users//Desktop/ProjectCoreData/Contact+CoreDataProperties.swift' and '/Users//Library/Developer/Xcode/DerivedData/ProjectCoreData-ehjvvgovpitmbcegzopwciptfafr/Build/Intermediates.noindex/ProjectCoreData.build/Debug-iphonesimulator/ProjectCoreData.build/DerivedSources/CoreDataGenerated/ProjectCoreData/Contact+CoreDataProperties.swift' :0: note: filenames are used to distinguish private declarations with the same name Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
Posted
by aligned.
Last updated
.