Re: Missing braces? I don't see where
Re: Missing braces? I don't see where
- Subject: Re: Missing braces? I don't see where
- From: Kevin Brock <email@hidden>
- Date: Tue, 27 Oct 2009 15:48:10 -0700
Chris Suter wrote:
Hi Steve,
You want:
COLORDATA backgroundColor = { kRGBSpace, false, { { 0xFFFF, 0xFFFF,
0xFFFF } } };
because of the union.
Yes. Some people might not see an error with the unbracketed version
because the default setting for some new Xcode projects appears to be
*not* warning on partially bracketed initializers.
There's a specific warning that can be turned on to make sure
initializer bracketing is complete.
Kevin
_______________________________________________
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