Skip to content

Conversation

@ddeville
Copy link
Contributor

@ddeville ddeville commented Feb 3, 2014

See my code review and changes I’d make to it before shipping.

Damien DeVille added 30 commits February 2, 2014 13:07
…nd simply create and show the window at launch.
This is to make sure that users can reopen the window when clicking the Dock icon if they inadvertently closed it.
We rather trust LaunchServices and query `NSWorkspace` for the “Application Loader” application path. If found, we can retrieve the iTMSTransporter binary path.
Update the UI on the main thread before enqueuing the operation on a background queue. Similarly, create a new operation enqueued on the main queue to update the UI and make it dependent on the task operation.

These 3 methods are also begging for refactoring.
Each of the 3 methods now calls into a private method doing the actual work.
Remove outlets and delegates, welcome to the world of AppKit!
The status is now dependent on the credentials validity and the internal status.
Damien DeVille added 20 commits February 2, 2014 15:24
This ensures that we don’t do synchronous I/O by calling `-readDataToEndOfFile` on the standard output `NSFileHandle`.
Set the window controller as delegate. Attempt to find credentials in the keychain when loading the window. Attempt to find credentials in the keychain anytime the username text field ends editing and the password text field is empty.

Save the last username that was used so that we can query the right account from the keychain on next launch.
@nikf nikf closed this Feb 3, 2014
@nikf nikf deleted the code-review branch February 3, 2014 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants