Post

Replies

Boosts

Views

Activity

Reply to Xcode 15.1 doesn't create Objective-C Category files anymore
Took me one month to figure out that the reason for this regression is the simple lack of the two template files. So in order to make this work, you need to find an older copy of Xcode and copy over the files CategoryNSObject and ExtensionNSObject found at Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/MultiPlatform/Source/Objective-C File.xctemplate and voilà everything is working again!
Jan ’24
Reply to Crash in NSDictionaryController -addObject:
I was able to reproduce the problem in the debugger: Thread 68: "Cannot remove an observer <NSDictionaryController 0x7fc4f530e290> for the key path \"value\" from <_NSDictionaryControllerKeyValuePair 0x60000093e2b0> because it is not registered as an observer." The problems were a) I use NSString as the value, but check for an NSNumber, hence it should be NSString *dictIdent = self.loggedConfigs[identString]; but that didn't cause the actual crash b) The method was called from multiple dispatch queues at the same time, causing a mutating while enumerating crash.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’23
Reply to Get data usage of an iPhone using ifadders
I came across this post while searching for if_data64 for a Mac app I'm currently writing. On the Mac, this works and is well documented in the man page for ifmib, which even contains a code example. On iOS it is exactly as eskimo said though, you need to import headers from the macOS SDK to make the code compile, but at runtime it will fail with an EPERM error (Operation not permitted).
Dec ’21
Reply to SimplePing calculating Trip Times
On the send side there’s not a lot you can do; there’s no equivalent of  SO_TIMESTAMP on the send side. /sbin/ping solves the problem by calling gettimeofday() and putting the result into the data field of the outgoing packet, because as of RFC 792 the Echo Reply packet has to contain the data field from the Echo Request.
Aug ’21
Reply to macos 15.4 beta 3: NSStatusNone et. al. not rendered
fixed in 15.4 RC 👍
Topic: UI Frameworks SubTopic: AppKit
Replies
Boosts
Views
Activity
Mar ’25
Reply to macos 15.4 beta 3: NSStatusNone et. al. not rendered
Not fixed in beta 4 🙁
Topic: UI Frameworks SubTopic: AppKit
Replies
Boosts
Views
Activity
Mar ’25
Reply to Xcode 15.1 doesn't create Objective-C Category files anymore
Fixed in 15.3. Thanks for no upvotes!
Replies
Boosts
Views
Activity
Mar ’24
Reply to Xcode 15.1 doesn't create Objective-C Category files anymore
Here are the missing files: [https://www.icloud.com/iclouddrive/027-JUISnmGAy_Zj0Lu5H3NEA#xcode-objc)
Replies
Boosts
Views
Activity
Jan ’24
Reply to Xcode 15.1 doesn't create Objective-C Category files anymore
Took me one month to figure out that the reason for this regression is the simple lack of the two template files. So in order to make this work, you need to find an older copy of Xcode and copy over the files CategoryNSObject and ExtensionNSObject found at Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/MultiPlatform/Source/Objective-C File.xctemplate and voilà everything is working again!
Replies
Boosts
Views
Activity
Jan ’24
Reply to Receiving ES_NEW_CLIENT_RESULT_ERR_INTERNAL while creating Endpoint security client
Did you find a solution?
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Endpoint Security Entitlement request status.
My request was granted today, it took 13 months. The e-mail only contained one link.
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Crash in NSDictionaryController -addObject:
I was able to reproduce the problem in the debugger: Thread 68: "Cannot remove an observer <NSDictionaryController 0x7fc4f530e290> for the key path \"value\" from <_NSDictionaryControllerKeyValuePair 0x60000093e2b0> because it is not registered as an observer." The problems were a) I use NSString as the value, but check for an NSNumber, hence it should be NSString *dictIdent = self.loggedConfigs[identString]; but that didn't cause the actual crash b) The method was called from multiple dispatch queues at the same time, causing a mutating while enumerating crash.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Get data usage of an iPhone using ifadders
I came across this post while searching for if_data64 for a Mac app I'm currently writing. On the Mac, this works and is well documented in the man page for ifmib, which even contains a code example. On iOS it is exactly as eskimo said though, you need to import headers from the macOS SDK to make the code compile, but at runtime it will fail with an EPERM error (Operation not permitted).
Replies
Boosts
Views
Activity
Dec ’21
Reply to SimplePing calculating Trip Times
Correct, it doesn't solve the delay between 1 and 4. It does solve the problem of keeping a map of sequence numbers and send times though.
Replies
Boosts
Views
Activity
Nov ’21
Reply to SimplePing calculating Trip Times
On the send side there’s not a lot you can do; there’s no equivalent of  SO_TIMESTAMP on the send side. /sbin/ping solves the problem by calling gettimeofday() and putting the result into the data field of the outgoing packet, because as of RFC 792 the Echo Reply packet has to contain the data field from the Echo Request.
Replies
Boosts
Views
Activity
Aug ’21