• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField not updating programmatically with sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSProgressIndicator thread crash
  • Next by Date: Re: Storing documents as bundles
  • Previous by thread: Re: Accessing System dictionary?
  • Next by thread: Re: NSTextField not updating programmatically with sheet
  • Index(es):
    • Date
    • Thread