Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- Subject: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- From: Dave DeLong <email@hidden>
- Date: Mon, 18 Jul 2005 17:35:22 -0500
On Jul 18, 2005, at 5: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?
- Chase
If you're doing path manipulations, remember that the NSString class
has stringByAppendingPathComponent and
stringByDeletingLastPathComponent functions. Those take care of the
trailing slash abnormalities for you.
HTH,
Dave
_______________________________________________
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