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

Re: Progress Sheet on a NSDocument


  • Subject: Re: Progress Sheet on a NSDocument
  • From: Ashley Clark <email@hidden>
  • Date: Sun, 25 Mar 2007 02:39:47 -0500

What's the return value from [self windowForSheet]?

The documentation states that it can be nil and that might be causing what you're seeing here.

On Mar 23, 2007, at 6:23 PM, Alan Smith wrote:

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


Ashley



_______________________________________________

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: "Alan Smith" <email@hidden>
References: 
 >Progress Sheet on a NSDocument (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Changing order of views dynamically
  • Next by Date: Re: Progress Sheet on a NSDocument
  • Previous by thread: Re: Progress Sheet on a NSDocument
  • Next by thread: Re: Progress Sheet on a NSDocument
  • Index(es):
    • Date
    • Thread