* Source/NSTextView.m: Add support for NSFilenamenPboardType.

Change by OnFlApp (https://githup.com/onflapp)
This commit is contained in:
Fred Kiefer 2024-03-18 22:53:46 +01:00
parent 1e956c96df
commit a054b21355
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2024-03-18 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m: Add support for NSFilenamenPboardType.
Change by OnFlApp (https://githup.com/onflapp)
2023-12-28 Fred Kiefer <FredKiefer@gmx.de>
* Documentation/manual/AppKit.texi: Move table of contents outside

View file

@ -5006,10 +5006,10 @@ right.)
}
END_FOR_IN(enumerator)
if (as && changeRange.location != NSNotFound &&
if ([as length] != 0 && changeRange.location != NSNotFound &&
[self shouldChangeTextInRange: changeRange
replacementString: [as string]])
{
{
[self replaceCharactersInRange: changeRange
withAttributedString: as];
[self didChangeText];
@ -5017,9 +5017,9 @@ right.)
[self setSelectedRange: NSMakeRange(NSMaxRange(changeRange),0)];
}
RELEASE(as);
return YES;
}
RELEASE(as);
return YES;
}
}
// color accepting