Commit graph

39 commits

Author SHA1 Message Date
wlux
514393b9d6 Prevent potential crashes due to invalid pointers left in text
containers and layout managers when their respective layout manager
and text storage are deallocated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35178 72102866-910b-0410-8b05-ffd578937521
2012-06-05 11:34:02 +00:00
fredkiefer
3cdc68a09b Replace #include -> #import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32451 72102866-910b-0410-8b05-ffd578937521
2011-03-04 11:33:22 +00:00
wlux
79c185750b Avoid potential crash when removing the last layout manager of a text
storage whose text network is owned by a text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31813 72102866-910b-0410-8b05-ffd578937521
2011-01-01 16:35:03 +00:00
gcasa
c927eb226f * Source/NSTextStorage.m: Correct spelling of header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28468 72102866-910b-0410-8b05-ffd578937521
2009-08-16 19:15:32 +00:00
fredkiefer
3e16cca09b * Source/NSTextStorage.m (-replacementObjectForPortCoder:):
Added this method as suggested by Richard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28464 72102866-910b-0410-8b05-ffd578937521
2009-08-15 22:05:08 +00:00
fredkiefer
1e8c060227 * Source/NSTextStorage.m (-classForCoder, -initWithCoder:,
-encodeWithCoder:): Encode this class and not the concrete 
  one. Also call super encoding/decoding methods as they are
  correct in base now.
* Source/GSTextStorage.m (-classForPortCoder, -encodeWithCoder:,
  -replacementObjectForPortCoder:): Remove these methods.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28456 72102866-910b-0410-8b05-ffd578937521
2009-08-12 22:00:16 +00:00
fedor
ce41d782c1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
fredkiefer
e25cceb710 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
rfm
cc3cafa874 tidyups and minor theme tiling updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23871 72102866-910b-0410-8b05-ffd578937521
2006-10-15 08:34:47 +00:00
gcasa
78abe49764 Correction for window size in -[NSWindowTemplate nibInstantiate]. Implemented encoding in encodeWithCoder: for some classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23207 72102866-910b-0410-8b05-ffd578937521
2006-08-06 04:32:16 +00:00
fedor
db3c52eab8 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
alexm
8b0730a303 2005-01-21 21:43 Alexander Malmberg <alexander@malmberg.org>
Various whitespace cleanups, comment type fixes, and changes
	to avoid warnings from recent versions of gcc.

	* Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare.
	* Source/NSWindow+Toolbar.m: Remove conflicting declaration of
	[NSToolbar -_toolbars].

	* Headers/Additions/GNUstepGUI/GSServicesManager.h,
 	Source/GSServicesMananger.m (-item2title:, -validateMenuItem:):
	Adjust argument types.
	* Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument
	type.

	* Source/NSTextView.m (-sizeToFit): Don't use size uninitialized
	if neither resizable flags is set.
	(-insertText:): Adjust argument type.
	* Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:):
	Adjust argument type. Document.

	* Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *.

	* Source/GSTitleView.m (-mouseDown:): Always initialize
	startWindowOrigin.
	* Source/NSApplication.m (-setApplicationIconImage:): Add casts
	to avoid warnings.
	* Source/NSCell.m (-cellSize): Add default: case.
	* Source/NSPasteboard.m
	([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we
	can't find a filter that will get us the desired type.
	* Source/NSProgressIndicator.m: Comment out unused variable 'images'.
	* Source/NSBezierPath.m: Declare GSBezierPath fully before using it.
	(-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure
	variables are always initialized.

	* Source/NSMenuView.m,
	* Source/NSPrintOperation.m,
	* Source/NSSplitView.m,
	* Source/NSTableHeaderView.m: Make sure variables are always
	initialized.

	* Source/NSBox.m,
	* Source/NSImageview.m,
	* Source/NSText.m,
	* Source/NSTextStorage.m: Add missing includes.

	* Source/GSKeyBindingTable.m,
	* Source/GSLayoutManager.m,
	* Source/NSBitmapImageRep+PNM.m,
	* Source/NSBundleAdditions.m,
	* Source/NSLayoutManager.m,
	* Source/nsimage-tiff.h,
	* Source/tiff.m,
	* Headers/Additions/GNUstepGUI/GSDisplayServer.h,
	* Source/GSDisplayServer.m: Change signedness of various variables.

	* Source/NSPanel.m (-sendEvent:): Remove.
	* Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method.
	(-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ...
	(-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead
	of the argument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20590 72102866-910b-0410-8b05-ffd578937521
2005-01-21 20:39:18 +00:00
FredKiefer
0fba15f09b More keyed decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18603 72102866-910b-0410-8b05-ffd578937521
2004-02-15 18:23:13 +00:00
ayers
9732999fd8 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
FredKiefer
64d5321ffc Removed compiler warning about signed/unsigned comparision.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17005 72102866-910b-0410-8b05-ffd578937521
2003-06-23 15:50:46 +00:00
fedor
fc402789db Include <> -> ""
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16917 72102866-910b-0410-8b05-ffd578937521
2003-06-13 15:01:12 +00:00
alexm
78fc19a490 (-processEditing): Make sure we always give a valid range and delta to the layout managers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15936 72102866-910b-0410-8b05-ffd578937521
2003-02-11 15:39:49 +00:00
alexm
b13fd9e652 Merge in text-system-branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15718 72102866-910b-0410-8b05-ffd578937521
2003-01-26 19:21:40 +00:00
CaS
ed00ac6d93 Documentation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14760 72102866-910b-0410-8b05-ffd578937521
2002-10-13 10:26:57 +00:00
nico
bbf4f470ca Set the layout manager's text storage to nil when we remove it, since we
are the ones setting it to non-nil when we add it


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14673 72102866-910b-0410-8b05-ffd578937521
2002-10-08 17:58:09 +00:00
nico
3be0c5db02 Remove the delegate from the notification center in -dealloc; cache the
default notification center


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14530 72102866-910b-0410-8b05-ffd578937521
2002-09-24 01:32:42 +00:00
fedor
c51f4265da Markup for autogsdoc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11788 72102866-910b-0410-8b05-ffd578937521
2001-12-17 16:51:51 +00:00
FredKiefer
5a81e1a3d2 Added some new methods that allow for lazy fixing of attributes in
subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11489 72102866-910b-0410-8b05-ffd578937521
2001-11-23 00:27:53 +00:00
nico
a5df4ac42f Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10817 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:14:50 +00:00
richard
d5b2611d3c removed unused header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8555 72102866-910b-0410-8b05-ffd578937521
2001-01-11 08:29:18 +00:00
nico
8bd1435251 Prefixed all ivars with underscores; fixed invalidated range
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8326 72102866-910b-0410-8b05-ffd578937521
2000-12-16 02:21:59 +00:00
FredKiefer
3776dbf175 [edited:range:changeInLength:] and [processEditing] corrected
reported range.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7272 72102866-910b-0410-8b05-ffd578937521
2000-08-27 22:31:32 +00:00
FredKiefer
204663c900 Corrected problem in processEditing. The change range got to big
after repeated adding at the end.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6701 72102866-910b-0410-8b05-ffd578937521
2000-06-16 17:05:28 +00:00
richard
15c9e0cf75 NSText fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6360 72102866-910b-0410-8b05-ffd578937521
2000-03-23 11:31:25 +00:00
fedor
5caf79a568 Merge from dawn
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4853 72102866-910b-0410-8b05-ffd578937521
1999-09-09 02:56:20 +00:00
michael
6bceaa0b50 A load of changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4724 72102866-910b-0410-8b05-ffd578937521
1999-08-19 23:18:25 +00:00
michael
c05134b825 More fixes, added NSAttributedString.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4649 72102866-910b-0410-8b05-ffd578937521
1999-07-25 21:44:07 +00:00
michael
d1f464c5e3 Small fixes to text network.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4648 72102866-910b-0410-8b05-ffd578937521
1999-07-25 20:49:08 +00:00
richard
63411fba98 Tidied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4646 72102866-910b-0410-8b05-ffd578937521
1999-07-25 10:47:28 +00:00
michael
2caad61acb More text fixes and debugs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4644 72102866-910b-0410-8b05-ffd578937521
1999-07-25 04:58:39 +00:00
michael
2a00135112 More text fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4643 72102866-910b-0410-8b05-ffd578937521
1999-07-25 04:07:44 +00:00
michael
efcfcbe8cc More text fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4642 72102866-910b-0410-8b05-ffd578937521
1999-07-25 03:34:10 +00:00
richard
2ecc33cce6 Modifications for text storage system
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4594 72102866-910b-0410-8b05-ffd578937521
1999-07-15 05:52:55 +00:00
richard
144d41d163 Initial implementation of NSTextStorage class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3885 72102866-910b-0410-8b05-ffd578937521
1999-03-09 20:38:22 +00:00