Re: Using a window or panel in an ASObjC Service
Re: Using a window or panel in an ASObjC Service
- Subject: Re: Using a window or panel in an ASObjC Service
- From: email@hidden
- Date: Mon, 13 May 2013 17:51:48 -0600
Showing the window isn't the problem, it is getting it to be in front and key. When using the application as a service the makeKeyAndOrderFront method does not make the window key or order it front (it is put behind the application the service is used with). I've been able to get the window in front with LSUIElement=1 and runModalForWindow, but it still isn't made key. I'm wondering what the normal window level or behavior is supposed to be for a service (or what I need to do to make it normal), since the service seems to do things differently.
Dave
On May 13, 2013, at 6:44 AM, Steve Valenti <email@hidden> wrote:
> Make a property in you AppDelegate.applescript
>
> property theWindow : missing value
>
> Save
> In your MainMenu.xib control drag from the new property to the window.
>
> When you want to show the window use this code...
> theWindow's makekeyAndOrderFront_(sender)
>
> To hide the window...
> theWindow's orderOut_(sender)
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden