|
Dealing with unicodes in strings 7 messages
I’m converting some NSData to a NSString using UTF8 encoding, which is what I believe it should be. But the strings are sometimes ending up with embedded codes that are not converting, like @“this is
I’m converting some NSData to a NSString using UTF8 encoding, which is what I believe it should be. But the strings are sometimes ending up with embedded codes that are not converting, like @“this is
|
By
Graham Cox
·
|
|
Encoding / decoding an Array of structs
Hi All I’m trying to encode / decode an Array of struct. The struct in question is itself Codable - and the compiler is happy with it. In the following code, roles is an Array of struct called Scene…
Hi All I’m trying to encode / decode an Array of struct. The struct in question is itself Codable - and the compiler is happy with it. In the following code, roles is an Array of struct called Scene…
|
By
Peter Hudson
·
|
|
How to Display a Time Interval 14 messages
Objective-C, Mac. Hi, I’m trying to display a countdown to a date in the future e.g. the number of years, weeks and days to 1/1/2021. I have the Time Interval between now and the future date in second
Objective-C, Mac. Hi, I’m trying to display a countdown to a date in the future e.g. the number of years, weeks and days to 1/1/2021. I have the Time Interval between now and the future date in second
|
By
Dave
·
|
|
Why would an instance of NSMutableArray be immutable? 2 messages
I was trying to add an object to an array and got an exception saying that I was trying to modify an immutable object. I set a breakpoint just before the addObject: line, and said to lldb po [formatsO
I was trying to add an object to an array and got an exception saying that I was trying to modify an immutable object. I set a breakpoint just before the addObject: line, and said to lldb po [formatsO
|
By
James Walker
·
|
|
Some gestures aren't working right away 2 messages
I have an iOS app that's giving me a pain. One view hierarchy has a scroll view, page view, and other views. The storyboard has 3 gesture recognizers scattered among a couple of the view controllers.
I have an iOS app that's giving me a pain. One view hierarchy has a scroll view, page view, and other views. The storyboard has 3 gesture recognizers scattered among a couple of the view controllers.
|
By
Steve Mills
·
|
|
Dragging a file unto an app in iOS simulator
Hi: Previously, you could drag and drop from the Mac desktop over an app in iOS Simulator, and if the app was set up for that file extension, it would open the app and open the file through the applic
Hi: Previously, you could drag and drop from the Mac desktop over an app in iOS Simulator, and if the app was set up for that file extension, it would open the app and open the file through the applic
|
By
Owen Hartnett
·
|
|
flagsChanged: not being called on NSControl subclass 3 messages
What do you have to do these days to make this work? I tried returning YES from acceptsFirstResponder, as was suggested somewhere. There is 1 NSTrackingArea added to the view, using options NSTracking
What do you have to do these days to make this work? I tried returning YES from acceptsFirstResponder, as was suggested somewhere. There is 1 NSTrackingArea added to the view, using options NSTracking
|
By
Steve Mills
·
|
|
Creating objects via AppleScript and setting readonly properties 6 messages
This seems like bug, or I need to override something. I have a class: @interface Blah : NSObject @property (readonly) NSUInteger id; @end The id property is exposed to AppleScript in the Blah class: <
This seems like bug, or I need to override something. I have a class: @interface Blah : NSObject @property (readonly) NSUInteger id; @end The id property is exposed to AppleScript in the Blah class: <
|
By
Steve Mills
·
|
|
Adding scripting support for custom records 6 messages
What's the best way to return data from a scriptable app when the property is a record-type that's declared in the sdef? It corresponds to an Objective-C class. I ended up adding a separate property t
What's the best way to return data from a scriptable app when the property is a record-type that's declared in the sdef? It corresponds to an Objective-C class. I ended up adding a separate property t
|
By
Steve Mills
·
|
|
Selectable text in NSTableView? 7 messages
I’ve got a view-based NSTableView that uses NSTextFields. I’d like to be able to select text in some of the columns, mostly so it can be copied to the pasteboard. If I set the “selectable” property of
I’ve got a view-based NSTableView that uses NSTextFields. I’d like to be able to select text in some of the columns, mostly so it can be copied to the pasteboard. If I set the “selectable” property of
|
By
Jens Alfke
·
|
|
Crash in dragImageForSelection 5 messages
I have what seems to be a simple operation to perform, but it crashes. I have a custom view which includes an NSTextView called textView. In the mouseDragged(with:) function in my view subclass, I hav
I have what seems to be a simple operation to perform, but it crashes. I have a custom view which includes an NSTextView called textView. In the mouseDragged(with:) function in my view subclass, I hav
|
By
John Brownie
·
|
|
macOS Drag and Drop onto App Icon 4 messages
Hi Folks, I will dispense with a rant about the eroding freedoms and the pains of sandboxing. My problem is finding a correct (App Store approval) method to enable drag and drop to the App Icon. I'm f
Hi Folks, I will dispense with a rant about the eroding freedoms and the pains of sandboxing. My problem is finding a correct (App Store approval) method to enable drag and drop to the App Icon. I'm f
|
By
Bill Pitcher
·
|
|
Strange Memory Patterns 7 messages
We have an app that handles incoming server connections. For each connection it opens a window that shows the activity of the connection. When the client is done the window closes. When the activity h
We have an app that handles incoming server connections. For each connection it opens a window that shows the activity of the connection. When the client is done the window closes. When the activity h
|
By
Sandor Szatmari
·
|
|
validateUserInterfaceItem not called 6 messages
I implemented a new feature that brings up an NSTextField for entering data. Once it's done, I call removeFromSuperview() and it goes away as expected. But then validateUserInterfaceItem is no longer
I implemented a new feature that brings up an NSTextField for entering data. Once it's done, I call removeFromSuperview() and it goes away as expected. But then validateUserInterfaceItem is no longer
|
By
John Brownie
·
|
|
Some advice requested on debugging a difficult problem. iOS. 6 messages
In the iOS app that I’m working on now, we have a problem that I’ve never seen in my years as an iOS programmer. While we have a 99.7% crash free user experience, what does crash is weird as fuck. By
In the iOS app that I’m working on now, we have a problem that I’ve never seen in my years as an iOS programmer. While we have a 99.7% crash free user experience, what does crash is weird as fuck. By
|
By
Alex Zavatone
·
|
|
find standard about panel 8 messages
How can I find the window produced by -[NSApplication orderFrontStandardAboutPanel:]? (I’d like to hide the window when my app deactivates.) I know it’s somewhere in the array -[NSApplication windows]
How can I find the window produced by -[NSApplication orderFrontStandardAboutPanel:]? (I’d like to hide the window when my app deactivates.) I know it’s somewhere in the array -[NSApplication windows]
|
By
James Walker
·
|
|
Custom UTIs based on com.apple.package don't always work 3 messages
I have a file type all set up in my target's Document Types and Exported UTIs as so: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>livery</string> <
I have a file type all set up in my target's Document Types and Exported UTIs as so: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>livery</string> <
|
By
Steve Mills
·
|
|
Care to opine on a stack trace 5 messages
I have an app where I see this crash periodically. Does this look to you like the stream is being destroyed before the run loop releases it? Basically an overrelease? Thread 8 Crashed: 0 com.apple.Cor
I have an app where I see this crash periodically. Does this look to you like the stream is being destroyed before the run loop releases it? Basically an overrelease? Thread 8 Crashed: 0 com.apple.Cor
|
By
Sandor Szatmari
·
|
|
Continuously update value bug in 10.13 3 messages
Since we finally were able to move up to 10.13 (printing company, historically slow to change), I've noticed that text fields in views and in cell-based table views now exit editing as soon as any cha
Since we finally were able to move up to 10.13 (printing company, historically slow to change), I've noticed that text fields in views and in cell-based table views now exit editing as soon as any cha
|
By
Steve Mills
·
|
|
unrecognized selector retainedCGImage 5 messages
Hi all, Can anybody advise on the following exception/crash that I am encountering? The issue is: > [NSWindowGraphicsContext retainedCGImage]: unrecognized selector sent to instance The problem is tha
Hi all, Can anybody advise on the following exception/crash that I am encountering? The issue is: > [NSWindowGraphicsContext retainedCGImage]: unrecognized selector sent to instance The problem is tha
|
By
Jonathan Taylor
·
|