Dan Lyke on Nostr: So, in Objective-C, if you do: self.itemsDataNew = [@[] copy]; self.itemsDataFeed = ...
So, in Objective-C, if you do:
self.itemsDataNew = [@[] copy];
self.itemsDataFeed = [@[] copy];
Do they point to the same empty array object, or different ones?
Damn it, Apple...
Published at
2024-06-03 17:40:42Event JSON
{
"id": "3047776634164f879eb099e1dab6894abe09b89d47a76fe2a54667a378cf4c17",
"pubkey": "3ad806433f1d09d2643dd8bf4162890270449539839aab7b9da215e1d5681bac",
"created_at": 1717436442,
"kind": 1,
"tags": [
[
"proxy",
"https://researchbuzz.masto.host/users/danlyke/statuses/112553914687122466",
"activitypub"
]
],
"content": "So, in Objective-C, if you do:\n\nself.itemsDataNew = [@[] copy];\nself.itemsDataFeed = [@[] copy];\n\nDo they point to the same empty array object, or different ones?\n\nDamn it, Apple...",
"sig": "82b7ad0b732f665c0f0fb2db8d389590769f1e51d807cece80d1678041e0f0f17128d45d2ca180990d9a8c6009ee82674d9f6024dcb663a9f353415b573fd1af"
}