Commit graph

5159 commits

Author SHA1 Message Date
Gregory John Casamento
8fde5c6099 Placed Fred's change on a branch for further investigation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/NSControl_mouseDown_fix@23391 72102866-910b-0410-8b05-ffd578937521
2006-09-04 18:00:21 +00:00
Gregory John Casamento
6a31d3eab1 Moving the code for this to a branch for further investigation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/NSControl_mouseDown_fix@23390 72102866-910b-0410-8b05-ffd578937521
2006-09-04 17:57:51 +00:00
Nicolas Roard
7fe85ace3b forgot the changelog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23389 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:25:50 +00:00
Nicolas Roard
5c156d87df moved a declaration at the beginning of the method (gcc 2.9x ...)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23388 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:11:45 +00:00
Nicolas Roard
d3ff656a0c Added JPEG writing support to NSBitmapImageRep. Only handles RGB images (NS*RGBColorSpace). You can specify the compression ratio by using the NSImageCompressionFactor key in the properties dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23387 72102866-910b-0410-8b05-ffd578937521
2006-09-04 00:02:20 +00:00
Gregory John Casamento
d916e0adb1 Reverted previous change. Added comments in NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23384 72102866-910b-0410-8b05-ffd578937521
2006-09-03 16:18:42 +00:00
Gregory John Casamento
d0bc68ca3a * Source/GSStandardWindowDecorationView.m: Correct issue in
initWithFrame🪟 that was causing a crash when the window 
	was closed.
	* Source/NSControl.m: Reinstated fix from Fred Kiefer for 
	mouseDown: simplification and refactoring. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23380 72102866-910b-0410-8b05-ffd578937521
2006-08-31 04:23:56 +00:00
Adam Fedor
ea619a198f Updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23375 72102866-910b-0410-8b05-ffd578937521
2006-08-29 15:00:28 +00:00
Gregory John Casamento
3d5dee4eeb updated ANNOUNCE for release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23359 72102866-910b-0410-8b05-ffd578937521
2006-08-29 06:28:37 +00:00
Gregory John Casamento
68d089ba75 Changes for the 0.11.0 release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23349 72102866-910b-0410-8b05-ffd578937521
2006-08-29 03:57:29 +00:00
Gregory John Casamento
da7ae90539 * Source/GSNibLoader.m: loadModelData:... Remove TEST_RELEASE
from handler block.
	* Source/NSColor.m: initWithCoder: retain autoreleased instances
	of NSColor to prevent double release when the pool is cleared.
	* Source/NSControl.m: initWithCoder: retain cell to prevent
	double release when the pool is cleared.
	* Source/NSFont.m: initWithCoder: retain autoreleased instances
	of NSFont to prevent double release when the pool is cleared.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23340 72102866-910b-0410-8b05-ffd578937521
2006-08-27 02:35:03 +00:00
Gregory John Casamento
aaa0f632ce * Source/NSTableView.m: initWithCoder: minor cleanup.
* Source/NSTextFieldCell.m: initWithCoder retain 
	text/background colors to prevent crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23339 72102866-910b-0410-8b05-ffd578937521
2006-08-26 22:28:47 +00:00
Gregory John Casamento
63e4a9aebd * Source/GSNibCompatibility.m: In [NSIBObjectData initWithCoder:]
clean up the buildMap calls.  In NSCustomResource retain the resource
	that is returned to prevent a crash.  Add dealloc method to 
	NSCustomObject.
	* Source/NSClipView.m: In initWithCoder: retain and release
	documentView before removing it from the view and resetting
	it as the document view.   This ensures that the view will
	not be deallocated.
	* Source/NSScrollView.m: Retain the contentView before exchanging
	it and then release to prevent the view from being deallocated in
	initWithCoder:
	* Source/NSTableView.m: Replace call to "new" with alloc/init for
	NSTableHeaderView in initWithCoder:
	* Source/NSView.m: in initWithCoder: keyed coding don't release
	the subs array since it's already autoreleased.  This was causing
	a crash.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23336 72102866-910b-0410-8b05-ffd578937521
2006-08-26 14:10:18 +00:00
Richard Frith-MacDonald
1c35ed587b Improve defaults documentation a little.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23330 72102866-910b-0410-8b05-ffd578937521
2006-08-25 16:06:09 +00:00
Fred Kiefer
48f42d5793 Moved variable declaration to work with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23320 72102866-910b-0410-8b05-ffd578937521
2006-08-21 12:09:38 +00:00
Gregory John Casamento
3c5f004f90 * Source/NSApplication.m: Remove keys from initWithCoder: and
encodeWithCoder:.
	* Source/NSCell.m: Initialize the cell based on content in 
	initWithCoder:.
	* Source/NSFormCell.m: Removed unnecessary decoding of NSContents key
	in initWithCoder: since it is already done in NSCell.m.
	* Source/NSMatrix.m: initWithCoder:/encodeWithCoder: added 
	autosizesCells flag and clear flags which are not used
	prior to encoding.
	* Source/NSPopUpButtonCell.m: Implemented encoding in 
	encodeWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23318 72102866-910b-0410-8b05-ffd578937521
2006-08-20 16:18:31 +00:00
Gregory John Casamento
9381ab8eec * Source/NSBrowser.m: Added comment in encodeWithCoder:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23316 72102866-910b-0410-8b05-ffd578937521
2006-08-19 19:56:47 +00:00
Gregory John Casamento
f3a5a67c45 * Source/NSBrowserCell.m: Improved encoding and decoding in
encodeWithCoder: and initWithCoder:
	* Source/NSBrowser.m: Improved encoding and decoding in
	encodeWithCoder: and initWithCoder:
	* Source/NSScrollView.m: Improved encoding and decoding in
	encodeWithCoder: and initWithCoder:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23315 72102866-910b-0410-8b05-ffd578937521
2006-08-19 14:34:52 +00:00
Gregory John Casamento
569ceb5d66 * Source/NSButtonCell.m: Improvements in both initWithCoder: and
encodeWithCoder: utilize the setCellAttribute:to: method and
	the cellAttribute: method to determine settings when saving
	to a keyed archive.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23310 72102866-910b-0410-8b05-ffd578937521
2006-08-17 04:55:32 +00:00
Gregory John Casamento
f4e0785e42 * Source/NSTabView.m: Corrections in initWithCoder: and
encodeWithCoder: to properly encode items and tabview orientation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23298 72102866-910b-0410-8b05-ffd578937521
2006-08-16 04:54:25 +00:00
Gregory John Casamento
b87d2a64cd * Headers/Additions/GNUstepGUI/GSNibCompatibility.h: Added oids method.
* Images/common_Printer.tiff: Replaced old printer icon with one
  created from the PrefsIcon_SelectSpooler_Tile.jpg image on the website.
* Source/GSNibCompatibility.m: Added oids method to get the map.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23292 72102866-910b-0410-8b05-ffd578937521
2006-08-15 05:04:35 +00:00
Gregory John Casamento
baf3f68d20 encoding improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23285 72102866-910b-0410-8b05-ffd578937521
2006-08-13 20:21:46 +00:00
Gregory John Casamento
fe2d2fe22d Temporary rollback of change to -[NSControl mouseDown:] until it can be determined why it is causing some applications to crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23284 72102866-910b-0410-8b05-ffd578937521
2006-08-13 17:06:57 +00:00
Gregory John Casamento
5f8663e528 minor cleanup of changelog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23283 72102866-910b-0410-8b05-ffd578937521
2006-08-13 16:05:48 +00:00
Gregory John Casamento
e977cbec49 Remove >>>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23281 72102866-910b-0410-8b05-ffd578937521
2006-08-13 13:58:24 +00:00
Gregory John Casamento
74049ce6bc Added NSPSMatrix private class, added GS specific keys to NSProgressIndicator for info that GS encodes, but Cocoa doesn't. All GS specific keys shall have GS* as the prefix. Implemented encodeWithCoder: in NSTableColumn and corrected NSTable encoding to correct problems during IB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23265 72102866-910b-0410-8b05-ffd578937521
2006-08-12 22:44:56 +00:00
Fred Kiefer
f2beece4f3 Small clean ups in NSView, NSTableView and the headers included in
AppKit.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23257 72102866-910b-0410-8b05-ffd578937521
2006-08-11 20:04:53 +00:00
Fred Kiefer
ccc72cc74f Moved tracking code from controll to cell class to allow the use in a
matrix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23255 72102866-910b-0410-8b05-ffd578937521
2006-08-11 14:08:32 +00:00
Gregory John Casamento
bad637ff8e Correct memory issue with NSClassSwapper, encode control view in the action cell, add comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23249 72102866-910b-0410-8b05-ffd578937521
2006-08-11 05:53:28 +00:00
Fred Kiefer
75d5b070c1 Simplified NSControls mouseDown: method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23248 72102866-910b-0410-8b05-ffd578937521
2006-08-10 21:54:18 +00:00
Gregory John Casamento
cd1a7a04cd Update changelog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23228 72102866-910b-0410-8b05-ffd578937521
2006-08-09 06:29:16 +00:00
Gregory John Casamento
59eedc6dac Correct encoding of repeat and delay, since they are encoded as ints.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23227 72102866-910b-0410-8b05-ffd578937521
2006-08-09 06:27:58 +00:00
Gregory John Casamento
78bbf9e972 Implement encoding for these objects and correct issue with font size encoding. It was encoded/decoded as an int when it should have been a float.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23226 72102866-910b-0410-8b05-ffd578937521
2006-08-09 05:48:54 +00:00
Gregory John Casamento
84d0296b74 Correction for GSNibCompatibility. Added coding to classes for keyed archiving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23225 72102866-910b-0410-8b05-ffd578937521
2006-08-09 01:37:32 +00:00
Fred Kiefer
dc4a427c47 Clean up of NSStepper and NSStepperCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23224 72102866-910b-0410-8b05-ffd578937521
2006-08-08 23:14:14 +00:00
Fred Kiefer
6bbbc9a062 Adopted setBordered: and setBezeled: to Cocoa documentation to always
switch off the other setting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23212 72102866-910b-0410-8b05-ffd578937521
2006-08-07 15:41:11 +00:00
Gregory John Casamento
48db9c7614 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
Gregory John Casamento
3db08e83f6 Encode item and title of menu, so that it will show in the nib.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23206 72102866-910b-0410-8b05-ffd578937521
2006-08-05 13:08:53 +00:00
Gregory John Casamento
fb8609cf7a Don't encode the superview when encoding the contentView of a window, since it can be a subview of the GS decoration views. Correct type for visibleWindows, should be NSArray, not NSSet.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23204 72102866-910b-0410-8b05-ffd578937521
2006-08-05 12:46:20 +00:00
Fred Kiefer
d0d68dd618 Corrected bug #17096, setting of typing attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23183 72102866-910b-0410-8b05-ffd578937521
2006-07-20 22:32:41 +00:00
Gregory John Casamento
6462d48f4a Added better error message to initWithCoder in GSNibContainer and also added code in GSNibCompatibility to fix superview and window settings after a window is loaded in the nib file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23180 72102866-910b-0410-8b05-ffd578937521
2006-07-19 03:16:49 +00:00
Eric Sersale
06fed61392 * Headers/AppKit/NSHelpManager.h:
* Source/NSHelpManager.m:
  added -setContextHelp:forObject: as specified in Apple docs;
  -setContextHelp:withObject: deprecated. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23174 72102866-910b-0410-8b05-ffd578937521
2006-07-17 12:03:15 +00:00
Eric Sersale
acf57e2b37 * Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h: added -buttonAction:
method.
* Source/GSHelpManagerPanel.m: implemented -buttonAction:.
added a button to close the panel and changed the style mask of the window 
to NSTitledWindowMask | NSResizableWindowMask.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23171 72102866-910b-0410-8b05-ffd578937521
2006-07-16 13:32:01 +00:00
Eric Sersale
30dc6bf85a * Headers/AppKit/AppKit.h: added NSHelpManager.h.
* Headers/AppKit/NSHelpManager.h: declaration for new method -pathForHelpResource:
  * Source/NSHelpManager.m: implemented -pathForHelpResource: in the NSBundle 
  category. -pathForHelpResource: looks for help files giving the priority
  to localized resources. 
  -showHelp: looks for rtfd files too.
  * Source/GSHelpManagerPanel.m: various fixes to avoid a crash when quitting
  and to resize correctly the NSTextView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23164 72102866-910b-0410-8b05-ffd578937521
2006-07-15 11:42:02 +00:00
Gregory John Casamento
b718aee750 Added method initWithWindow:.. to initialize the template from an actual window instance.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23162 72102866-910b-0410-8b05-ffd578937521
2006-07-14 05:18:08 +00:00
Gregory John Casamento
6dc3d8fd4b Keyed encoding changes in initWithCoder:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23155 72102866-910b-0410-8b05-ffd578937521
2006-07-10 04:13:13 +00:00
Gregory John Casamento
f4032747d3 GSNibContainer version 2 changes. New method declarations for customClasses, visibleWindows and deferredWindows. Changes to init, initWithCoder: and encodeWithCoder: to handle the new data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23150 72102866-910b-0410-8b05-ffd578937521
2006-07-09 14:54:51 +00:00
Gregory John Casamento
53ca2a14c2 Prevent initWithCoder: from calling initWithFrame: in NSView. According to the documentation, initWithFrame: should not be called when the view is unarchiving itself. Similar changes were needed in other classes since they depended on this call to initialize themselves, so some init code was added to initWithCoder:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23143 72102866-910b-0410-8b05-ffd578937521
2006-07-07 01:39:16 +00:00
Richard Frith-MacDonald
b0af40b1cb Fix stupid error in last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23131 72102866-910b-0410-8b05-ffd578937521
2006-07-05 08:02:12 +00:00
Richard Frith-MacDonald
54847b2b13 Add some pointless initialisations to satisfy compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23130 72102866-910b-0410-8b05-ffd578937521
2006-07-05 07:09:43 +00:00