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: SVN, XCode, and pre-existing code...





Rohan Lloyd wrote:

On 27 Jul 2007, at 10:39 AM, Scott Palmer wrote:


Michael Hall wrote:
I seem to remember someone claiming sometime that you didn't actually need the reflection.
You don't need to use any reflection to use the ApplicationAdapter on non-Mac platforms without including the stubs. All you need to do is make sure that the code path that executes when running on non-macs doesn't actually use any classes from the stub. I do it with a simple check of the os system property.

But if you use reflection, you don't have to ship the Stub jar. It is only required if you want to compile on a non Mac platform. This is the intended use of it.
You don't have to ship the stub jar ever, as long as the execution path doesn't actually require the classes in it. That's the point of my method. Reflection does not have an advantage in this case - it's just harder to code with reflection.

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

This email sent to email@hidden
References: 
 >Re: SVN, XCode, and pre-existing code... (From: Doug Zwick <email@hidden>)
 >Re: SVN, XCode, and pre-existing code... (From: Michael Hall <email@hidden>)
 >Re: SVN, XCode, and pre-existing code... (From: Scott Palmer <email@hidden>)
 >Re: SVN, XCode, and pre-existing code... (From: Rohan Lloyd <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.