Mailing Lists: Apple Mailing Lists

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

Re: Class name substring collision



I don't think that's necessarily true, Mike. For example, Mail has a "message" class as well as a separate "outgoing message" class. I personally put an "Attached Document" class into Project X's AppleScript support, and have had no conflicts with the built-in "Document" class. They are in different suites though, and Mail's message and outgoing message are too. Maybe that's the trick.

--
Mike Glass


On Nov 2, 2007, at 4:37 PM, Major Domo wrote:

It seems that class names cannot be substrings of other class names, lest they collide at compile time. For example, if I have a class album and another class iTunes album, the compiler will map the "album" in "iTunes album" to album and throw an error because it doesn't know what "iTunes" means.

Is this true? If so, is there any way to get around this, other than having to think of two words for every kind of media?

Mike Lee, Major-domo
Delicious Monster Software, LLC


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden

References: 
 >Class name substring collision (From: Major Domo <email@hidden>)



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.