Skip to content

Commit

Permalink
Fix for CPSecureTextField not being in nib2cib.
Browse files Browse the repository at this point in the history
Closes #2.

Reviewed by me.
  • Loading branch information
Francisco Tolmasky committed Apr 22, 2009
1 parent 2e32688 commit f9a1fb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AppKit/CPSecureTextField.j
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

@import "CPTextField.j"

#include "Platform/Platform.h"

@implementation CPSecureTextField : CPTextField
{
Expand Down
4 changes: 4 additions & 0 deletions AppKit/CPTextField.j
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,10 @@ CPTextFieldStatePlaceholder = 1 << 13;

var secureStringForString = function(aString)
{
// This is true for when aString === "" and null/undefined.
if (!aString)
return "";

var secureString = "",
length = aString.length;

Expand Down
1 change: 1 addition & 0 deletions Tools/nib2cib/NSAppKit.j
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
@import "NSScrollView.j"
@import "NSScroller.j"
@import "NSSet.j"
@import "NSSecureTextField.j"
@import "NSSegmentedControl.j"
@import "NSSlider.j"
@import "NSSplitView.j"
Expand Down

0 comments on commit f9a1fb8

Please sign in to comment.