• 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: How do you split a script into multiple source files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you split a script into multiple source files


  • Subject: Re: How do you split a script into multiple source files
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 30 Dec 2009 11:09:12 +1100
  • Thread-topic: How do you split a script into multiple source files

Basically you add a new class via File -> New File, instantiate it in IB
(drag in blue cube and change its class), then create a connection to it via
a property in the classes you want to address it from.

The two things to watch are (a) you need to follow Cocoa naming conventions
for your handlers, and (b) you need to coerce arguments and results from
pointers to their respective classes.

You can read a bit more here:
<http://macscripter.net/viewtopic.php?id=30814>

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
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

References: 
 >How do you split a script into multiple source files (From: Paul Adams <email@hidden>)

  • Prev by Date: How do you split a script into multiple source files
  • Next by Date: Re: How to debug or develop incrementally in ASObjC?
  • Previous by thread: How do you split a script into multiple source files
  • Index(es):
    • Date
    • Thread