• 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: Detecting when document window is actually displayed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting when document window is actually displayed


  • Subject: Re: Detecting when document window is actually displayed
  • From: Martin Hewitson <email@hidden>
  • Date: Sat, 09 Jun 2012 15:09:43 +0200

I've been doing this in -awakeFromNib with a -performSelector:withObject:afterDelay: call. I suspect this is not the 'correct' way to do it, but it does seem to always work.

Martin

On 9, Jun, 2012, at 02:33 PM, Luc Van Bogaert wrote:

> Hi,
>
> I'm trying to display a custom modal sheet on my document windows (only if some condition applies of course), as soon as the document window is displayed. I tried calling beginSheet:modalForWindow: in my window controller's windowDidLoad: method, but that seems to be too early and results in the sheet being displayed separately instead of on the window. I've also checked NSWindowDelegate methods for something usable but so far without success. What would be the preferred place to display the modal sheet?
>
> Thanks,
>
> --
> Luc Van Bogaert

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Detecting when document window is actually displayed (From: Luc Van Bogaert <email@hidden>)

  • Prev by Date: Detecting when document window is actually displayed
  • Next by Date: Text System Document Obsolete and Replacement
  • Previous by thread: Detecting when document window is actually displayed
  • Next by thread: Text System Document Obsolete and Replacement
  • Index(es):
    • Date
    • Thread