~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple of robustness issues.
[sgt/puzzles]
/
osx.m
diff --git
a/osx.m
b/osx.m
index
ed33bf6
..
039f081
100644
(file)
--- a/
osx.m
+++ b/
osx.m
@@
-383,7
+383,7
@@
struct frontend {
- (void)keyDown:(NSEvent *)ev;
- (void)activateTimer;
- (void)deactivateTimer;
- (void)keyDown:(NSEvent *)ev;
- (void)activateTimer;
- (void)deactivateTimer;
-- (void)setStatusLine:(
NSString
*)text;
+- (void)setStatusLine:(
char
*)text;
@end
@implementation MyImageView
@end
@implementation MyImageView
@@
-1131,9
+1131,11
@@
struct frontend {
[self sheetEndWithStatus:NO];
}
[self sheetEndWithStatus:NO];
}
-- (void)setStatusLine:(
NSString
*)text
+- (void)setStatusLine:(
char
*)text
{
{
- [[status cell] setTitle:text];
+ char *rewritten = midend_rewrite_statusbar(me, text);
+ [[status cell] setTitle:[NSString stringWithCString:rewritten]];
+ sfree(rewritten);
}
@end
}
@end
@@
-1267,7
+1269,7
@@
void activate_timer(frontend *fe)
void status_bar(frontend *fe, char *text)
{
void status_bar(frontend *fe, char *text)
{
- [fe->window setStatusLine:
[NSString stringWithCString:text]
];
+ [fe->window setStatusLine:
text
];
}
/* ----------------------------------------------------------------------
}
/* ----------------------------------------------------------------------