• 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
Setting the Key window after sheet ends
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the Key window after sheet ends


  • Subject: Setting the Key window after sheet ends
  • From: Allan Rentcome <email@hidden>
  • Date: Fri, 16 Mar 2007 17:23:24 -0500

Hi all,

This is probably a newbie question but here goes...

I have an application that has a main NSTabView interface. From this interface the user can select various options include one which then displays a new panel with various controls. From this panel the user can select an option to select, in this case, a company product from a list displayed using a NSheet object attached to the panel. When the user dismisses the sheet the panel does not become key again but rather the main NSTabView that launched the panel does. The call I make to dismiss the sheet is as follows:

// function to close product selector
-(IBAction)endProductSelector:(id)sender
{
	// close the window
	[[self window] orderOut:sender];
	// end the sheet
	[NSApp endSheet:[self window] returnCode:1];


}

What I would like to do is ensure that when the sheet is dismissed by using the orderOut message the panel the sheet is attached to becomes key. Any help would be appreciated.

Allan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting the Key window after sheet ends
      • From: PGM <email@hidden>
  • Prev by Date: Re: Move the Apple Menu
  • Next by Date: Implementing serial license scheme
  • Previous by thread: Re: CoreData, setValue, needsDisplay, and undo
  • Next by thread: Re: Setting the Key window after sheet ends
  • Index(es):
    • Date
    • Thread