• 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: Graham Cox <email@hidden>
  • Date: Tue, 19 Aug 2008 17:37:37 +1000


On 19 Aug 2008, at 5:20 pm, Sumner Trammell wrote:

Hi, I'm trying to decipher someone else's code who is no longer
available.  He did something that I think I can simplify, but I first
want to make sure I'm not being completely wrong-headed about what I'm
looking at.

First off, does this person's code not work? If it does, my advice is to leave it alone. Debugged code, no matter how bizarre-looking, is better than any amount of theoretically excellent code that might not work.


So, with that out of the way:

Or better yet, this?

[aController setShouldCascadeWindows:NO];


This seems the most straightforward thing to do. The question you need to answer to your own satisfaction is: Is this what the original coder intended? Is it functionally equivalent to the original code?

hth,

Graham
_______________________________________________

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: document based app, custom ibaction
  • Previous by thread: Window controllers, code obfuscation
  • Next by thread: Re: Window controllers, code obfuscation
  • Index(es):
    • Date
    • Thread