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: Steve Valenti <email@hidden>
- Date: Mon, 13 May 2013 12:44:35 +0000
- Thread-topic: Using a window or panel in an ASObjC Service
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)
-----Original Message-----
From: applescriptobjc-dev-bounces+svalenti=email@hidden [mailto:applescriptobjc-dev-bounces+svalenti=email@hidden] On Behalf Of email@hidden
Sent: Saturday, May 11, 2013 10:42 PM
To: email@hidden
Subject: Using a window or panel in an ASObjC Service
Is anyone familiar with the nuances of using windows or panels in an ASObjC Service? I have a working text service that puts up a (regular, titled, bordered) window with some combo boxes to build a string, but I can't find much documentation on how the windows are supposed to work - they don't seem to want to be normal.
The only way I seem to be able to bring the window to the front is by setting LSUIElement=1 and using runModal, but it still doesn't have focus until clicked in. I haven't found a combination of the normal ways (LSUIElement=0, makeKeyAndOrderFront, etc) to make the window come to the front.
I was hoping to be able to create a combination application/service with (mostly) the same interface, but so far have been unable to get the windows to cooperate - in order to use the application I can't get the service to show up, and vice-versa. Is this the way it is supposed to be, or are there other window settings that I need to be using?
Dave
_______________________________________________
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
_______________________________________________
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