On Wed, Nov 5, 2014, at 04:11 PM, Greg Parker wrote:
> The C language allows a struct variable to be initialized in its
> declaration using the brace syntax, but does not allow that form to be
> used anywhere else.
>
> C99 adds this syntax ("compound literal") that works anywhere:
>
> NSView
> On Nov 5, 2014, at 2:03 PM, Richard Charles wrote:
>
> A fast and compact way to initialize a structure is to enclose the values in
> a pair of braces like this.
>
> NSRect rect = {{0,0},{80,20}};
> NSView *view = [[NSView alloc] initWithFrame:rect];
>
> However a compiler error occ