|
Using /dev/stdout in a sandboxed app 8 messages
Hi all, In my app I use NSTask to launch a copy of ffmpeg as a child process to do some work in the background on a video stream. I pass parameters to this task via the command line arguments through
Hi all, In my app I use NSTask to launch a copy of ffmpeg as a child process to do some work in the background on a video stream. I pass parameters to this task via the command line arguments through
|
By
Graham Cox
·
|
|
NSTimeZone 2 messages
Does anyone know when NSTimeZone changes on iOS when the GPS location of the device changes? I have tested on my device and Simulator and it appears when running in the Simulator, that NSTimeZone.loca
Does anyone know when NSTimeZone changes on iOS when the GPS location of the device changes? I have tested on my device and Simulator and it appears when running in the Simulator, that NSTimeZone.loca
|
By
Alex Zavatone
·
|
|
Objective-C and Swift interoperability in the lldb console. 2 messages
I have some utility classes with class methods in Objective-C and a copy in Swift. For now, I am using the Swift version, but calling one of the methods from a class that is Objective-C. While I have
I have some utility classes with class methods in Objective-C and a copy in Swift. For now, I am using the Swift version, but calling one of the methods from a class that is Objective-C. While I have
|
By
Alex Zavatone
·
|
|
Usage Question concerning [weak self] 2 messages
I am doing some processing of network requests, and the response is processed in a background thread using a closure. The closure executes some logic on the background thread and then (possibly) dispa
I am doing some processing of network requests, and the response is processed in a background thread using a closure. The closure executes some logic on the background thread and then (possibly) dispa
|
By
Rick Aurbach
·
|
|
NSFIleManager enumeratorAtPath problem 12 messages
Hi, I can’t for the life of see what is wrong with the following method. I’m basically doing the same as in the NSFileManager but I can’t seem to get it to work. The enumeratorAtPath: methods returns
Hi, I can’t for the life of see what is wrong with the following method. I’m basically doing the same as in the NSFileManager but I can’t seem to get it to work. The enumeratorAtPath: methods returns
|
By
Dave
·
|
|
'altool' cannot be found 2 messages
Hi all, I wanted to start building a notarization automation script. However, when I try to use the 'xcrun altool' in Terminal, I get the following error: xcrun: error: unable to find utility "altool"
Hi all, I wanted to start building a notarization automation script. However, when I try to use the 'xcrun altool' in Terminal, I get the following error: xcrun: error: unable to find utility "altool"
|
By
Leo
·
|
|
[OT] Experienced freelance Mac/iOS Developer Looking for Work
Hi, Experienced Mac and iOS developer with a lot experience in Objective-C and many other languages. Experience of the following technologies: XCode Quartz Event Taps. Accessibility. AppleScript. Grap
Hi, Experienced Mac and iOS developer with a lot experience in Objective-C and many other languages. Experience of the following technologies: XCode Quartz Event Taps. Accessibility. AppleScript. Grap
|
By
Dave
·
|
|
How to get Extended File Info 9 messages
Hi, Looking at the Finder “Get Info” window, for instance for an mp3 file, it displays under the “More Info” tab, the Title, Authors, etc. How can I get this information programatically? Thanks a lot
Hi, Looking at the Finder “Get Info” window, for instance for an mp3 file, it displays under the “More Info” tab, the Title, Authors, etc. How can I get this information programatically? Thanks a lot
|
By
Dave
·
|
|
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
·
|