Search results for

“A Summary of the WWDC26 Group Lab”

11,829 results found

Post

Replies

Boosts

Views

Activity

Reply to Task on MainActor does not run on the main thread, why?
Thank you, exhausting enough, everything is clear. Just a final summary for all others reading this thread, the core of my interest (not needed to be further commented, if correct :-) ) Unstructured Task created through Task.init inherits actor async context. (Detached Task does NOT - detached tasks are not subject of the summary below) The inherited actor async context has nothing to do with threads, after each await the thread may change, however the actor async context is kept throughout all the unstructured task (yes, may be on various threads, but this is important just for the executor). If the inherited actor async context is MainActor, then the task runs on the main thread, from beginning till its end, because the actor context is MainActor. This has no impact on any subtasks. Unstructured subtasks may inherit the actor async context, where applicable. async let = tasks, and group tasks (and detached unstructured tasks) do NOT inherit actor context! The bullet above is impor
Jul ’22
Can defaults command on macOS read app group preferences?
Is there any way to read/write preferences for a Mac app group using the defaults command? I'm talking about the stuff you would programmatically manipulate using [NSUserDefaults initWithSuiteName:], and that is stored on disk in ~/Library/Group Containers. If I just say defaults read <suite name>, it tells me the the domain does not exist.
5
0
2.9k
Jan ’23
Is there an implicit ordering to thread group execution?
In a compute (kernel) function, is there an implicit ordering to threadgroup execution.Say I have a 32xN buffer. Take following trivial kernel (ignoring boundary conditions):kernel void example(device uint *buffer [[ buffer(0) ]], const uint2 pos [[ thread_position_in_grid ]]) { uint index = pos.y * N + pos.x; buffer[i - 1] = buffer[i] buffer[i + 1] = 0; }If we dispatch that kernel in N 32x1 threadgroups, is there any way that the thread groups are executed left-to-right? i.e. the resulting buffer is all 0 (once again, ignoring the boundary conditions).Thanks
2
0
504
Aug ’15
Contacts 100's of DUPLICATES of the same GROUP
How do I fix this?I have had this issue since we went from Me.com to iCloud.com with having 100's of duplicates of the same GROUP in my contacts via my iCloud.com account; which is my main iCloud account. I had created a secondary @me.com account that I use only for my Contacts and junk email (this was created at the same time as the iCloud.com transition).1.I have ran an Apple Script trying to delete these duplicates.2. I have spent hours on iCloud.com deleting this group. When I do this the screen will get darker and darker while I am hitting Delete then Enter to confirm the deletion. After a period of time the screen will return to normal and I will continue and the screen goes black again..3. I have tried deleting any files that I know of that are associated to my Contacts on my MacBook; is there another file or library that I can delete that might Reset this icloud account?
0
0
133
Dec ’16
Dynamic Subscriptions groups (Twitch business model)
Hello. I need your help. We are developing an application where users provide premium content. Followers have to subscribe to each user's account to access their content through a renewable subscription. Like on Twitch application. Example: User 4 can subscribe to user 1, user 2 and user 3. He will pay every month, 3 subscriptions. The problem is that we can't create all the subscription groups manually because it would be too much work and not scalable. According to the documentation, if we have 1000 premium users (who sell their content), we have to create 1000 subscription groups manually and submit the application for each new selling user. How does Twitch make it possible for a user to subscribe to several accounts at the same time? Can I find documentation on this subject? Thanks in advance.
2
0
706
Oct ’22
Reply to MSSession summaryText doubling up
happens here too, on the simulator only. Version 10.0 (SimulatorApp-700.5.3)All summary texts, even for previous messages take on the last summary text you set and send.But it seems to work on device. always test on device. Just plug your phone into your computer and run your app on the device.
Topic: App & System Services SubTopic: General Tags:
Oct ’16
macOS : Accessing UserDefaults when App Group is enabled
I am developing a macOS app, with an embedded Finder Extension - https://developer.apple.com/documentation/findersync/fifindersync and I want the app and the extension to share UserDefaults - https://developer.apple.com/documentation/foundation/userdefaults The App is Sandboxed for future distribution on the app store. I followed instructions here : https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW1 Both targets are part of the same app group, as it can be seen in the Entitlements: com.apple.security.app-sandbox com.apple.security.application-groups $(TeamIdentifierPrefix)com.stormacq.mac.MyApp ttcom.apple.security.files.user-selected.read-only tt t 2. I am accessing the UserDefaults by the suiteName : t let defaults = UserDefaults.init(suiteName: TEAM_ID.com.stormacq.mac.MyApp) t //where TEAM_ID is the actual team id used to sign the app (something like 123AB45CDE) t However, when tr
6
0
5k
Sep ’20
Reply to Task on MainActor does not run on the main thread, why?
Thank you, exhausting enough, everything is clear. Just a final summary for all others reading this thread, the core of my interest (not needed to be further commented, if correct :-) ) Unstructured Task created through Task.init inherits actor async context. (Detached Task does NOT - detached tasks are not subject of the summary below) The inherited actor async context has nothing to do with threads, after each await the thread may change, however the actor async context is kept throughout all the unstructured task (yes, may be on various threads, but this is important just for the executor). If the inherited actor async context is MainActor, then the task runs on the main thread, from beginning till its end, because the actor context is MainActor. This has no impact on any subtasks. Unstructured subtasks may inherit the actor async context, where applicable. async let = tasks, and group tasks (and detached unstructured tasks) do NOT inherit actor context! The bullet above is impor
Replies
Boosts
Views
Activity
Jul ’22
Can defaults command on macOS read app group preferences?
Is there any way to read/write preferences for a Mac app group using the defaults command? I'm talking about the stuff you would programmatically manipulate using [NSUserDefaults initWithSuiteName:], and that is stored on disk in ~/Library/Group Containers. If I just say defaults read <suite name>, it tells me the the domain does not exist.
Replies
5
Boosts
0
Views
2.9k
Activity
Jan ’23
Is there an implicit ordering to thread group execution?
In a compute (kernel) function, is there an implicit ordering to threadgroup execution.Say I have a 32xN buffer. Take following trivial kernel (ignoring boundary conditions):kernel void example(device uint *buffer [[ buffer(0) ]], const uint2 pos [[ thread_position_in_grid ]]) { uint index = pos.y * N + pos.x; buffer[i - 1] = buffer[i] buffer[i + 1] = 0; }If we dispatch that kernel in N 32x1 threadgroups, is there any way that the thread groups are executed left-to-right? i.e. the resulting buffer is all 0 (once again, ignoring the boundary conditions).Thanks
Replies
2
Boosts
0
Views
504
Activity
Aug ’15
Contacts 100's of DUPLICATES of the same GROUP
How do I fix this?I have had this issue since we went from Me.com to iCloud.com with having 100's of duplicates of the same GROUP in my contacts via my iCloud.com account; which is my main iCloud account. I had created a secondary @me.com account that I use only for my Contacts and junk email (this was created at the same time as the iCloud.com transition).1.I have ran an Apple Script trying to delete these duplicates.2. I have spent hours on iCloud.com deleting this group. When I do this the screen will get darker and darker while I am hitting Delete then Enter to confirm the deletion. After a period of time the screen will return to normal and I will continue and the screen goes black again..3. I have tried deleting any files that I know of that are associated to my Contacts on my MacBook; is there another file or library that I can delete that might Reset this icloud account?
Replies
0
Boosts
0
Views
133
Activity
Dec ’16
I can't add a group to test my app in Test Flight.
After i submited a version to review and it approved. I can`t to add new versions to test in Test Flight. New versions kepp the status Ready to Submit and i can't to add a group to test this versions. I canceled submission before it sent to store and i can't to add a group to test new versions in Test Flight. Can someone help me?
Replies
2
Boosts
0
Views
782
Activity
Mar ’22
Reply to Software Updates in Education
Agreed. I need our macOS lab machines to update before 7:30 a.m. but NOT between 7:30 a.m. and 10 p.m. Other hours are fine.
Topic: General SubTopic:
Business & Education Q&A
Replies
Boosts
Views
Activity
Jun ’26
Dynamic Subscriptions groups (Twitch business model)
Hello. I need your help. We are developing an application where users provide premium content. Followers have to subscribe to each user's account to access their content through a renewable subscription. Like on Twitch application. Example: User 4 can subscribe to user 1, user 2 and user 3. He will pay every month, 3 subscriptions. The problem is that we can't create all the subscription groups manually because it would be too much work and not scalable. According to the documentation, if we have 1000 premium users (who sell their content), we have to create 1000 subscription groups manually and submit the application for each new selling user. How does Twitch make it possible for a user to subscribe to several accounts at the same time? Can I find documentation on this subject? Thanks in advance.
Replies
2
Boosts
0
Views
706
Activity
Oct ’22
Reply to MSSession summaryText doubling up
happens here too, on the simulator only. Version 10.0 (SimulatorApp-700.5.3)All summary texts, even for previous messages take on the last summary text you set and send.But it seems to work on device. always test on device. Just plug your phone into your computer and run your app on the device.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’16
macOS : Accessing UserDefaults when App Group is enabled
I am developing a macOS app, with an embedded Finder Extension - https://developer.apple.com/documentation/findersync/fifindersync and I want the app and the extension to share UserDefaults - https://developer.apple.com/documentation/foundation/userdefaults The App is Sandboxed for future distribution on the app store. I followed instructions here : https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW1 Both targets are part of the same app group, as it can be seen in the Entitlements: com.apple.security.app-sandbox com.apple.security.application-groups $(TeamIdentifierPrefix)com.stormacq.mac.MyApp ttcom.apple.security.files.user-selected.read-only tt t 2. I am accessing the UserDefaults by the suiteName : t let defaults = UserDefaults.init(suiteName: TEAM_ID.com.stormacq.mac.MyApp) t //where TEAM_ID is the actual team id used to sign the app (something like 123AB45CDE) t However, when tr
Replies
6
Boosts
0
Views
5k
Activity
Sep ’20