Re: Progress Sheet on a NSDocument
Re: Progress Sheet on a NSDocument
- Subject: Re: Progress Sheet on a NSDocument
- From: "Alan Smith" <email@hidden>
- Date: Sun, 25 Mar 2007 06:21:29 -0500
Hi,
[self windowForSheet] is not returning nil. It's okay there.
Here is some really weird behavior for you:
The first time the panel is displayed it puts the window it is
supposed to be attached to off-screen. All other times it's fine, it
doesn't bash the window. But, all times it doesn't stay attached to
the document window, you can move the window and the panel won't come
with it.
I'm sure there must be something I'm doing that I'm not supposed to
when combining a document window and a sheet. But what could it be?
Here is the chain of events as it happens in my code:
Save Panel is displayed,
User chooses a save path,
Save Panel is dismissed by user clicking,
A thread is detached to save to that path,
Progress Panel (the one giving me so much trouble) is displayed,
Intensive saving is done
Progress Panel is dismissed by [NSApp endSheet:]
That's how it stands now, could there be a problem going straight from
a NSSavePanel to my own sheet?
Thanks.
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