Re: [8] Review Request for 8009911 : [macosx] SWT app freeze when going full screen using Java 7 on Mac

2013-06-07 Thread Nicholas Rahn
+1 for this patch. (Thanks, Petr!) I have tried it in the latest jdk8 (b91) and it fixes both of the SWT+OpenJDK7&8 bugs that I submitted in the Eclipse bugzilla. Would be great if this could be accepted at least for jdk8 (if not jdk7u too). Cheers, Nick On Tue, May 21, 2013 at 1:07 PM, Petr Pch

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-06 Thread Nicholas Rahn
As someone with a Java app in the Mac App Store (MAS), I would like to vote against this change. It is still important to know the user's actual home directory (/Users/) even if the app is running in the sandbox. Using the entitlement, com.apple.security.files.user-selected.read-write, we can sti

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-11 Thread Nicholas Rahn
If you're saying that NSHomeDirectory is the correct behaviour for the Java user.home property, then I have to disagree. On every other platform, including non-sandboxed Mac, user.home is the actual user's home directory (i.e. /home/ or /Users/ or C:\Users\). Setting user.home to the *application's

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-11 Thread Nicholas Rahn
I use user.home to do things like: String userHomePath = System.getProperty("user.home"**); myFileDialog.setDirectory(**userHomePath + "/Documents"); In my app, the user selects where he wants to export individual files, such as CSVs and PDFs. These are files he'll use outside of my app. If user

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-11 Thread Nicholas Rahn
> > In my app, I have an export dialog where the user can select the file to > export as well as choose some other export options. In that dialog, after > the user has selected the file to export (via the file selection dialog), I > display the full path to the file that was returned from the file

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-11 Thread Nicholas Rahn
initialization code in my app can be used to build the app-specific data in the right place. Thanks, Nick On Wed, Sep 11, 2013 at 2:27 AM, Brent Christian wrote: > Adding a little to what Dave said, based on my understanding... > > On 9/10/13 3:36 PM, David DeHaven wrote: > > > Nicho

Re: RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

2013-09-17 Thread Nicholas Rahn
Ok, I've tried this out with my app in the sandbox. I can confirm that opening a file dialog (NSSavePanel underneath), with a directory pointing to the Container's Documents directory (/Users/nick/Library/Containers/my.app/Data/Documents), will show the standard Mac file selection dialog with the s