Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Well, I'm Confused...



I thought both values should be "Child Value", since the Child's property
overrides the Parent's property. Silly me.

What am I missing?

script theParent
property zzz : "Parent Value"
on send()
return zzz
end send
end script

on makechild()
script theChild
property parent : theParent
property zzz : "Child Value"
return (theChild)
end script
end makechild

set theChild to makechild()
{theChild's zzz, theChild's send()}

--> {"Child Value", "Parent Value"}

Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.