Commit graph

6009 commits

Author SHA1 Message Date
Gregory John Casamento
d0f9bb18b2 Remove extra unlock
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28218 72102866-910b-0410-8b05-ffd578937521
2009-04-15 01:04:49 +00:00
Gregory John Casamento
8c7e1cfe81 Remove one level of locking and add a function to handle the lock and unlock.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28217 72102866-910b-0410-8b05-ffd578937521
2009-04-15 00:54:49 +00:00
Gregory John Casamento
77c8b9e65f Changes to eliminate "can't unlock" issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28215 72102866-910b-0410-8b05-ffd578937521
2009-04-14 21:43:15 +00:00
Gregory John Casamento
d0f77859d4 set cacheLock to nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28212 72102866-910b-0410-8b05-ffd578937521
2009-04-13 20:33:19 +00:00
Gregory John Casamento
20256bd6e8 Changes to lock the areas in NSStringDrawing to allow multithreaded apps to work properly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28211 72102866-910b-0410-8b05-ffd578937521
2009-04-13 20:31:44 +00:00
Gregory John Casamento
b51240bb69 Changes to make the text system threadsafe.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28208 72102866-910b-0410-8b05-ffd578937521
2009-04-13 01:42:28 +00:00
Gregory John Casamento
58a04f1773 Changes to allow threadsafety in the text system.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/text_system_threadsafety@28207 72102866-910b-0410-8b05-ffd578937521
2009-04-13 01:41:28 +00:00
Gregory John Casamento
6cc478a8ed * Source/GSWindowDecorationView.m: initialize offsets to prevent
negative value warnings suggested by Doug.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28206 72102866-910b-0410-8b05-ffd578937521
2009-04-12 23:17:49 +00:00
Gregory John Casamento
b9a8ff0a46 * Source/NSSearchFieldCell.m: Correct issue displaying images for
search field.  Fix in initWithCoder: to reset image names.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28205 72102866-910b-0410-8b05-ffd578937521
2009-04-12 23:13:02 +00:00
Fred Kiefer
82aa5286ac New method used by Apple NIB files.
Patch by Doug Simons <doug@riverrock.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28204 72102866-910b-0410-8b05-ffd578937521
2009-04-11 20:28:08 +00:00
Gregory John Casamento
fad769e84d * Source/NSApplication.m: Follow the NSApplication responder
chain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28202 72102866-910b-0410-8b05-ffd578937521
2009-04-10 19:30:05 +00:00
Gregory John Casamento
cdbc241fc0 * Source/NSSplitView.m: Set subviews to resize when loaded from
the nib. 
	* Source/NSView.m: Partial revert of previous change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28201 72102866-910b-0410-8b05-ffd578937521
2009-04-10 19:00:20 +00:00
Gregory John Casamento
92efd93b0c Minor correction to previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28200 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:30:19 +00:00
Gregory John Casamento
f3df11134c * Source/NSView.m: Autoresize subviews since it is not pulling it
from the nib correctly.  Will come back and fix this issue.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28199 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:29:22 +00:00
Gregory John Casamento
900a2f4040 Resize the subviews of the splitview.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28198 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:05:19 +00:00
Gregory John Casamento
4828cb7684 * Source/NSTabView.m: Autoresize subviews when loaded from the nib
and set the mask to the make height and width resizable when the
	tab is selected


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28197 72102866-910b-0410-8b05-ffd578937521
2009-04-10 18:03:45 +00:00
Gregory John Casamento
457b3b3dd8 * Source/NSDrawer.m: Correction for NSDrawer issues with draw
temporarily showing up above the window and not syncing with
	window position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28196 72102866-910b-0410-8b05-ffd578937521
2009-04-10 17:30:54 +00:00
Gregory John Casamento
1df5bfe839 * Source/NSAlert.m: in the method _initWithoutGModel add a call
to setLevel: to set the level to NSModalPanelWindowLevel.   This was
	not previously being done and was causing alert panels to get lost 
	behind other application windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28195 72102866-910b-0410-8b05-ffd578937521
2009-04-10 14:25:20 +00:00
Gregory John Casamento
cf119063e9 * Source/NSMenuView.m: Removed adjustment to Y coords in the
setWindowFrame... method.  This adjustment is only supposed to be
	done when a popup is under "restrictive screen conditions" which
	is currently unimplemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28191 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:33:14 +00:00
Gregory John Casamento
f5a5223ac1 * Source/NSMenuView.m: In the method
- (void) setWindowFrameForAttachingToRect:... test if the view
	is flipped and make the adjustment.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28190 72102866-910b-0410-8b05-ffd578937521
2009-04-10 05:15:24 +00:00
Gregory John Casamento
59d5a9818b * Source/NSMenuView.m: In the method
- (void) setWindowFrameForAttachingToRect:... changed how
	popup/pulldown buttons handle the preferred edge.
	Per Cocoa documentation, the selected cell should always show up
	over the button for popups.   For pull down menus, the preferred 
	edge is relevant.   This is also apparent from testing under Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28189 72102866-910b-0410-8b05-ffd578937521
2009-04-10 04:54:24 +00:00
Gregory John Casamento
b49179235d * Source/NSRulerMarker.m: Changes suggested by Doug Simons for
allowing markers to be set on an NSMouseDown event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28188 72102866-910b-0410-8b05-ffd578937521
2009-04-10 02:55:34 +00:00
Gregory John Casamento
6bd3b14d85 * Source/NSDocumentController.m: Return default type if the
URL is not a file URL and the call to typeFromFileExtension: returns
	nil in typeForContentsOfURL:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28187 72102866-910b-0410-8b05-ffd578937521
2009-04-08 02:24:27 +00:00
Gregory John Casamento
343999460b * Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar.
* Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU.
	* Source/NSPasteboard.m: Retain the path since it's autoreleased.
	* Source/NSTextView.m: Set the textview to allow undos by default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521
2009-04-07 22:52:52 +00:00
Fred Kiefer
d93155a768 Correct the calling of the delegate methods in the alert sheet
functions. Should fix #26101.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28185 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:54:41 +00:00
Fred Kiefer
61d7e0d4fe Add 10.5 methods and new ivar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28184 72102866-910b-0410-8b05-ffd578937521
2009-04-07 20:16:53 +00:00
Sergii Stoian
2c1370226f * Source/NSSplitView.m (-mouseDown:): When checking if divider
position also check orientaion for _isVertical == NO situation.
This fix avoids situation when split view is vertical, postion
changed but method exists after next 'else if' check.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28181 72102866-910b-0410-8b05-ffd578937521
2009-04-06 21:55:04 +00:00
Fred Kiefer
5215126ca7 Fix a differnace to Cocoa and warn about another one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28135 72102866-910b-0410-8b05-ffd578937521
2009-03-26 22:37:47 +00:00
Fred Kiefer
b9b3df0631 Try to deal with the case when there is no current context.
May happen in secondard threads. Fixes #25943.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28133 72102866-910b-0410-8b05-ffd578937521
2009-03-25 08:40:38 +00:00
Fred Kiefer
48f6a535ad Set values for minSize, maxSize, horizontallyResizable and verticallyResizable
in the initializers consistently.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28132 72102866-910b-0410-8b05-ffd578937521
2009-03-25 08:14:30 +00:00
Gregory John Casamento
1a50756c33 * Source/NSSpeechSynthesizer.[hm]: Add code to tell the developer
that certain methods need to be overriden.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28124 72102866-910b-0410-8b05-ffd578937521
2009-03-23 16:23:46 +00:00
Gregory John Casamento
67c5bccd17 * Headers/AppKit/AppKit.h: Add include for NSSpeechSynthesizer.h
* Headers/AppKit/NSSpeechSynthesizer.h: Declarations.
	* Source/GNUmakefile: Add new files.
	* Source/NSSpeechSynthesizer.m: Add initial skeleton for
	NSSpeechSynthesizer class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28121 72102866-910b-0410-8b05-ffd578937521
2009-03-23 06:36:50 +00:00
Gregory John Casamento
bcdfa175b7 * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
connection to _doneButton outlet.
	* Source/GSToolbarCustomizationPalette.m: Added code in init
	to set the state of the size checkbox.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28120 72102866-910b-0410-8b05-ffd578937521
2009-03-23 03:57:50 +00:00
Gregory John Casamento
37efe84aac Changes for size mode support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28113 72102866-910b-0410-8b05-ffd578937521
2009-03-21 16:34:15 +00:00
Gregory John Casamento
405c40fedc * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Changed
formatting.  Added text field and buttons.
	* Source/GSToolbarCustomizationPalette.m: Added reset button and
	done button. 
	* Source/NSToolbarFrameworkPrivate.h: Added _resetConfig method.
	* Source/NSToolbar.m: Added _resetConfig method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28112 72102866-910b-0410-8b05-ffd578937521
2009-03-21 16:14:46 +00:00
Gregory John Casamento
56c852e9be * Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
Default item to popup and make the connection to the show: method
	to allow setting the toolbar display mode.
	* Source/GSToolbarCustomizationPalette.m: Enable changing of
	text, text & icon, icon only on the toolbar.   
	* Source/NSToolbar.m: Change _build method to load the 
	displayMode setting. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28110 72102866-910b-0410-8b05-ffd578937521
2009-03-21 14:23:41 +00:00
Richard Frith-MacDonald
c15df7fc8b make url loading easier
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28106 72102866-910b-0410-8b05-ffd578937521
2009-03-20 10:17:29 +00:00
Fred Kiefer
1878af00d9 Don't reference ivar after the object has been freed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28105 72102866-910b-0410-8b05-ffd578937521
2009-03-20 09:52:06 +00:00
Richard Frith-MacDonald
d115384ecc Extend tool to open URLs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28104 72102866-910b-0410-8b05-ffd578937521
2009-03-20 09:35:42 +00:00
Fred Kiefer
d8d8156943 Fix inconsitency in NSScrollView decoding that led to uninitialized
memory being used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28103 72102866-910b-0410-8b05-ffd578937521
2009-03-20 08:58:07 +00:00
Fred Kiefer
e1ae97f125 Fix small memory access bug found by valgrind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28102 72102866-910b-0410-8b05-ffd578937521
2009-03-20 07:55:25 +00:00
Richard Frith-MacDonald
bf45641a25 open some app that suppots the URL scheme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28094 72102866-910b-0410-8b05-ffd578937521
2009-03-18 16:12:37 +00:00
Fred Kiefer
bc7a00e00b Add parentheses to stop compiler from complaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28091 72102866-910b-0410-8b05-ffd578937521
2009-03-18 09:21:51 +00:00
Gregory John Casamento
a74a5f8ffd * Source/GSToolbarView.m: Added code to save the configuration when
deleting an item as well as saving an item.
	* Source/NSToolbarFrameworkPrivate.h: removed old _loadConfig method
	added new methods to track changes to toolbars.
	* Source/NSToolbar.m: Added check for items already in the toolbar,
	removed calls to _loadConfig which were commented out, implemented
	setConfigurationFromDictionary: as described in the documentation,
	changed _build to get dictionary from defaults if it's there. 
	Implemented new method _containsItemWithIdentifier: and 
	_itemsFromConfig.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28084 72102866-910b-0410-8b05-ffd578937521
2009-03-16 07:33:31 +00:00
Gregory John Casamento
6f3f7be33c Fixes to correct issues with toolbar pallete customization.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28083 72102866-910b-0410-8b05-ffd578937521
2009-03-16 05:25:22 +00:00
Gregory John Casamento
f4571a026a Fix for infinite notification loop which occurs with some nib files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28082 72102866-910b-0410-8b05-ffd578937521
2009-03-16 02:38:54 +00:00
Gregory John Casamento
e4fcef380e Use new flags in initWithCoder:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28081 72102866-910b-0410-8b05-ffd578937521
2009-03-16 02:10:38 +00:00
Gregory John Casamento
748f579ecf Add more flags for nib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28080 72102866-910b-0410-8b05-ffd578937521
2009-03-16 00:28:39 +00:00
Gregory John Casamento
73fea24d38 Minor cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28078 72102866-910b-0410-8b05-ffd578937521
2009-03-15 19:21:57 +00:00
Gregory John Casamento
4c02515e9e * Source/NSScrollView.m: Remove FIXME comment and provided an
explaination for why a cast wasn't used.   Added nonDynamic flag
	as well as other flags from the nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28077 72102866-910b-0410-8b05-ffd578937521
2009-03-15 19:19:55 +00:00