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

Re: Sheet Question


  • Subject: Re: Sheet Question
  • From: Theodore Petrosky <email@hidden>
  • Date: Tue, 20 May 2003 15:39:59 -0700 (PDT)

More than likely, you have not wired up the interface
correctly in IB.

You need to check the docs and examine an example.

http://www.oreillynet.com/pub/ct/37

check here.

Ted

--- John Farmer <email@hidden> wrote:
> 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.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
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.

References: 
 >Sheet Question (From: "John Farmer" <email@hidden>)

  • Prev by Date: Re: To german speaking Cocoaists: article in german C't magazine
  • Next by Date: QuickTime compression settings
  • Previous by thread: Sheet Question
  • Next by thread: Serial CTS and DTS
  • Index(es):
    • Date
    • Thread