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

Commit

Permalink
Merge pull request #278 from realm/do-fix-10.9-compatibility
Browse files Browse the repository at this point in the history
Check NSTextField.placeholderAttributedString availability on 10.9
  • Loading branch information
stel committed Feb 10, 2017
2 parents 4b7b1a6 + d535b00 commit ebc8c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RealmBrowser/Views/RLMTableCellView.m
Expand Up @@ -87,10 +87,10 @@ - (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle

- (void)configurePlaceholderStringHighlighted:(BOOL)highlighted
{
if (_optional == NO || self.textField == nil) {
if (!_optional || ![self.textField respondsToSelector:@selector(placeholderAttributedString)]) {
return;
}

if (self.highlightedPlaceholderString == nil || self.defaultPlaceholderString == nil) {
NSDictionary *highlightedAttributes = @{NSForegroundColorAttributeName:[NSColor colorWithRed:1.0f green:1.0f blue:1.0f alpha:1.0f]};
self.highlightedPlaceholderString = [[NSAttributedString alloc] initWithString:@"nil" attributes:highlightedAttributes];
Expand Down

0 comments on commit ebc8c7d

Please sign in to comment.