• 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
Issue while calling run modal after showing a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue while calling run modal after showing a sheet


  • Subject: Issue while calling run modal after showing a sheet
  • From: RameshPVK <email@hidden>
  • Date: Fri, 6 Oct 2006 09:49:36 +0530

Hi All,

I have a small requirement. I am calling a sheet in my code. I wanted the control to be in the same line until the sheet is closed. I have written the code in the following way. Doing this , i am unable to receive application events. Because , i have used [NSApp runModalForWindow: myCustomDialog];. If i do not run the window as modal, the control is going to the next line. Is there anyway i can :
- call a sheet
- have the control in the same line until the sheet is closed.
- also able to perform actions on NSApp.



- (void)showCustomDialog: (NSWindow *)window // User has asked to see the dialog. Display it. { if (!myCustomDialog) [NSBundle loadNibNamed: @"MyCustomDialog" owner: self];

    [NSApp beginSheet: myCustomDialog
            modalForWindow: window
            modalDelegate: nil
           didEndSelector: nil
            contextInfo: nil];

    [NSApp runModalForWindow: myCustomDialog];
    // Dialog is up here.
    [NSApp endSheet: myCustomDialog];
   [myCustomDialog orderOut: self];
}

thanks,
Ramesh PVK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Issue while calling run modal after showing a sheet
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: bindings from threads
  • Next by Date: Re: Issue while calling run modal after showing a sheet
  • Previous by thread: Re: sortDiscriptor binding
  • Next by thread: Re: Issue while calling run modal after showing a sheet
  • Index(es):
    • Date
    • Thread