• 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: Using a window or panel in an ASObjC Service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using a window or panel in an ASObjC Service
      • From: Shane Stanley <email@hidden>
References: 
 >Using a window or panel in an ASObjC Service (From: email@hidden)
 >RE: Using a window or panel in an ASObjC Service (From: Steve Valenti <email@hidden>)

  • Prev by Date: RE: Using a window or panel in an ASObjC Service
  • Next by Date: Re: Using a window or panel in an ASObjC Service
  • Previous by thread: RE: Using a window or panel in an ASObjC Service
  • Next by thread: Re: Using a window or panel in an ASObjC Service
  • Index(es):
    • Date
    • Thread