mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:30:38 +00:00
Add attributed string constants for Riccardo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24932 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
14c9514cfe
commit
d11b08e6c1
4 changed files with 53 additions and 20 deletions
|
@ -152,9 +152,15 @@ Class converter_bundles(NSString *format, BOOL producer)
|
|||
{
|
||||
NSString *converter_name;
|
||||
if (producer)
|
||||
converter_name = [format stringByAppendingString: @"Producer"];
|
||||
{
|
||||
converter_name
|
||||
= [format stringByAppendingString: @"Producer"];
|
||||
}
|
||||
else
|
||||
converter_name = [format stringByAppendingString: @"Consumer"];
|
||||
{
|
||||
converter_name
|
||||
= [format stringByAppendingString: @"Consumer"];
|
||||
}
|
||||
converter_class = [aBundle classNamed: converter_name];
|
||||
}
|
||||
}
|
||||
|
@ -355,7 +361,7 @@ static Class converter_class(NSString *format, BOOL producer)
|
|||
if (NSMaxRange (aRange) > length || location > length)
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -lineBreakBeforeIndex: withinRange: "];
|
||||
format: @"RangeError in method -lineBreakBeforeIndex: withinRange: "];
|
||||
}
|
||||
|
||||
if (!NSLocationInRange (location, aRange))
|
||||
|
@ -485,7 +491,7 @@ static Class converter_class(NSString *format, BOOL producer)
|
|||
if (location > length)
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -nextWordFromIndex: forward: "];
|
||||
format: @"RangeError in method -nextWordFromIndex: forward: "];
|
||||
}
|
||||
|
||||
/* Please note that we consider ' a valid word separator. This is
|
||||
|
@ -906,7 +912,7 @@ documentAttributes: (NSDictionary **)dict
|
|||
if (NSMaxRange (range) > [self length])
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"RangeError in method -fixParagraphStyleAttributeInRange: "];
|
||||
format: @"RangeError in method -fixParagraphStyleAttributeInRange: "];
|
||||
}
|
||||
|
||||
while (loc < NSMaxRange (range))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue