• 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
[SOLVED!] Progress Sheet on a NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED!] Progress Sheet on a NSDocument


  • Subject: [SOLVED!] Progress Sheet on a NSDocument
  • From: "Alan Smith" <email@hidden>
  • Date: Sun, 25 Mar 2007 10:19:29 -0500

Hi everyone,

I've played with it some more and found that the problem is that I'm
calling the displaying from the savePanelDidEnd::: callback that I set
for my save panel. The only difference between calling it there and
anywhere else is that perhaps NSSavePanel detaches a new thread with
the callback as the method.

Because…

The fix is to use performSelectorOnMainThread: in savePanelDidEnd:::
and all is as Apple says it should be.

I don't know how I could have avoided all this, except to have used
performSelectorOnMainThread: to begin with. But how was I to know that
NSSavePanel detaches a new thread? I thought that in
savePanelDidEnd::: I was in the main thread!

Thanks to everyone who was patient enough to help me.
Peace, Alan


-- // Quotes from yours truly ------------------------- "You don't forget, you just don't remember." "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that religion really is unnecessary, then it shall evolve." _______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: [SOLVED!] Progress Sheet on a NSDocument
      • From: James Bucanek <email@hidden>
    • Re: [SOLVED!] Progress Sheet on a NSDocument
      • From: Andreas Mayer <email@hidden>
References: 
 >Progress Sheet on a NSDocument (From: "Alan Smith" <email@hidden>)
 >Re: Progress Sheet on a NSDocument (From: Ashley Clark <email@hidden>)
 >Re: Progress Sheet on a NSDocument (From: "Alan Smith" <email@hidden>)
 >Re: Progress Sheet on a NSDocument (From: Dominik Pich <email@hidden>)
 >Re: Progress Sheet on a NSDocument (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Progress Sheet on a NSDocument
  • Next by Date: Re: How to create a Music Score view?
  • Previous by thread: Re: Progress Sheet on a NSDocument
  • Next by thread: Re: [SOLVED!] Progress Sheet on a NSDocument
  • Index(es):
    • Date
    • Thread