Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- Subject: Re: [[NSBundle mainBundle] bundlePath] and trailng slashes...
- From: Gregory Weston <email@hidden>
- Date: Mon, 18 Jul 2005 23:09:46 -0400
On Jul 18, 2005, at 10:28 PM, Chase wrote:
the problem is that i'm looking for a path in the com.apple.dock
prefs domain and i need to compare it to my bundle path to see if my
app is already in the dock. the paths in the dock seem to all have
trailing slashes, but i don't want to depend on that, since any user
could certainly pop open the plist file and add a pathname that
doesn't have a trailing slash.
One might hope that NSString>>stringByStandardizingPath is
deterministic. Do it to both the bundle path and the dock entry and
then compare those.
G
_______________________________________________
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