Removed the copyWithZone: method as this has been fixed on

GSTextStorage.
Changed NSLeftMouseUp to the correct NSLeftMouseDown. (Fix by
Ludovic Marcotte <ludovic@Sophos.ca>, who is the fist user of
NSTextAttachment)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-06-07 14:24:46 +00:00
parent 3e4f05e940
commit c9df791c59

View file

@ -166,7 +166,7 @@
id delegate = [textView delegate];
NSEventType type = [theEvent type];
if (type == NSLeftMouseUp)
if (type == NSLeftMouseDown)
{
if ([theEvent clickCount] == 2)
{
@ -335,11 +335,4 @@
return self;
}
- (id) copyWithZone: (NSZone*)z
{
// This method should not be here it is just a hack to work around a problem
// in NSAttributedString. There a dictionary including a NSTextAttachment gets copied,
// which fails without this.
return RETAIN(self);
}
@end