• 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
Sheets trouble.... kinda odd.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sheets trouble.... kinda odd.


  • Subject: Sheets trouble.... kinda odd.
  • From: Aaron Boothello <email@hidden>
  • Date: Fri, 12 Dec 2003 11:57:56 +0800

I'm trying to implement sheets in my App. ive got it working using the following code....

-(IBAction) doSheet:(id)sender
{
[NSApp beginSheet:sheet
modalForWindow:testview
modalDelegate:nil
didEndSelector:nil
contextInfo:nil];

[NSApp runModalForWindow: sheet];
[NSApp endSheet: sheet];
[sheet orderOut:self];
}

and the following call when i finish with the sheet:
[NSApp stopModal];

it would fine....the sheet does exactly what it's supposed to do at the right time. My problem is:
While the App is running... i first goto another app or even the finder. When i get back to the app.... there's the sheet (even though it's not active), it's still drawn on the screen behind the window it was attached to. i cant do anything with the controls on it, it's just there, until i activate the sheet again. whats going on ? and how do i stop this ?

Thanks,
Aaron.
_______________________________________________
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 trouble.... kinda odd.
      • From: Rakesh Pandey <email@hidden>
  • Prev by Date: Re: setuid to root App cannot compile NSAppleScript
  • Next by Date: [critical bug?] Invisible menus...
  • Previous by thread: Re: Using NSFileHandle for server socket communication
  • Next by thread: Re: Sheets trouble.... kinda odd.
  • Index(es):
    • Date
    • Thread