• 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
Re: can update the UI from sheetDidEnd:…. ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >can update the UI from sheetDidEnd:…. ? (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: NSAttributedString boundingRectWithSize vs. paragraph margins
  • Next by Date: Re: can update the UI from sheetDidEnd:…. ?
  • Previous by thread: Re: can update the UI from sheetDidEnd:…. ?
  • Next by thread: Re: can update the UI from sheetDidEnd:…. ?
  • Index(es):
    • Date
    • Thread