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

Sheet Question


  • Subject: Sheet Question
  • From: "John Farmer" <email@hidden>
  • Date: Tue, 20 May 2003 12:00:56 -0700

I am trying to create a sheet off of my main preference pane, to do this I
created a new window in my main nib file for the dialog. I have tried to open
the dialog with the following code:

- (IBAction)openInfoWindow:(id)sender {
[NSApp beginSheet: infoWindow
modalForWindow: [[self mainView] window]
modalDelegate: self
didEndSelector: NULL
contextInfo: nil];
}

I have also tried to use [NSApp mainWindow] in the modalForWindow parameter,
but whenever I push the button to open the window I keep getting this error:

*** Assertion failure in - [PreferenceApp
_commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelect
or:contextInfo:], AppKit.subproj/NSApplication.m:2524

Modal session requires modal window

Any help on this would be appreciated....

Thanks,

John Farmer
_______________________________________________
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: Sheet Question
      • From: Theodore Petrosky <email@hidden>
  • Prev by Date: Re: PB error opening - didn't find classname for 'isa' key
  • Next by Date: Serial CTS and DTS
  • Previous by thread: Re: PB error opening - didn't find classname for 'isa' key
  • Next by thread: Re: Sheet Question
  • Index(es):
    • Date
    • Thread