can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, I was updating a few textfields from my sheetDidEnd:…. method. Just wondering if that was causing the crash (UI related error in main thread). Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Andy Lee
On Jan 23, 2013, at 9:30 PM, Nick Rogers roger...@mac.com wrote: I was updating a few textfields from my sheetDidEnd:…. method. Just wondering if that was causing the crash (UI related error in main thread). What happens if you *don't* update the text fields in your sheetDidEnd method? Does

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Graham Cox
On 24/01/2013, at 1:30 PM, Nick Rogers roger...@mac.com wrote: Hi, I was updating a few textfields from my sheetDidEnd:…. method. Just wondering if that was causing the crash (UI related error in main thread). If written correctly, the sheetDidEnd method is free to access stuff still in

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, Thanks for the replies. Sorry I didn't provide enough info in the beginning. Here it is. On 24-Jan-2013, at 9:55 AM, Graham Cox graham@bigpond.com wrote: On 24/01/2013, at 1:30 PM, Nick Rogers roger...@mac.com wrote: Hi, I was updating a few textfields from my sheetDidEnd:….

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, Sorry if I caused any confusion. But I don't know if _updateTrackingAreas would or would not be called by the system for its own UI display mechanism even if I don't use it in code. Best, Nick ___ Cocoa-dev mailing list

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Graham Cox
On 24/01/2013, at 4:48 PM, Nick Rogers roger...@mac.com wrote: The text fields to update are on the main window. The code is simple. just updating the text fields on the main window, using setStringValue:@some string. Now I am doing this using performSelectorOnMainThread:.