Probably something dumb...
Probably something dumb...
- Subject: Probably something dumb...
- From: Jeff LaMarche <email@hidden>
- Date: Wed, 6 Mar 2002 23:05:30 -0800
Okay, this has to be something obvious, but it's eluding me (which may
indicate that it's time to stop programming and go to sleep) =)
I have a window controller that is registered by name with the default
NSConnection. I have a long-running method running in an NSThread, and
it's using DO to inform the window controller about its progress. The
progress indicator on this controller's window is working correctly
(those routines pass int), but I have a method that's called to update
the displayed text that isn't working:
- (oneway void)setProgressText:(bycopy NSString *)newText
{
NSLog(@"Called with %@", newText);
[progressText setStringValue:newText];
}
Now, the NSLog statement is showing me the correct value for newText,
but the next line, which sends a setStringValue message to an
NSTextField is NOT working. I tried adding a [progressText
setNeedsDisplay]; call immediately after, but that didn't work either.
I've checked the NIB and the connections and they appear correct. I've
also tried sending a string literal instead of newText, and that does
not work either. progressText is enabled but not editable or selectable.
Anyone see what I'm doing wrong here?
As always, thanks in advance!
Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.