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: ShortCuts in a MAC?



----- Original Message ----- From: "Greg Guerin" <email@hidden>
To: <email@hidden>
Sent: Monday, February 11, 2008 12:27 AM
Subject: Re: ShortCuts in a MAC?



Johnny Kewl wrote:

Under the MacApp folder... can applications safely write to those files and
add unrelated folders.

If I understand what you mean by "MacApp folder", the answer is "No".

The reason is because the user running the app might not be the user who
installed the app, and the ownership and permissions of the internal files
and folders might not allow writing to the app's contents.  If an app DOES
allow free-for-all writing of its entire contents, it can be a security
risk, depending on what security policies are in place.

So no, you can't *safely* write to the contents of the app.  If you can do
it, it might be unsafe.  If you assume you can but can't complete it
because permissions prevent it, then your app has to deal with that
situation gracefully.  If you have to deal with possible unwritability by
doing Something Else, you may as well just do the Something Else in the
first place.

Yes ;) All very good points... I'm not Macified yet.


Then I'm thinking if the application has an optional module... and that Jar
is added to Resources/Jar and the Info.plist modified accordingly

If you're going to write a Macified app, you should read about tbe basics of Mac apps:

<http://developer.apple.com/documentation/java/Conceptual/Java14Development/inde
x.html>
If you need to support user-added plugins and such, see this:
 <http://developer.apple.com/technotes/tn/tn2015.html>

You should also see this page of links:
 <http://developer.apple.com/java/>

Yes thanks...
I wonder if its because of your shared VM classes, that Suns later Java6 stuff is now launching so quickly... interesting.
Because we just trying to get Java friendly on all platforms... the custom menu stuff is not for me.
It nice that all these OS's are just there on the Mac... very nice.


My initial response to what I see in general, is that tools like the Macified menus, should be released outside of the Mac environment as well.
Something like MACified plugins for Netbeans and Eclipse (maybe they there already)... just makes it easier for developers to target the Mac from other systems.
When I saw for example that Jarbuilder was Java itself.... big sigh of relief... and it does work nicely in Netbeans BTW (on Windows)


The question that I guess that is getting answered.... it how developers on linux and windows target the Mac ;)
Thats what I'm up to... thanks all good stuff.


_______________________________________________
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: ShortCuts in a MAC? (From: Greg Guerin <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.