• 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: 'Hierarchy' of libs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Hierarchy' of libs?


  • Subject: Re: 'Hierarchy' of libs?
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Thu, 8 Feb 2001 11:04:59 +0100

At 4:43 -0500 8/02/01, Bill Cheeseman wrote:

>Did you try enclosing my_lib in a script object within the library, then
>load the library of my_lib?

Ok, here's a working example:

lib1 saved as compiled script inside the Scripts folder:

script object1

on handler1()
display dialog "handler1 inside script object1 inside lib1"

end handler1

end script

lib2 saved as compiled script at the same place:

script object2

property parent : (load script file ("" & (path to scripts folder) & "lib1"))'s object1

end script

Now, something like:

property parent : (load script file ("" & (path to scripts folder) & "lib2"))'s object2

handler1()

- write the code inside SMILE, works
- save as app, lauch app, fails
- say OK to edit after failure, try at first inside SE, fails
- have SE recompile, try inside SE, works
- save as an app from SE, launch app, works
etc.

I appreciate the time you spend on this problem.

Serge

__ __ __
_ \///\/ _ I N S T I T U T | Serge Belleudy-d'Espinose - IJM
\///\/// J A C Q U E S | 2 place Jussieu - 75251 Paris Cedex 05
_///\///\_ M O N O D | m@il : email@hidden
__/\///\__ Service Informatique | WWW : http://www.ijm.jussieu.fr/


  • Follow-Ups:
    • Re: 'Hierarchy' of libs?
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: 'Hierarchy' of libs? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How to "Tell" a varible name
  • Next by Date: Re: How to "Tell" a varible name (solved??)
  • Previous by thread: Re: 'Hierarchy' of libs?
  • Next by thread: Re: 'Hierarchy' of libs?
  • Index(es):
    • Date
    • Thread