Re: can update the UI from sheetDidEnd:…. ?
Re: can update the UI from sheetDidEnd:…. ?
- Subject: Re: can update the UI from sheetDidEnd:…. ?
- From: Graham Cox <email@hidden>
- Date: Thu, 24 Jan 2013 15:25:15 +1100
On 24/01/2013, at 1:30 PM, Nick Rogers <email@hidden> 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 the sheet. In fact, it often has to to ensure any last minute entries in fields are committed - I usually start my sheetDidEnd methods with [sheet makeFirstResponder:sheet] to force a focused text field to push its content to its action method.
sheetDidEnd methods also often call their delegates, and the delegate must be able to assume it can access anything (public) in the sheet.
So whatever your problem is, it's not that. Show your code.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden