Re: Possibility to change preferences for auto-[]
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