• 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: Window controllers, code obfuscation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Window controllers, code obfuscation (From: "Sumner Trammell" <email@hidden>)

  • Prev by Date: Re: document based app, custom ibaction
  • Next by Date: Re: Question about respondsToSelector
  • Previous by thread: Re: Window controllers, code obfuscation
  • Next by thread: Subclassing NSArrayController?
  • Index(es):
    • Date
    • Thread