Re: Window controllers, code obfuscation
Re: Window controllers, code obfuscation
- Subject: Re: Window controllers, code obfuscation
- From: Charles Steinman <email@hidden>
- Date: Tue, 19 Aug 2008 06:22:31 -0700 (PDT)
--- On Tue, 8/19/08, Sumner Trammell <email@hidden> wrote:
> Unless I'm being completely stupid about this, he could
> have done this, right?
>
> [[[self windowControllers] objectAtIndex:0]
> setShouldCascadeWindows:NO];
>
>
> Or better yet, this?
>
> [aController setShouldCascadeWindows:NO];
Unless there's some really odd, ill-advised NSWindow subclass/category at work here, yes. It looks like maybe this method was originally meant to do something different, and the second line just got changed rather than rewriting the first to be more idiomatic.
Cheers,
Chuck
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden