Commit graph

459 commits

Author SHA1 Message Date
Eric Wasylishen
346f604cb7 * Source/NSWindow.m: Remove unnecessary FIXMEs related to
user space scale factor
* Source/NSAppliation.m: Correct app icon sizing which was
mixing up window frame coordinates and user space coordinates
* Source/NSCachedImageRep.m: Add NSUnscaledWindowMask to the
window used internally


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32897 72102866-910b-0410-8b05-ffd578937521
2011-04-19 08:23:01 +00:00
Germán Arias
2466b5cf58 Miniaturize all windows if the AppIcon is suppressed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32740 72102866-910b-0410-8b05-ffd578937521
2011-03-29 18:26:11 +00:00
Fred Kiefer
b7d056ae43 Removed dead assignments found by static code analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32551 72102866-910b-0410-8b05-ffd578937521
2011-03-13 15:26:20 +00:00
Fred Kiefer
2d01942e4b 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
Wolfgang Lux
e8de70e645 Add user default to allow placing app icons and mini windows at normal
window level. This is particularly convenient with some window
managers (*cough*, kwin) where application and pop up menus would be
obscured by dock level windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32165 72102866-910b-0410-8b05-ffd578937521
2011-02-14 22:25:57 +00:00
Wolfgang Lux
3da944c1dd Fix application termination behavior by sending a message to the
document controller to let the user review any unsaved changes in its
managed documents before asking the application delegate whether its
okay to terminate the application. This matches Cocoa's documented and
implemented behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31957 72102866-910b-0410-8b05-ffd578937521
2011-01-27 20:32:01 +00:00
Wolfgang Lux
92601d85d8 Look up key equivalents in the Services menu only after traversing
rest of the main menu to avoid accidentally shadowing key equivalents
in the application's own menus.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31902 72102866-910b-0410-8b05-ffd578937521
2011-01-17 09:02:30 +00:00
Gregory John Casamento
fd4d577fa7 * Source/NSApplication.m: Added overide for orderWindow:relativeTo:
in NSIconWindow.  Check for GSSuppressAppIcon and order the window
	ONLY if the app icon window is supposed to be displayed, otherwise
	do not do anything with it.   I observed issues with this
	functionality while testing the GNOME theme the app icon would 
	periodically show even when the default mentioned above was set to 
	YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31898 72102866-910b-0410-8b05-ffd578937521
2011-01-16 05:22:10 +00:00
Germán Arias
f999016f34 Applied changes in menuInWindow.patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31895 72102866-910b-0410-8b05-ffd578937521
2011-01-16 00:32:54 +00:00
Wolfgang Lux
ba39755f4a Provide a default context menu for application icons when using
Macintosh or Windows 95 style menus. Inspired by OS X, the menu
contains items to hide or show the application, to terminate the
application, an item for each window present in the application's
window menu, and the items of the dock menu returned by the
application delegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31892 72102866-910b-0410-8b05-ffd578937521
2011-01-15 14:36:38 +00:00
Wolfgang Lux
9464856dfe Insert window menu items strictly at the bottom of the menu, keeping
only items with actions -performMiniaturize: and -performClose:
beneath them. This allows having additional items at the top of the
menu and works better for window menus that follow the Mac OS X UI
guidelines and have miniaturize and zoom commands at the top and
arrange in front below them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31891 72102866-910b-0410-8b05-ffd578937521
2011-01-15 14:19:24 +00:00
Germán Arias
bf270ebcfb Fixed the behaviour of menu in window when hide the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31859 72102866-910b-0410-8b05-ffd578937521
2011-01-09 06:10:02 +00:00
Wolfgang Lux
90dc44a8f6 Don't make an invisible window main window in NSApplication
-finishLaunching when the application has no main window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31715 72102866-910b-0410-8b05-ffd578937521
2010-12-07 08:00:43 +00:00
Wolfgang Lux
4e19857788 Open a new document when a document based application is launched if
the delegate responds YES to applicationShouldOpenUntitledFile: but
does not implement applicationOpenUntitledFile:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31506 72102866-910b-0410-8b05-ffd578937521
2010-10-13 13:36:44 +00:00
Fred Kiefer
d08b23d9b0 First batch of corrections based on David's static analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31337 72102866-910b-0410-8b05-ffd578937521
2010-09-12 16:34:22 +00:00
Eric Wasylishen
26fcda321b Replace sel_eq with sel_isEqual
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31285 72102866-910b-0410-8b05-ffd578937521
2010-09-09 23:50:38 +00:00
Wolfgang Lux
b2311f4138 Change the Arrange in Front command to order only the application's
non-miniaturized windows front and not deminiaturize any miniaturized
windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31103 72102866-910b-0410-8b05-ffd578937521
2010-08-09 21:03:20 +00:00
Wolfgang Lux
8b3c88167f Do not attempt to open an untitled document upon launching a document
based application that does not define an editor type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30535 72102866-910b-0410-8b05-ffd578937521
2010-06-01 21:36:51 +00:00
Fred Kiefer
99e273a57d few compiler warning fixes plus a lot of #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
Gregory John Casamento
3cdbf7591f * Source/NSApplication.m: Attempt to open files from the command
line, if possible in -finishLaunching.  This matches the behavior
	seen on OpenStep and on Mac OS X/Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30407 72102866-910b-0410-8b05-ffd578937521
2010-05-17 08:29:55 +00:00
Quentin Mathe
5285361395 Moved the main Nib file loading from -finishLaunching to NSApplicationMain() in
order to match Cocoa behavior/documentation.

This makes easier to implement a custom AppKit main that works with both Cocoa 
and GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30398 72102866-910b-0410-8b05-ffd578937521
2010-05-16 13:56:50 +00:00
Doug Simons
ce29b8d726 protect changedMessagesEnabled flag; update menus after modal session, key or main window change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29891 72102866-910b-0410-8b05-ffd578937521
2010-03-09 23:11:40 +00:00
Fred Kiefer
c05581a005 Fix up teh includes to compile again after latest changes to base. Still
plenty of warnings and the result isn't working at least on 64 bit
machines :-(


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29685 72102866-910b-0410-8b05-ffd578937521
2010-02-20 10:40:44 +00:00
Fred Kiefer
43074e4a62 Start cleanup after big base change. Remove the usage of extension
methods.
New 10.5 methods on NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29656 72102866-910b-0410-8b05-ffd578937521
2010-02-17 09:58:38 +00:00
Wolfgang Lux
1ace430690 Send -applicationShouldTerminateAfterLastWindowClosed: to the delegate
only after a short delay so that all observers can process the
NSWindowWillCloseNotification. This ensures that a modified document
associated with the closed window has been closed before -terminate:
is called and therefore the user isn't asked twice whether she wants
to save the unsaved changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29428 72102866-910b-0410-8b05-ffd578937521
2010-01-28 00:10:42 +00:00
Quentin Mathe
dc80819ab4 Dispatch drag events with -[NSApp sendEvent:] and make each synthetized drag
event the current event in order to be consistent with Mac OS X behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29418 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:21:13 +00:00
Gregory John Casamento
205498d887 * Source/NSApplication.m: For hide: perform miniaturizeAll:
on Windows, since hiding the app causes it to be inaccessible on 
	that platform.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29281 72102866-910b-0410-8b05-ffd578937521
2010-01-14 12:06:35 +00:00
Fred Kiefer
fc783c92d6 Patch by German Arias <german@xelalug.org>.
Allows to get icon placement from separate process.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29153 72102866-910b-0410-8b05-ffd578937521
2009-12-21 17:27:56 +00:00
Riccardo Mottola
cacdad6f44 Only add windows that are either visible or miniaturized.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29117 72102866-910b-0410-8b05-ffd578937521
2009-12-12 10:10:40 +00:00
Richard Frith-MacDonald
8a7cfaf918 fix drawing bug when number of rows decreases
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29065 72102866-910b-0410-8b05-ffd578937521
2009-11-26 20:33:44 +00:00
David Chisnall
bf300b6950 Replaced two superfluous NSInvocation construction occurrences with direct calls to the IMP in question. According to Riccardo 'it is really snappier in most user operations'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29050 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:01:23 +00:00
Richard Frith-MacDonald
a518eeea1c revert accidental change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29045 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:43:02 +00:00
Richard Frith-MacDonald
47f9930e07 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:36:46 +00:00
Fred Kiefer
2da5479a9e Small change for bug #27309 and a helper function for GSTaskBar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28974 72102866-910b-0410-8b05-ffd578937521
2009-11-08 16:12:04 +00:00
Fred Kiefer
2cd86dee14 Only set the current event when dequeuing and never return the
null_event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28938 72102866-910b-0410-8b05-ffd578937521
2009-11-02 12:13:59 +00:00
Richard Frith-MacDonald
1c8cd6a0c4 Fixups to avoid crashes opening non-document-based apps.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28844 72102866-910b-0410-8b05-ffd578937521
2009-10-19 10:03:03 +00:00
Richard Frith-MacDonald
d2e616cb73 minor fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28843 72102866-910b-0410-8b05-ffd578937521
2009-10-19 07:44:22 +00:00
Richard Frith-MacDonald
161d6e03e7 fix for activation with suppressed icon window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28837 72102866-910b-0410-8b05-ffd578937521
2009-10-18 08:02:40 +00:00
Wolfgang Lux
d2f51e9cde When using MS Windows style menus terminate an application by default
when its last window is closed.
In addition, fix a bug where the application was not terminated when
the last window is closed while the application is in the background.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28834 72102866-910b-0410-8b05-ffd578937521
2009-10-17 17:09:36 +00:00
Wolfgang Lux
65f8f0a588 Improve compatibility with Mac OS X and open a new document by default
when a document based application is started and there is no file to
open.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28833 72102866-910b-0410-8b05-ffd578937521
2009-10-17 17:01:24 +00:00
Richard Frith-MacDonald
c72cc49307 Partial code for using miniaturised app icon to unhide a hidden app.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28832 72102866-910b-0410-8b05-ffd578937521
2009-10-17 15:18:26 +00:00
Richard Frith-MacDonald
11ad2da52b Suppress app icon window by simply not ordering it in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28831 72102866-910b-0410-8b05-ffd578937521
2009-10-17 05:35:56 +00:00
Sheldon Gill
32c94cae17 Centralise GSGuiBundle() routine
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28830 72102866-910b-0410-8b05-ffd578937521
2009-10-17 05:05:35 +00:00
Sheldon Gill
24a12e840f Move defaultExceptionHandler initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28829 72102866-910b-0410-8b05-ffd578937521
2009-10-17 04:56:22 +00:00
Fred Kiefer
2c18d466d2 Use NSModalPanelRunLoopMode instead of NSDefaultRunLoopMode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28815 72102866-910b-0410-8b05-ffd578937521
2009-10-12 18:29:41 +00:00
Richard Frith-MacDonald
23c6ece351 fix to get open panels working again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28801 72102866-910b-0410-8b05-ffd578937521
2009-10-11 16:29:03 +00:00
Fred Kiefer
18efe486cc Fix bug #27613. After closing the print option panel via the close
button the application was no longer reacting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28788 72102866-910b-0410-8b05-ffd578937521
2009-10-10 13:56:45 +00:00
Fred Kiefer
0e840e13bb * Source/NSApplication.m (-setApplicationIconImage:,
-finishLaunching): Move the set name code to finishLaunching, as
  the image called NSApplicationIcon should stay the same all the time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28741 72102866-910b-0410-8b05-ffd578937521
2009-09-26 19:28:29 +00:00
Richard Frith-MacDonald
2aa64c58a9 revert last change and do proper fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28652 72102866-910b-0410-8b05-ffd578937521
2009-09-10 11:02:17 +00:00
Gregory John Casamento
41e5c2bf3d * Headers/AppKit/NSWindow.h
* Source/NSApplication.m
	* Source/NSWindow.m: Added ivar for attached sheet back.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28433 72102866-910b-0410-8b05-ffd578937521
2009-08-02 14:16:13 +00:00
Gregory John Casamento
3a16583dcb * Headers/AppKit/NSWindow.h: Comment out _attachedSheet ivar.
* Source/NSAlert.m: Change code to use hightlightWithLevel: method
	in resetWindow method.
	* Source/NSApplication.m: Stub out setAttachedSheet method.
	* Source/NSWindow.m: Remove new ivar for next release and stub out
	attachedSheet method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28415 72102866-910b-0410-8b05-ffd578937521
2009-07-27 16:31:32 +00:00
Gregory John Casamento
c6f4518c9f * Source/NSAlert.m: Offset color by less in -resetWindow. Remove
redundant logic for calling the "didEnd" method in the NSBeginSheet...
	functions.
	* Source/NSApplication.m: Add code to reset parent window in 
	beginSheet:... method.  Also added check to make sure the
	modalDelegate is not nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28411 72102866-910b-0410-8b05-ffd578937521
2009-07-26 02:56:56 +00:00
Gregory John Casamento
0c982ef3eb * Source/NSAlert.m: Remove category for setAttachedSheet method.
* Source/NSApplication.m: Added private category to add 
	setAttachedSheet: to NSWindow.  Modified beginSheet:... method
	to call the new method with the sheet that is associated with it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28410 72102866-910b-0410-8b05-ffd578937521
2009-07-26 00:56:29 +00:00
Gregory John Casamento
6d3b1bd4ce * Source/NSAlert.m: Implementation of GSAlertSheet.
* Source/NSApplication.m: Change order in which setWindowParent:
	and runModalForWindow: are called in beginSheet:... method.
	* Source/NSDrawer.m: Remove notifications when drawer is closed
	in dealloc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28392 72102866-910b-0410-8b05-ffd578937521
2009-07-13 18:12:52 +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
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
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
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
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
10d22d2086 * Source/NSApplication.m (-setApplicationIconImage:): Copy the new
application image before assigning the name "NSApplicationIcon"
to it. This solves bug #25793.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28064 72102866-910b-0410-8b05-ffd578937521
2009-03-11 09:46:59 +00:00
Gregory John Casamento
cfea3dbe6b * Source/NSApplication.m: Fix bug #24643. Application icon is no
stored correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28021 72102866-910b-0410-8b05-ffd578937521
2009-03-02 01:10:23 +00:00
Fred Kiefer
4fae138790 Protect against the app icon being nil. Should fix #25620.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27912 72102866-910b-0410-8b05-ffd578937521
2009-02-18 08:57:22 +00:00
Gregory John Casamento
6bec341a72 * Source/NSApplication.m: Added code to handle exceptions in
-[NSApplication run].  Rudimentary implementation of default
	NSExceptionHandlerMask.

For more on this change, please see the thread on the gnustep-dev list entitled "Allowing Applications to continue after exception...".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27809 72102866-910b-0410-8b05-ffd578937521
2009-02-08 06:40:29 +00:00
Richard Frith-MacDonald
6312db17ff fixups for checiking application icon size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27778 72102866-910b-0410-8b05-ffd578937521
2009-02-04 11:16:05 +00:00
Gregory John Casamento
d0d81bf1b1 * Source/GSNibLoader.m: Correct the message to indicate an issue
loading a nib, not a gorm, file.
	* Source/GSNibLoading.m: Uncomment the release in the dealloc
	method.
	* Source/NSApplication.m: Restrict the icon size to the size of the
	miniwindow if it's larger, but don't expand it, if it's smaller.
	* Source/NSLayoutManager.m: -initWithCoder: Initialize when 
	loading a nib in the same way that we initialize when loading 
	a gorm file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27775 72102866-910b-0410-8b05-ffd578937521
2009-02-04 06:48:06 +00:00
Richard Frith-MacDonald
a6ac3414d3 Fix for #25384
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27733 72102866-910b-0410-8b05-ffd578937521
2009-01-30 13:06:15 +00:00
Wolfgang Lux
f7e864e8ab Make sure toolbar items are validated w.r.t. the responder chain of
their respective window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27627 72102866-910b-0410-8b05-ffd578937521
2009-01-18 15:33:01 +00:00
Richard Frith-MacDonald
c182e9df92 dd a little diagnostic logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27441 72102866-910b-0410-8b05-ffd578937521
2008-12-28 10:58:57 +00:00
Wolfgang Lux
e906e7378d Attempt to perform key equivalents in the key window before the main
menu as on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27359 72102866-910b-0410-8b05-ffd578937521
2008-12-19 23:17:42 +00:00
Gregory John Casamento
21cf915c13 * Source/GSNibLoading.m: Make the log ino debug in awakeFromNib
* Source/NSApplication.m: Allow modal to end multiple times, per spec
        there is no exception for doing this.
        * Source/NSPasteboard.m: Allow multiple threads in pasteboard
        communication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27306 72102866-910b-0410-8b05-ffd578937521
2008-12-16 18:59:26 +00:00
Wolfgang Lux
91f3b7674b Implement NSDocument autosaving.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27288 72102866-910b-0410-8b05-ffd578937521
2008-12-14 16:39:15 +00:00
Richard Frith-MacDonald
7f9939a624 clarify#
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27216 72102866-910b-0410-8b05-ffd578937521
2008-12-06 08:13:13 +00:00
Richard Frith-MacDonald
19b84c87b4 Fix failure to locate tools
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27215 72102866-910b-0410-8b05-ffd578937521
2008-12-06 08:01:09 +00:00
Gregory John Casamento
0f92239a0b * Source/NSApplication.m: Always resize icon to 48x48 so that
icons larger than this will display correctly.  Change made in
	setApplicationIconImage:. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27197 72102866-910b-0410-8b05-ffd578937521
2008-12-03 06:08:12 +00:00
Gregory John Casamento
03d2fc6b14 Fix for bug #24785.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27195 72102866-910b-0410-8b05-ffd578937521
2008-12-03 00:48:42 +00:00
Fred Kiefer
833dedb984 Split up final notification sending into method _didFinishLaunching
to allow supclasses to go between these calls.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27083 72102866-910b-0410-8b05-ffd578937521
2008-11-17 20:52:24 +00:00
Wolfgang Lux
edd9b4a68a Make NSApplication's responder chain for action messages consistent
with Apple's documentation and the Mac OS X implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27008 72102866-910b-0410-8b05-ffd578937521
2008-11-05 22:05:58 +00:00
Fred Kiefer
2b3ec299c9 In NSMenu compare target for identity not equality.
Decoding and encoding for NSWindowController.
Extend the responder chain of a window beyond itself.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26959 72102866-910b-0410-8b05-ffd578937521
2008-10-24 07:59:42 +00:00
Fred Kiefer
b6e2a9c2c2 Improved mini window handling. Patch by Hubert Chathi
<hubert@uhoreg.ca>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26810 72102866-910b-0410-8b05-ffd578937521
2008-08-15 06:45:17 +00:00
Gregory John Casamento
118d6d20f0 * Source/NSApplication.m: Removed icns string addition to rely on
NSImage code to find the image.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26808 72102866-910b-0410-8b05-ffd578937521
2008-08-14 02:21:15 +00:00
Gregory John Casamento
bfde86fcd5 * Source/NSApplication.m: Add logic to load the icns if it's specified
as the icon file for an application.
	* Source/NSBitmapImageRep+ICNS.m: Limit the size of the representation
	to the 48x48 version. 

In the future I would like GNUstep to take full advantage of this format and display the representation which is most appropriate for a given size.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26806 72102866-910b-0410-8b05-ffd578937521
2008-08-13 01:54:23 +00:00
Adam Fedor
7afdd32ac1 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
Fred Kiefer
c439e20394 Make sure the application terminates when neither a delegate is set, nor
it is a document based application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26390 72102866-910b-0410-8b05-ffd578937521
2008-03-29 13:08:35 +00:00
Richard Frith-MacDonald
1007fd1273 Hopefully clear up some confusion about NSApplicationTerminateReply
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26375 72102866-910b-0410-8b05-ffd578937521
2008-03-26 16:00:51 +00:00
Riccardo Mottola
3d3b665f6a changed terminate type to BOOL since it is one and the value froma delegate got wrongly cast
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26307 72102866-910b-0410-8b05-ffd578937521
2008-03-16 01:02:52 +00:00
Fred Kiefer
b06abb1fc1 ne more correction, this time it is really main not key that gets set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25672 72102866-910b-0410-8b05-ffd578937521
2007-12-03 19:15:33 +00:00
Fred Kiefer
ba817248fe Corrected last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25671 72102866-910b-0410-8b05-ffd578937521
2007-12-03 19:09:30 +00:00
Fred Kiefer
36c066e994 Make sure there is a main window when starting up.
Correct view image caching.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25670 72102866-910b-0410-8b05-ffd578937521
2007-12-03 19:00:12 +00:00
Fred Kiefer
1906ff781f Avoid call cycles when terminating an application.
Better NIB loading and object awakening.
Remove compiler warning caused by previous change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25614 72102866-910b-0410-8b05-ffd578937521
2007-11-27 00:09:24 +00:00
Fred Kiefer
193e31e678 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
Fred Kiefer
1a13f90156 Leave the focus transfer when a window closes to the window not the
application and improve the code there.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25420 72102866-910b-0410-8b05-ffd578937521
2007-08-28 22:01:29 +00:00
Fred Kiefer
d41899ac82 Add error presenting methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25354 72102866-910b-0410-8b05-ffd578937521
2007-07-25 14:16:30 +00:00
Fred Kiefer
5a752a1db1 Add MacOSX 10.4 method declarations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25351 72102866-910b-0410-8b05-ffd578937521
2007-07-24 08:40:58 +00:00
Fred Kiefer
b7cb6503ee Different patches by Andreas Höschler <ahoesch@smartsoft.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24846 72102866-910b-0410-8b05-ffd578937521
2007-03-11 17:07:44 +00:00
Nicola Pero
df2318e0d9 Use versioned resource in gnustep-gui. Lots of bundles and resources still unversioned though
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24844 72102866-910b-0410-8b05-ffd578937521
2007-03-09 23:33:58 +00:00
Fred Kiefer
34b0abf4d0 Added MacOS 10.4 methods for NSDocument, NSDocumentController,
NSPrintOperation, NSResponder and NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24378 72102866-910b-0410-8b05-ffd578937521
2007-01-17 12:09:41 +00:00
Richard Frith-MacDonald
45acf44de1 documentation cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24035 72102866-910b-0410-8b05-ffd578937521
2006-11-06 13:58:37 +00:00
Adam Fedor
6ae514bf25 Partial fix for #16453
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23985 72102866-910b-0410-8b05-ffd578937521
2006-10-29 02:45:34 +00:00
Matt Rice
564a2e859b * Source/NSAlert.m: Add GSRunExceptionPanel function
and GSExceptionPanel class.
        * Headers/AppKit/NSPanel.h: Declare GSRunExceptionPanel.
        * Source/NSApplication.m (_NSAppKitUncaughtExceptionHandler):
        Use GSRunExceptionPanel.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23973 72102866-910b-0410-8b05-ffd578937521
2006-10-27 19:10:07 +00:00
Matt Rice
37f70188f1 * Source/NSApplication.m (NSAppIcon -mouseDown:): Call unhide:
regardless of whether we're hidden or not.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23961 72102866-910b-0410-8b05-ffd578937521
2006-10-24 23:09:58 +00:00