Re: TextField not updated in a sheet for document-based Cocoa app

2012-06-13 Thread Gilles Celli
Graham, Following your suggestions I tried with [[NSOperationQueue mainQueue] addOperationWithBlock: to update the textField while processing filesbut with less or more success... While I put [NSApp beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: inside [[NSOperationQu

Re: TextField not updated in a sheet for document-based Cocoa app

2012-06-12 Thread Gilles Celli
Graham, Thanks for your fast response. I'll look at this ASAP, and will let you know how it goes :-) Cheers, Gilles On Jun 12, 2012, at 2:27 AM, Graham Cox wrote: > > On 12/06/2012, at 12:29 AM, Gilles Celli wrote: > >> the sheet is properly displayed (with its TextField and button) for the

Re: TextField not updated in a sheet for document-based Cocoa app

2012-06-11 Thread Graham Cox
On 12/06/2012, at 12:29 AM, Gilles Celli wrote: > the sheet is properly displayed (with its TextField and button) for the > current document window, but the textField stringValue can't be set > Maybe because it's the sheet is on a different thread ?… > > I've tried to get the sheet's textField

TextField not updated in a sheet for document-based Cocoa app

2012-06-11 Thread Gilles Celli
Hi, I've written a document-based Cocoa application on OS X which displays graphs visually by opening an ASCII file. My program has also the possibility to append ASCII files to the current document: when a user chooses the "Append …" menu in the File Menu a sheet opens with a NSTextField appen