mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:10:37 +00:00
Add declarations for setPlaceholderString:/setPlaceholderAttributedString and getters to header and implementation to NSTextField.m
This commit is contained in:
parent
ebc6eb99a3
commit
67860bf8c1
2 changed files with 24 additions and 0 deletions
|
@ -120,6 +120,26 @@ static Class textFieldCellClass;
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (void) setPlaceholderString: (NSString *)string
|
||||
{
|
||||
[_cell setPlaceholderString: string];
|
||||
}
|
||||
|
||||
- (NSString *) placeholderString
|
||||
{
|
||||
return [_cell placeholderString];
|
||||
}
|
||||
|
||||
- (void) setPlaceholderAttributedString: (NSAttributedString *)string
|
||||
{
|
||||
[_cell setPlaceholderAttributedString: string];
|
||||
}
|
||||
|
||||
- (NSAttributedString *) placeholderAttributedString
|
||||
{
|
||||
return [_cell placeholderAttributedString];
|
||||
}
|
||||
|
||||
/** <p>Returns whether the NSTextField is editable. By default a NSTextField
|
||||
is not editable.</p>
|
||||
<p>See Also: -setEditable: [NSCell-isEditable]</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue