• 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: Possibility to change preferences for auto-[]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possibility to change preferences for auto-[]


  • Subject: Re: Possibility to change preferences for auto-[]
  • From: Christiaan Hofman <email@hidden>
  • Date: Thu, 3 Feb 2011 16:56:22 +0100

On Feb 3, 2011, at 16:42, Christian Voigt wrote:

> Hi,
>
> speacking about the following line of code:
> [[NSBundle mainBundle] pathForResource:@"contacts" ofType:@"db"]
>
> I start typing:
> NSBundle mainBundle
>
> then ] and XCode generates the corresponding [   -->
> [NSBundle mainBundle]
>
> **that's fine**
>
> then I type:
> pathForResource:@"contacts" ofType:@"db"
>
> and XCode generates after inserting ] this [ one on wron position!!:
> [NSBundle mainBundle] pathForResource:[@"contacts" ofType:@"db"]
>
>
> ...
> ** :-( **
>
> of course it should look like this:
> [[NSBundle mainBundle] pathForResource:@"contacts" ofType:@"db"]
>
>
> Is there a possibility to change the behavior?

No. Apparently it looks at the syntax, not the code, to match square brackets. And as such it's doing it right, locally. And completion is always local.

Christiaan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Possibility to change preferences for auto-[] (From: Christian Voigt <email@hidden>)

  • Prev by Date: Possibility to change preferences for auto-[]
  • Next by Date: Re: Security.framework
  • Previous by thread: Possibility to change preferences for auto-[]
  • Next by thread: Techniques to suppress "unused member variable" Clang warnings?
  • Index(es):
    • Date
    • Thread