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: A question about [NSImage initByReferencingFile:filename]



On 9/4/01 6:17 AM, "Andreas Monitzer" <email@hidden> wrote:

> On Tuesday, September 4, 2001, at 02:44 , Chris Gehlker wrote:
>
>> The docs say that filename can be a relative or absolute path. I'm not
>> having problems when filename is an absolute path. My assumption that
>> relative means relative to the application bundle seems to be false. So my
>> question is "relative to what?".
>
> I guess relative to the current directory, which is ironically / when the
> app is double-clicked from the Finder.

Yep! I built a command line tool to test it. The idea of a command line
image editor is just to foreign for me to have guessed that. In hindsight,
it's obvious.
--
The secret of life is honesty and fair dealing. If you can fake that,
you've got it made. -Groucho Marx


References: 
 >Re: A question about [NSImage initByReferencingFile:filename] (From: Andreas Monitzer <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.