UITextLayer: Fix the alignment of the text to the clipping rect.
Fix a warning: Xcode thinks [anId window] returns an (NSWindow *).
Make UITextField update its text layer’s visibility.

Caveat: The text layer (independent of its superview) should probably
still be “not hidden” even when the text field is hidden. However,
without adding additional plumbing to make UITextLayer update its
NSViews, this is a reasonable solution to make UITextLayer create an
NSView when unhidden.
Hack: Always call the subview’s viewWillAppear, viewWillDisappear, etc.

This disables the [UIView _needsDidAppearOrDisappear] by always making
it equal YES. To be honest, I don’t understand what its purpose is, but
this appears to cause no side effects.