• 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
-beginSheet:modalForWindow:modalDelegate:didEndSelector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-beginSheet:modalForWindow:modalDelegate:didEndSelector


  • Subject: -beginSheet:modalForWindow:modalDelegate:didEndSelector
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Fri, 20 Feb 2015 11:54:57 -0700

My App has one window which is displayed.  I want to display a sheet when a button is clicked.

In the action for the button click I do:

    ETAboutWindowController *windowController = [[ETAboutWindowController alloc] initWithWindowNibName:@"ETAboutWindowController"];
   [NSApp beginSheet:[windowController window] modalForWindow:[NSApp mainWindow] modalDelegate:nil didEndSelector:nil contextInfo:nil];

The sheet displays like a modal window with no title bar rather than sliding down from the main widow as I expect and the spinning beach ball appears.

What is my mistake here?




-rags



_______________________________________________

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


  • Follow-Ups:
    • Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Datatypes still not recognized after adding bridging header...
  • Next by Date: Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
  • Previous by thread: checking for app store receipts
  • Next by thread: Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector
  • Index(es):
    • Date
    • Thread