Ok, thank you all guys! I got it working somehow ^^
Here is my code (if anyone is interested - I am probably doing a lot
of crazy things, please correct me):
#import
@interface Observer : NSObject
{}
- (void) outputStuff:(NSNotification*)aNotification;
@end
@implementation Observer
- (void
on stdout without waiting for the process
to be finished.
Perhaps I got something wrong...
Thanks,
Yann
On 21. Jul 2008, at 0:38, Jens Alfke wrote:
On 20 Jul '08, at 9:37 AM, Yann Disser wrote:
I am trying to execute a ruby script from within a Cocoa
application. I want to use N
Hi everyone.
I am trying to execute a ruby script from within a Cocoa application.
I want to use NSTask (any better ideas?).
My scripts outputs its progress by printing single lines on standard
out containing percentages (e.g. "15%"). How can I update my
application continuously depending
Thank you all for your help. I managed to fix the problem by going
over your suggestions.
The problem was that I access a file (without proper error-handling; I
will add that now :-)). The default working directory is the main-
bundle path when run from within XCode and it is "/" when run fr
The App runs fine in gdb and even writes the output file.
Still the same error (crash and no output written) when running it
with "open MyApp.app".
Yann
On 14. May 2008, at 16:47, Jens Alfke wrote:
On 14 May '08, at 6:48 AM, Yann Disser wrote:
How can I debug my App
When I launch my Cocoa application from Finder instead of from within
XCode, it reports a crash. All my other Projects seem to work well
from outside XCode...
I tried to debug my App by changing the main-function to
int main(int argc, char *argv[])
{
[[NSString stringWithString:@"hier"] wr
I need to display images in one column of a NSTable view. Right now,
the column contains values like "green", "red", "red green", "blue"
etc. I want to replace those strings with images of the corresponding
color(s) - in the case of "red green" by two images, a red and a green
one. I do not
How can I resize all but the last column of a NSTableView in order to
fit its content perfectly? (I don't care about the resulting size of
the last column)
If I call sizeToFit on each but the last column, my columns end up
not being wide enough. Do I have to set the minWidth of each column?
always assume that gc takes care of all my memory managing needs...
I hope this helps someone in the future ^^
Yann
On 1. May 2008, at 15:51, Yann Disser wrote:
I have a NSTextfield which is bound to some string-valued attribute.
It is set to update continuously and everything works fine.
As I
I have a NSTextfield which is bound to some string-valued attribute.
It is set to update continuously and everything works fine.
As I only want to allow the user to enter numbers, I subclassed
NSFormatter and attached an instance to the NSTextField "formatter"
outlet in IB.
Now my attribu
overlapping views are not supported...
Anyway, thank you very much!
Yann
On 29. Apr 2008, at 8:15, Kyle Sluder wrote:
On Mon, Apr 28, 2008 at 5:34 AM, Yann Disser <[EMAIL PROTECTED]> wrote:
I tried to put all the content in a simple window and everything
worked
fine until I resized the windo
I am having a problem setting up autosizing for a NSTableView (the
type of the view does in fact not matter) inside a drawer.
Here is how I set it up in IB:
http://i281.photobucket.com/albums/kk225/YtamshG/Picture2.png?t=1209374628
Here is how it turns out:
http://i281.photobucket.com/albums/
, I. Savant wrote:
On Apr 25, 2008, at 7:37 PM, Yann Disser wrote:
Are you binding via an NSObjectController?
No, should I?
Yes (or one of its subclasses). You have to make sure "everyone is
on the same page" as mindless corporate and government automatons
are wont to say. In Co
No, should I?
Yann
On 25. Apr 2008, at 18:32, Hamish Allan wrote:
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser <[EMAIL PROTECTED]> wrote:
I realize that my buttons are generally not affected by the changes
I make
to the bool-values. Only the other way around.
Can I not bind bools
I realize that my buttons are generally not affected by the changes I
make to the bool-values. Only the other way around.
Can I not bind bools to the value of NSButtons? Or am I missing
something else?
Thanks for your help,
Yann
Yann Disser wrote:
I have five textured NSButtons that are
I have five textured NSButtons that are set to operate in "On Off"
mode. All of them are value-bound to different bools in my application.
Somehow the first button starts in the "On"-state and the others in
the off state, no matter which button I bind to which bool. If I
remove the bindings,
Is there a way to change the spacing of the images in an
IKImageBrowserView? In InterfaceBuilder?
How can I assign a right-click menu/contextual menu to an image
browser view? Connection a NSMenu with the menu-outlet in
InterfaceBuilder works for all of my views except the
IKImageBrowserV
17 matches
Mail list logo