Re: NSHomeDirectory not working with NSOpenPanel
Re: NSHomeDirectory not working with NSOpenPanel
- Subject: Re: NSHomeDirectory not working with NSOpenPanel
- From: John Tsombakos <email@hidden>
- Date: Thu, 14 Aug 2003 19:11:04 -0400
Well, more info. NSHomeDirectory isn't really part of the problem. It's
more of a problem/bug in NSOpenPanel. It depends on how long/deep the
path is that is passed to the "ForDirectory:" parameter and how many
columns you show in the Open Panel window. My testing shows:
Path
/users/john 4 columns does not work 3 works
/users/john/desktop 5 columns does not work 4 works
etc.
Also included in the panels is the hard drive, so the first one is OS
X -> Users -> John -> (contents of john) Shown in 3 columns with a
scrollbar. Widen the window to show all 4 columns and it does not work.
Dave Burnett mentioned that not using file types make it work all the
time, but my testing shows it does not matter. I changed the "Types:"
parameter to nil and it still showed the error.
I guess I'll write this up in the bugreporter at apple.com, unless
someone can explain otherwise.
John
On Thursday, August 14, 2003, at 03:12 PM, David Burnett wrote:
On Wednesday, August 13, 2003, at 12:42 am, John Tsombakos wrote:
Just a follow up to my previous message. I found that if the Open
Panel window is expanded to show 4 columns, I get the behavior I
described. If I shrink the window down to show less than 4, the open
panel will display the proper directory.
Bug in NSOpenPanel?
Thank you, I've had that problem for ages, look in the archives on
this very list.
Never thought of trying resizing the panel.
I have however noticed that if you do not use file types,
it opens in the proper directory too.
Dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.