Active Read/Write of NSTask

2009-10-07 Thread Kevin Ferguson
Greetings, I am working on an application that will allow the user to run a command-line binary from within my program. This is a simple binary written in C. To accomplish this, I am using NSTask to execute the binary. I then output the result of the task to a text view in my program. All of

SSH Wrapper

2008-06-25 Thread Kevin Ferguson
Greetings, I'm attempting to write an SSH wrapper for a cocoa application. It doesn't need to do anything fancy, only get me logged into the remote machine. Beyond that, my application will execute commands as the user requests them. I am, however, running into a problem. I have my task s

What does 'thread safe' mean?

2008-06-26 Thread Kevin Ferguson
Greetings, I am not entirely sure as to what exactly a thread is, but seeing as anything I've ever programmed is light weight, I've never needed to worry before. And to be honest, such is still the case. This question is merely to satisfy my personal curiosity on the topic, and I can't se

Method Explanation

2008-04-11 Thread Kevin Ferguson
Greetings! This is a rather odd (and I'm sure simple) question, but I cannot seem to find a suitable explanation anywhere I look. So, my code initializes a menu with an action "myAction:", whose target is "myClass". Now, I've noticed through trial and error that the only way to get my m

User Default Groups

2008-05-05 Thread Kevin Ferguson
Greetings, I'm writing a program where the user will define a window and a web page. Now, my code will take various aspects of what the user defines (Web Page URL, window size/position, ect) and save them to user defaults so that they can be loaded again later. At the moment, I have each

Accessing Menu in Another Nib

2008-10-03 Thread Kevin Ferguson
Greetings! So, let's say I have a menu in a secondary NIB file that I plan to use as a status bar menu. Since the user may not want that menu to even exist, I don't want to load it if it doesn't need to be, so it's in a secondary nib file. Is there any way to access that menu from that se