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

Progress Sheet on a NSDocument


  • Subject: Progress Sheet on a NSDocument
  • From: "Alan Smith" <email@hidden>
  • Date: Fri, 23 Mar 2007 18:23:58 -0500

Hello, y'all,

I am having trouble with NSDocument and NSPanel working together.
Here's the scoop:

I want to have a "ProgressPanel" on my document as it does some
intensive saving. I want the panel to appear as a sheet so as to stay
out of the way.

I've tried to do this with the code appended to this email but it's
not quite working. The problem is that when the panel is displayed it
pushes the document window it is attached to off-screen. This is
totally uncalled for. But, this problem is gone if you save again, in
the same way.

I've tried running the panel as a modal in hopes that that would fix
it but no, it didn't. I also made sure that the panel was not set to
be a floating panel but that didn't fix it either. I've searched
online extensively but have found nothing addressing this.

Also, the document window can be moved separately from the panel and I
would like that not to happen. They should move as one. One last
thing, how does one get the sheet to "pull down" or, "slip out" from
the top of the window? It doesn't appear to happen with
beginSheet:::::.

Many thanks, I eagerly await your replies.

Peace, Alan

[NSApp beginSheet: progressPanel modalForWindow: [self windowForSheet]
modalDelegate: nil didEndSelector: nil contextInfo: nil];

// Do stuff...

[NSApp endSheet: progressPanel];
[progressPanel orderOut: nil];


-- // 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: Progress Sheet on a NSDocument
      • From: Ashley Clark <email@hidden>
    • Re: Progress Sheet on a NSDocument
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Is there a way to re-compile a framework for Intel Mac?
  • Next by Date: Re: Getting the last date of the month?
  • Previous by thread: Re: Core Data
  • Next by thread: Re: Progress Sheet on a NSDocument
  • Index(es):
    • Date
    • Thread