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...




On Jul 26, 2007, at 7:39 PM, 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.


Ah, I was thinking you were the one that said this before. It seems like you would always need to remember to test that you hadn't messed this up when you changed the code. Reflection still seems more certain to me. But I guess it comes down to what you like best that works for you.


Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
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>)



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.