Posts

Post not yet marked as solved
1 Replies
468 Views
Hi all, My interface displays a text field bound to an NSNumber that I use internally as unsigned int. That NSNumber is actually saved with Core Data as Integer 16. However, the interface displays the number signed, meaning anything above 32.768 is actually shown to be negative. I couldn't find a way to force my NSNumberFormatter to display unsigned numbers. Setting the minimum value to 0 also doesn't work, since internally it's gonna be positive anyway. Could you help me display my 16-bit integer as an unsigned int between 0 and 65.535? I am building a macOS app using Objective-C, macOS SDK 10.14 and Xcode 14.3.1.
Posted Last updated
.
Post marked as solved
1 Replies
741 Views
When I retrieve either operatingSystemVersion or the operatingSystemVersionString from [NSProcessInfo processInfo], I get 10.16 while I'm running on Monterey 12.3.1. Is it a known problem? Is there another way to retrieve an accurate OS version? Building and running on macOS 12.3.1, base SDK 10.14, deployment target 10.13
Posted Last updated
.
Post not yet marked as solved
1 Replies
954 Views
We are developing a document-based Objective-C project, using NSPersistentDocument and NSPersistentStore to save a unique binary file on disk. No autosave. Our application sometimes throws NSFileWriteUnknownError when trying to save the document, but the error description is obviously vague as this is an "unknown" error, not allowing us to debug easily. Why would such an unknown error be ever raised? Why doesn't Core Data know why it cannot save a file? We build using SDK 10.14 and run on macOS Monterey 12.3.1
Posted Last updated
.