• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Escaping spaces in paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escaping spaces in paths


  • Subject: Re: Escaping spaces in paths
  • From: "Jose L. Hales-Garcia" <email@hidden>
  • Date: Mon, 24 Jun 2002 22:35:18 -0700

On Sunday, June 23, 2002, at 06:06 AM, Ondra Cada wrote:

> s=[[s componentsSeparatedByString:@"!"] componentsJoinedByString:@"\\!"]

Thank you. I encountered a bug with the handling of the backslash though
(see below). It would be great for my work if Apple fixed it soon.

I can see another way of doing this using NSScanner that might work.

Thanks again,
Jose


------------------------------------------------------------------------
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread
Index]

Escaping a backslash in ObjectiveC
------------------------------------------------------------------------

* Subject: Escaping a backslash in ObjectiveC
* From: christopheranand at mac.com (Christopher Anand)
* Date: Fri Feb 1 13:09:01 2002
* In-Reply-To: <email@hidden>

------------------------------------------------------------------------


I filed this as bug 2834828 in December.

Christopher Anand

On Friday, February 1, 2002, at 03:50 PM, Rimi Zara wrote:

> Hi,
>
> I have a feeling my question is plain stupid, but I can't seem to find
> a solution anywhere.
> Is it normal that:
>
> NSLog(@"\\");
>
> outputs
>
> \\\\
>
> ?
>
> I thought this was the way to escape a backslash character. What I
> wanted to be printed was a single backslash.
> Is this a bug ? If not, how do I escape a backslash character ?
>
> Thanks for your help,
>
> Rimi
>
> --
> Rimi Zara
> web: http://www.remi-zara.net/
>
> _______________________________________________
> MacOSX-dev mailing list
> email@hidden
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>



------------------------------------------------------------------------

* Follow-Ups:
* Escaping a backslash in ObjectiveC
* From: remi_zara at mac.com (Rimi Zara)


* References:
* Escaping a backslash in ObjectiveC
* From: remi_zara at mac.com (Rimi Zara)


* Prev by Date: Escaping a backslash in ObjectiveC
* Next by Date: Avoid bouncing up when resizing
* Prev by thread: Escaping a backslash in ObjectiveC
* Next by thread: Escaping a backslash in ObjectiveC
* Index(es):
* Date
* Thread
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Escaping spaces in paths
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Escaping spaces in paths (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Mutable class problems
  • Next by Date: Re: Mutable class problems
  • Previous by thread: Re: Escaping spaces in paths
  • Next by thread: Re: Escaping spaces in paths
  • Index(es):
    • Date
    • Thread