Tuesday, December 12, 2017

#1 2009-11-02 11:46:29 am

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Adding scripts and controllers.

From what I've seen in Xcode and IB each script has a blue cube attached to it, I can add a cube and create a script but how do I link the 2 up?

Offline

 

#2 2009-11-02 05:52:59 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5199

Re: Adding scripts and controllers.

Select the cube, go to the Inspector's Identity panel, and enter the class's name in the Class field.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#3 2009-11-02 05:56:06 pm

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Adding scripts and controllers.

Something that annoyingly simple had to have been made by Apple, thank you XD

Offline

 

#4 2009-11-05 07:33:25 pm

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Adding scripts and controllers.

I have a problem calling a subroutine between classes, to trigger the error click insert for display dialog with text highlighted in AS Editor, look at the log, the problem is in subinsert in displaydialogcontroller activating subselchk in dialog_makerappdelegate. I would be so grateful for an answer, thanks. smile

http://files.me.com/imadrichard/tgbqma

If it asks for a password put anything in.

Offline

 

#5 2009-11-05 09:24:07 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5199

Re: Adding scripts and controllers.

If you want to call handlers in other classes, you have to follow Obj-C naming conventions. Your handler takes two arguments, so it needs two underscores in its name -- eg, subselchk__. You will also have to coerce the arguments in the handler, as well as the result in the calling code. See my posting somewhere here about this very issue a little while back.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#6 2009-11-06 09:28:50 am

Richard
Member
From:: Herefordshire, UK
Registered: 2009-09-09
Posts: 529
Website

Re: Adding scripts and controllers.

Thanks alot smile I thought those rules only applied to cocoa.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)