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

Re: Window Sheet


  • Subject: Re: Window Sheet
  • From: Stéphane Sudre <email@hidden>
  • Date: Wed, 19 Mar 2003 12:17:34 +0100

On Wednesday, March 19, 2003, at 11:53 AM, Suman Ganguly wrote:

Hi All,

I have a window having two buttons, I want to use the window to be popped up
as a sheet in my application window. Below I'm pasting the line of code I'm
using -

[ [ NSApplication sharedApplication ] beginSheet: myWindow modalForWindow:
mainWindow modalDelegate: self didEndSelector:
@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo: NULL ];

After executing the line, the window doesn't appear as a sheet. I'll be very
much grateful if anyone can tell me what I'm missing or any kind of
suggestion will be appreciated.

Your code seems to be correct. ([ NSApplication sharedApplication ] can be simplified to NSApp).

What you can do is checking that myWindow or mainWindow are not nil.
_______________________________________________
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: 
 >Window Sheet (From: Suman Ganguly <email@hidden>)

  • Prev by Date: Re: Trapping window close event
  • Next by Date: Re: Trapping window close event
  • Previous by thread: Re: Window Sheet
  • Next by thread: Re: Window Sheet
  • Index(es):
    • Date
    • Thread