|
Re: Using /dev/stdout in a sandboxed app
Awesome!
After several rereads I realize that Ffmpeg documentation does state this, but not in clear terms.
It states that any file/stream can be referenced as a pair, <file_no:stream_no>, hence
Awesome!
After several rereads I realize that Ffmpeg documentation does state this, but not in clear terms.
It states that any file/stream can be referenced as a pair, <file_no:stream_no>, hence
|
By
Sandor Szatmari
·
#1007
·
|
|
Re: Using /dev/stdout in a sandboxed app
looking back I went with
//! Connect the Output Pipes
[aTask setStandardOutput:[NSPipe pipe]];
[aTask setStandardError:[aTask standardOutput]];
//! Tell the Pipe to notify to read in the
looking back I went with
//! Connect the Output Pipes
[aTask setStandardOutput:[NSPipe pipe]];
[aTask setStandardError:[aTask standardOutput]];
//! Tell the Pipe to notify to read in the
|
By
Bill Pitcher
·
#1006
·
|
|
Re: Using /dev/stdout in a sandboxed app
Ah, that worked a treat!!! Thanks so much Sandor.
—Graham
Ah, that worked a treat!!! Thanks so much Sandor.
—Graham
|
By
Graham Cox
·
#1005
·
|
|
Re: Using /dev/stdout in a sandboxed app
I think you would pass
-progress pipe:1 will write out to stdout,
Or
pipe:2 to stderr.
Then just read from the pipe you associate.
I haven’t tried it myself, google told me to do it.
It might
I think you would pass
-progress pipe:1 will write out to stdout,
Or
pipe:2 to stderr.
Then just read from the pipe you associate.
I haven’t tried it myself, google told me to do it.
It might
|
By
Sandor Szatmari
·
#1004
·
|
|
Re: Using /dev/stdout in a sandboxed app
Hi Chris,
actually I think I am doing that.
it’s a while since i put this code together, and exactly what the arguments are is not so clear now. I set the NSTask.standardOutput to an NSPipe, and I
Hi Chris,
actually I think I am doing that.
it’s a while since i put this code together, and exactly what the arguments are is not so clear now. I set the NSTask.standardOutput to an NSPipe, and I
|
By
Graham Cox
·
#1003
·
|
|
Re: Using /dev/stdout in a sandboxed app
Yes, NSTask (I think) and Process() inherent the sandbox
"Important
In a sandboxed application, child processes created with the Process class inherit the sandbox of the parent app. You should
Yes, NSTask (I think) and Process() inherent the sandbox
"Important
In a sandboxed application, child processes created with the Process class inherit the sandbox of the parent app. You should
|
By
Bill Pitcher
·
#1002
·
|
|
Re: Using /dev/stdout in a sandboxed app
Sure, just use NSTask’s own standardInput, standardOutput, and standardError support with NSPipe. No need to tell the task to send its stdout to some intermediate file that your app then opens and
Sure, just use NSTask’s own standardInput, standardOutput, and standardError support with NSPipe. No need to tell the task to send its stdout to some intermediate file that your app then opens and
|
By
Chris Hanson
·
#1001
·
|
|
Using /dev/stdout in a sandboxed app
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
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
|
By
Graham Cox
·
#1000
·
|
|
Re: NSTimeZone
I realized that my wording was not really clear. Basically, if you are trying to simulate the location of a device in UI Tests, clicking on the options for the test scheme’s test section for each
I realized that my wording was not really clear. Basically, if you are trying to simulate the location of a device in UI Tests, clicking on the options for the test scheme’s test section for each
|
By
Alex Zavatone
·
#999
·
|
|
NSTimeZone
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
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
|
By
Alex Zavatone
·
#998
·
|
|
Re: Objective-C and Swift interoperability in the lldb console.
Surprisingly, the Objective-C class’s Swift interface works fine in lldb when viewed from a Swift class.
When trying the. Swift version, I even added @objcMembers to the Swift class declaration or
Surprisingly, the Objective-C class’s Swift interface works fine in lldb when viewed from a Swift class.
When trying the. Swift version, I even added @objcMembers to the Swift class declaration or
|
By
Alex Zavatone
·
#997
·
|
|
Objective-C and Swift interoperability in the lldb console.
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
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
|
By
Alex Zavatone
·
#996
·
|
|
Re: Usage Question concerning [weak self]
By my analysis the capture list in the DispatchQueue closure is unnecessary, because by that point `self` is already weak. You can prove this by adding a `weak var this = self` and change the `self`s
By my analysis the capture list in the DispatchQueue closure is unnecessary, because by that point `self` is already weak. You can prove this by adding a `weak var this = self` and change the `self`s
|
By
Ben Kennedy
·
#995
·
|
|
Usage Question concerning [weak self]
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)
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)
|
By
Rick Aurbach
·
#994
·
|
|
Re: NSFIleManager enumeratorAtPath problem
Jens,
Thanks for the info on the enumeratorAtURL: method. I take back my suggestion regarding the bug then.
Regarding my pseudo-security remarks: yes, I agree of course that some of the measures make
Jens,
Thanks for the info on the enumeratorAtURL: method. I take back my suggestion regarding the bug then.
Regarding my pseudo-security remarks: yes, I agree of course that some of the measures make
|
By
Leo
·
#993
·
|
|
Re: 'altool' cannot be found
Ok it was my first post and it took 2 days for it to arrive...
By now the issue is solved: I had to reset the Command Line Tools path with xcode-select -r
Ok it was my first post and it took 2 days for it to arrive...
By now the issue is solved: I had to reset the Command Line Tools path with xcode-select -r
|
By
Leo
·
#992
·
|
|
Re: NSFIleManager enumeratorAtPath problem
The OP was calling -[NSFileManager enumeratorAtPath:], which is an old API that predates NSError, so failing silently is all it can do. (Cocoa APIs do not throw exceptions except in the case of
The OP was calling -[NSFileManager enumeratorAtPath:], which is an old API that predates NSError, so failing silently is all it can do. (Cocoa APIs do not throw exceptions except in the case of
|
By
Jens Alfke
·
#991
·
|
|
Re: NSFIleManager enumeratorAtPath problem
I read this discussion with interest... that's good to know!
May I also suggest to submit it as a bug to Apple.
That is, if a function fails because of sandboxing then it shouldn't just fail silently.
I read this discussion with interest... that's good to know!
May I also suggest to submit it as a bug to Apple.
That is, if a function fails because of sandboxing then it shouldn't just fail silently.
|
By
Leo
·
#990
·
|
|
'altool' cannot be found
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
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
|
By
Leo
·
#989
·
|
|
[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
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
|
By
Dave
·
#988
·
|