• 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: j o a r <email@hidden>
  • Date: Wed, 19 Mar 2003 12:08:07 +0100

Make sure that the windows exist:

NSLog(@"myWindow: %@, %@", myWindow, [myWindow title]);
NSLog(@"mainWindow: %@, %@", mainWindow, [mainWindow title]);

...or:

[myWindow makeKeyAndOrderFront: nil];
[mainWindow makeKeyAndOrderFront: nil];

It's easy to forget to load them from the nib file, or make sure that they have loaded completely, before trying to use them. You could also have a problem with your outlets.

j o a r

On Wednesday, Mar 19, 2003, at 11:53 Europe/Stockholm, Suman Ganguly wrote:

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.
_______________________________________________
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: Screen saver with shared contexts
  • Next by Date: Re: Beginner question with sheets
  • Previous by thread: Window Sheet
  • Next by thread: Re: Window Sheet
  • Index(es):
    • Date
    • Thread