Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Dark Mac #380

Merged
merged 13 commits into from
Nov 14, 2013
Merged

Dark Mac #380

merged 13 commits into from
Nov 14, 2013

Conversation

JeffryBooher
Copy link
Contributor

FIXED

UTR

BOLO

  • Intermittently going full screen will produce a blank screen. I thought this was fixed with a few cocoa calls to unhide and activate the app before going full screen. If you click on the brackets dock icon the appear will appear after going full screen. At that point it is no longer a problem. But the problem is intermittent. I had 10-15 successful launches to full screen without this problem so hopefully the additional NSView setNeedsDisplay:YES call after entering full screen mode fixed it but it's hard to say. I'd say since there is a work-around then let's roll with it and, if it's reproducible, then file a bug and we'll address it in the usual way. I don't think it's a show stopper unless it reproduces with great frequency.

@@ -0,0 +1,18 @@
//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update copyright:

/*
 * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

@@ -330,7 +265,7 @@ - (void)windowDidExitFullScreen:(NSNotification *)notification {
{
NSRect oldFrame = [controller.view frame];
NSRect newFrame = NSMakeRect(kTrafficLightsViewX, // x position
parentFrame.size.height - oldFrame.size.height - kTrafficLightsViewY, // y position
parentFrame.size.height - oldFrame.size.height - 4, // y position
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor 4 to a constant

@jasonsanjose
Copy link
Member

I did a high level review, but I can't say much about the Cocoa usage.

@@ -0,0 +1,114 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this file extension .m and all the other Cocoa files seem to be .mm ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, only files which contain both Objective-C AND c++ should use the .mm extension. Purely Obj-C files should use .m. It really doesn't cause runtime issues either way, but over use of .mm does slow down compile times.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobeast Thanks for the explanation. Now I know which files I shouldn't touch :) .

@JeffryBooher JeffryBooher mentioned this pull request Nov 13, 2013
@ghost ghost assigned redmunds Nov 13, 2013
@bobeast
Copy link

bobeast commented Nov 13, 2013

Once the dust settles, I highly recommend refactoring such that each class gets its own file pair, as opposed to placing multiple classes in a single file.

@redmunds
Copy link
Contributor

Merging.

redmunds added a commit that referenced this pull request Nov 14, 2013
@redmunds redmunds merged commit c8e714d into master Nov 14, 2013
@JeffryBooher JeffryBooher deleted the jeff/rework-dark-mac-from-bobeast branch November 14, 2013 23:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants