NSTextField not updating programmatically with sheet
NSTextField not updating programmatically with sheet
- Subject: NSTextField not updating programmatically with sheet
- From: <email@hidden>
- Date: Thu, 24 Feb 2005 10:12:29 +0000
Greetings all! I have a sheet being displayed while my application processes some files (converting aiff to shn). All that is working fine. I have a custom sheet showing an indeterminate progress indicator while the files are processing, and I want to have a text field also update with the name of the current file being processed.
All of this works fine except the text field. It's not updating with the code I've written, perhaps you all can see the flaw? Hope so. Here's the code:
// progress field is text field
// newOutputPath is the path of the currently processing file
[progressField setStringValue:[[progressField stringValue] stringByAppendingString:newOutputPath]];
I know that it's being set the first time through because when the sheet is displayed, it shows the path of the first file no problem. However when a new file is processed, the field doesn't change. I have verified that the value of newOutputPath is changing correctly not only with the actual files, but with NSLog() statements as well.
Have I coded this wrong? It should work, maybe I'm just not seeing it. I've been at this project all night, so... Thanks in advance, my friends!
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden