Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- Subject: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- From: Douglas Davidson <email@hidden>
- Date: Mon, 18 Jul 2005 15:44:41 -0700
On Jul 18, 2005, at 3:27 PM, Chase wrote:
When I print out [[NSBundle mainBundle] bundlePath] on my current
development machine, I get a path with no trailing slash.
Is this guaranteed to be this way on all versions of OS X?
As far as I know, all implementations of NSBundle on Mac OS X so far
have standardized bundle paths to remove trailing slashes. I believe
most NSString path manipulations do so also. However, I do not know
of any formal guarantee of this, and in most cases the presence or
absence of a trailing slash in a path is not significant. I would
strongly suggest not relying on any particular standardization.
Can you explain why you would want to rely on this?
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden