RE: Question concerning applescript subclasses and alerts as sheets
RE: Question concerning applescript subclasses and alerts as sheets
- Subject: RE: Question concerning applescript subclasses and alerts as sheets
- From: Frederik Vande Rieviere <email@hidden>
- Date: Thu, 16 Jan 2014 15:56:32 +0100
- Acceptlanguage: nl-NL, nl-BE
- Thread-topic: Question concerning applescript subclasses and alerts as sheets
I defined the property and connected it in IB to my Dialog instance so the main script should be able to talk to it through the connected property, but what is the transform_ method and how does it work? I can't seem to find anything about it in your book, the web, or Myriad Helpers.
On a sidenote : Am I correct to state that when you call a handler on a different class directly, the application automatically creates an instance of it, which is subsequently destroyed when the method finishes?
-----Oorspronkelijk bericht-----
Van: applescriptobjc-dev-bounces+frederik.vdr=email@hidden [mailto:applescriptobjc-dev-bounces+frederik.vdr=email@hidden] Namens Shane Stanley
Verzonden: donderdag 16 januari 2014 12:47
Aan: ASObjC
Onderwerp: Re: Question concerning applescript subclasses and alerts as sheets
On 16 Jan 2014, at 6:10 PM, Frederik Vande Rieviere <email@hidden> wrote:
> I made an NSObject (blue cube) with its class property as Dialog and I gave it the name Dialog. In Interface builder I then connected the property mainWindow from it to the window that needs to display the sheet dialog by control-dragging the blue cube to the window and selecting the mainWindow property.
OK. So now your other script needs some way of talking to that instance, rather than the Dialog class. So the other script needs a property set to missing value, and for this to be connected to your Dialog object. Then you can call transform_ on the object by using the property, rather than calling it as a class method.
--
Shane Stanley <email@hidden> <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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
--
This message was scanned by ESVA and is believed to be clean.
Click here to report this message as spam.
http://mailscan.crea.be/cgi-bin/learn-msg.cgi?id=D2B632846B.8D21F
_______________________________________________
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