• 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: Sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheets


  • Subject: Re: Sheets
  • From: Dustin Voss <email@hidden>
  • Date: Thu, 26 Feb 2004 16:17:58 -0800

On 26 Feb, 2004, at 2:01 PM, Matt Jaffa wrote:

Hey,
IBOutlet NSPanel *PopUpAdd; <--------- I want this to be
the sheet to be displayed within the main preference pane, but I can't
get it to display right, the sheet bcomes attached to the Desktop for
some real weird reason.

Here's how I open a panel in a preference pane:

- (void) openPanel
{
[NSApp beginSheet:panel modalForWindow:[NSApp mainWindow] modalDelegate:nil didEndSelector:nil contextInfo:nil];
}

- (void)closePanel:(id)sender
{
[panel close];
[NSApp endSheet:panel];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Sheets
      • From: Matt Jaffa <email@hidden>
References: 
 >Sheets (From: Matt Jaffa <email@hidden>)

  • Prev by Date: How to remove focus from a window control?
  • Next by Date: Re: Sheets
  • Previous by thread: Re: Sheets
  • Next by thread: Re: Sheets
  • Index(es):
    • Date
    • Thread