Commit graph

6027 commits

Author SHA1 Message Date
Gregory John Casamento
a145faad11 Added fix suggested by George.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28375 72102866-910b-0410-8b05-ffd578937521
2009-06-29 03:47:10 +00:00
Fred Kiefer
48a1be38fa Add more implementation to NSObjectController.
Patch by Andy Balholm <andy@balholm.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28374 72102866-910b-0410-8b05-ffd578937521
2009-06-28 23:09:50 +00:00
Fred Kiefer
ca5161d0a1 Add NSFontDescriptor.h to AppKit.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28373 72102866-910b-0410-8b05-ffd578937521
2009-06-28 21:48:47 +00:00
Fred Kiefer
988c2a8a8b Retain the shared user defaults controller before returning it in
initWithCoder:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28368 72102866-910b-0410-8b05-ffd578937521
2009-06-21 22:35:23 +00:00
Fred Kiefer
8ed4d5e90e Small bug fixes for NSKeyValueBinding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28367 72102866-910b-0410-8b05-ffd578937521
2009-06-21 22:21:26 +00:00
Gregory John Casamento
0f6d7e890d * Headers/AppKit/NSSpeechSynthesizer.h:
* Source/NSSpeechSynthesizer.m: Implementation of
	NSSpeechSynthesizer.  
	Patch by David Chisnall <theraven@sucs.org>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28327 72102866-910b-0410-8b05-ffd578937521
2009-06-05 22:26:09 +00:00
Fred Kiefer
053c28aa92 Check whether there is a returned save panel, this wont be the case
when the user cancels the save operation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28321 72102866-910b-0410-8b05-ffd578937521
2009-06-02 21:40:07 +00:00
Fred Kiefer
a8ecb0c14a Replace a call to a now longer existing extension on NSInvocation
with the correct method calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28312 72102866-910b-0410-8b05-ffd578937521
2009-05-31 15:48:49 +00:00
Fred Kiefer
4aa1fb4c5e Make sure the static variable windowmaps is always initialized before
using it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28311 72102866-910b-0410-8b05-ffd578937521
2009-05-31 15:30:03 +00:00
Gregory John Casamento
039f0c39b0 * Source/NSWorkspace.m: Improve handling of CFBundleType...
constants in the private method _extIconForApp:info:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28297 72102866-910b-0410-8b05-ffd578937521
2009-05-24 02:17:05 +00:00
Gregory John Casamento
4991a29743 * Source/GSStandardWindowDecorationView.m: Live window resize changes
for when using GNUstep decorations in resizeWindowStartingWithEvent:.
	* Source/NSLayoutManager.m: Unarchive the text containers into an 
	array in initWithCoder:.
	* Source/NSTextContainer.m: Get the layout manager in initWithCoder:.
	* Source/NSTextView.m: Changes to include text container from nib
	file into the nib loading process in initWithCoder:.   


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28296 72102866-910b-0410-8b05-ffd578937521
2009-05-23 15:50:51 +00:00
Nicolas Roard
242eb12644 Add a live resize for splitviews. Users can revert to the old behaviour
by doing: defaults write NSGlobalDomain GSUseGhostResize YES


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28291 72102866-910b-0410-8b05-ffd578937521
2009-05-22 01:20:07 +00:00
Riccardo Mottola
448d898622 fixed allocation of NSMutableArray
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28284 72102866-910b-0410-8b05-ffd578937521
2009-05-14 23:21:05 +00:00
Gregory John Casamento
7f6ee7d9fd Initial changes for sheet implementation. More to come.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28283 72102866-910b-0410-8b05-ffd578937521
2009-05-14 22:17:48 +00:00
Adam Fedor
90de622eae Versino 0.17.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28275 72102866-910b-0410-8b05-ffd578937521
2009-05-10 20:54:58 +00:00
Fred Kiefer
b3906a84f2 Get buttons for GSTitleView from NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28264 72102866-910b-0410-8b05-ffd578937521
2009-05-01 22:54:11 +00:00
Fred Kiefer
70fe7f2bb0 * Source/NSBezierPath.m (-appendBezierPathWithRoundedRect:xRadius:yRadius:):
Small rearangment of code.
Patch by Fred Morcos <fred.morcos@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28254 72102866-910b-0410-8b05-ffd578937521
2009-04-27 13:12:25 +00:00
Fred Kiefer
345f77f374 * Headers/AppKit/NSBezierPath.h,
* Source/NSBezierPath.m
* (+bezierPathWithRoundedRect:xRadius:yRadius:, -appendBezierPathWithRoundedRect:xRadius:yRadius:):
New 10.5 methods.
Patch by Fred Morcos <fred.morcos@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28247 72102866-910b-0410-8b05-ffd578937521
2009-04-25 12:38:15 +00:00
Richard Frith-MacDonald
05a515f767 fix for #26277
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28244 72102866-910b-0410-8b05-ffd578937521
2009-04-24 07:44:09 +00:00
Gregory John Casamento
144289ad4e * Headers/AppKit/NSSearchFieldCell.h: Give the values assigned in
Cocoa to the enum.  Patch by: doug@riverrock.org
	* Source/NSSearchFieldCell.m: Implemented search menu template and
	recent items.  Patch by: doug@rivverrock.org
	* Source/NSSearchField.m: Call cell methods to use search menu.
	Patch by: doug@riverrock.org


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28233 72102866-910b-0410-8b05-ffd578937521
2009-04-19 04:50:04 +00:00
Gregory John Casamento
80a3c7d56e * Source/NSApplication.m: Make certain that a sheet is always placed
above the window it's supposed to appear relative to.   Change
	to runModalForWindow:relativeToWindow:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28232 72102866-910b-0410-8b05-ffd578937521
2009-04-19 04:23:34 +00:00
Gregory John Casamento
8369481079 * Source/NSScrollView.m: If the scrollview has scrollers,
don't pay attention to the hidden flag in nib loading.
	* Source/NSTableView.m: if the table has a cornerview, don't
	pay attention to the hidden flag in nib loading.  
	NOTE: In both instances it appears that Cocoa sets the hidden flag 
	when autohide is set to true.   GNUstep handles this case differently,
	so it's okay to ignore this flag when the scroller is in an
	NSScrollView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28231 72102866-910b-0410-8b05-ffd578937521
2009-04-19 03:23:11 +00:00
Gregory John Casamento
e66027b906 Revert previous change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28225 72102866-910b-0410-8b05-ffd578937521
2009-04-16 20:05:32 +00:00
Gregory John Casamento
28b6cc14d0 Correct issue with sheets/panels appearing beneath other modal panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28224 72102866-910b-0410-8b05-ffd578937521
2009-04-16 19:02:30 +00:00
Gregory John Casamento
e1afb724d2 * Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
the instance of the typesetter for that thread.
	* Source/NSStringDrawing.m: Add locks to methods to prevent modification
	of static variables by separate threads from causing the application
	to get glyph generation errors.
	NOTE: These changes based on suggestions/ideas from Doug 
	Simons <doug@riverrock.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28219 72102866-910b-0410-8b05-ffd578937521
2009-04-15 01:27:42 +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