[SOLVED!] Progress Sheet on a NSDocument
[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