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

Re: Issue while calling run modal after showing a sheet


  • Subject: Re: Issue while calling run modal after showing a sheet
  • From: RameshPVK <email@hidden>
  • Date: Fri, 6 Oct 2006 10:02:11 +0530

On 06/10/2006, at 2:19 PM, RameshPVK wrote:


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.



No. Why do you really want to?

Just use didEndSelector and put the code you want to run after the
sheet has been dismissed in the didEndSelector method.

- Chris

Thanks for the reply.
Actually , i want to provide a lookup kind of function, which will show sheet and return the selected value as return value of the function. This is a common function which will be used across many places. I do not want to use delegation pattern also.
_______________________________________________
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: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Issue while calling run modal after showing a sheet
  • Next by Date: Re: managedObjectContext hasChanges
  • Previous by thread: Re: Issue while calling run modal after showing a sheet
  • Next by thread: Re: Issue while calling run modal after showing a sheet
  • Index(es):
    • Date
    • Thread