Re: Trying to open a file

2009-02-18 Thread Christian Graus
Ah - thanks for the explanation, I bet that's why it worked for me before and not later when the path I selected, changed. The space will be it, this code worked 4 days ago and I've not done any updates. On Wed, Feb 18, 2009 at 8:10 PM, Ken Thomases wrote: > On Feb 18, 2009, at 1:15 AM, Christi

Re: Trying to open a file

2009-02-18 Thread Ken Thomases
On Feb 18, 2009, at 1:15 AM, Christian Graus wrote: I will look to see what fileURLWithPath returns tho, b/c the string is the same as it was the last time I ran this, but last time it worked ( the code has not changed, so I am mystified ) It may have worked, but it is not a generally corr

Re: Trying to open a file

2009-02-17 Thread Christian Graus
Thanks - I actually ended ip using NSData and dataFromFileContents, and that seems to be working fine. I was just going to post to say I'd solved it.. I will look to see what fileURLWithPath returns tho, b/c the string is the same as it was the last time I ran this, but last time it worked ( t

Re: Trying to open a file

2009-02-17 Thread Ron Fleckner
On 18/02/2009, at 5:35 PM, Christian Graus wrote: Hi guys So, I've got a file open dialog, and I have this code: NSString * path = @"file://"; NSString * p = [open filename]; path = [path stringByAppendingString:p ]; NSURL * xmlURL = [[NSURL alloc] initWithString:path ]; NSXMLDocument *doc