Commit graph

77 commits

Author SHA1 Message Date
williameveretteggplant
c71f9dd715
modify NSComboBox to handle attributed strings (#314)
* modify NSComboBox to handle attributed strings

* formatting
2024-11-05 00:12:37 +01:00
fredkiefer
5294a34911 Add macros for encoding/decoding. 2021-01-10 22:40:29 +01:00
fredkiefer
35698d41b6 Change encoding/decoding to protect against differences in integer size. 2021-01-08 17:18:36 +01:00
Fred Kiefer
f65931aa6c * Source/GSTextFinder.m: Fix Ignore Case option to work.
Patch by Doug Simons <doug.simons@testplant.com>
        * Source/NSControl.m (-initWithCoder:): Don't use NSEnabled flag
        as it is wrong for NSComboBox.
        * Source/NSComboBoxCell.m (_loadButtonCell): Set enabled on
        button cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38933 72102866-910b-0410-8b05-ffd578937521
2015-08-26 21:10:12 +00:00
Germán Arias
86b7f99808 Fix last revert.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38365 72102866-910b-0410-8b05-ffd578937521
2015-02-24 06:14:50 +00:00
Germán Arias
03869b5d03 revert last commits.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38364 72102866-910b-0410-8b05-ffd578937521
2015-02-23 23:26:23 +00:00
Germán Arias
708aac6819 Use buffered windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38357 72102866-910b-0410-8b05-ffd578937521
2015-02-23 08:05:10 +00:00
Germán Arias
f2a56be6f5 Fix memory leak in GSComboWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36744 72102866-910b-0410-8b05-ffd578937521
2013-06-22 22:47:35 +00:00
Fred Kiefer
152b94069f More CGFloat, NSUInteger and NSInteger changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36154 72102866-910b-0410-8b05-ffd578937521
2013-02-17 00:49:04 +00:00
Fred Kiefer
d4f80c2258 Change NSEvent to CGFloat, NSUInteger and NSInteger.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36121 72102866-910b-0410-8b05-ffd578937521
2013-02-13 08:40:36 +00:00
David Chisnall
40fb48e5de Next bit of NSInteger cleanup for -gui.
Fix all of the current warnings in Gorm so that it can be used to test
NSInteger things.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36039 72102866-910b-0410-8b05-ffd578937521
2013-01-30 12:43:27 +00:00
David Chisnall
4850a9feac Fix all current compiler warnings on FreeBSD/x86-64.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36038 72102866-910b-0410-8b05-ffd578937521
2013-01-30 09:48:54 +00:00
Fred Kiefer
4f5c219ed9 * Source/NSComboBoxCell.m (-textDidChange:):
Handle nil string from delegate completed string processing
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35677 72102866-910b-0410-8b05-ffd578937521
2012-10-12 17:29:11 +00:00
Fred Kiefer
82a110d152 * Headers/AppKit/NSInterfaceStyle.h: Remove GSNativeInterfaceStyle.
* Source/NSComboBoxCell.m (-encodeWithCoder:, -initWithCoder:):
Add a few more keyed coding values. Fixes bug #36426.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35146 72102866-910b-0410-8b05-ffd578937521
2012-05-07 20:21:59 +00:00
Fred Kiefer
8ad4aa86c4 Replace some occurences of int with NSInteger
and unsigned with NSUInteger. This allows to recompile gui on 
64 bit systems after the change to NSNotFound in base.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34312 72102866-910b-0410-8b05-ffd578937521
2011-12-17 17:16:09 +00:00
David Chisnall
b4e3915c33 Turn release messages sent to autorelease pools into drain messages. No
functionality change in non-GC mode, in GC mode it invokes a quick GC pass to
try to delete the short-lived objects.

Also deleted some [pool release] lines just before exit() or return-from-main
statements.  These cause objects to be swapped in and destructors to be run to
no benefit (the OS will reclaim this memory without requiring stuff to be
swapped in when the process exits).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33146 72102866-910b-0410-8b05-ffd578937521
2011-05-27 12:42:37 +00:00
Eric Wasylishen
07ee1e9f6c * Source/NSComboBoxCell.m: Correct positioning of popup window when
a scale factor is in use.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33120 72102866-910b-0410-8b05-ffd578937521
2011-05-25 23:45:19 +00:00
Fred Kiefer
ee078bb8ed Correct imports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32625 72102866-910b-0410-8b05-ffd578937521
2011-03-16 19:15:15 +00:00
Fred Kiefer
412547c233 Small bug fixes found by static analyser.
Plus a huge change on NSComboBoxCell after years of testing :-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32585 72102866-910b-0410-8b05-ffd578937521
2011-03-14 21:45:39 +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
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
Wolfgang Lux
20aeb6e85f Dismiss the list of a combo box without changing the selection when
the user presses Escape.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31157 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:12:55 +00:00
Wolfgang Lux
c33ce9acb6 Pop up the list of a combo box when the user presses the down arrow
key. This gives users full keyboard control for NSComboBox.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31120 72102866-910b-0410-8b05-ffd578937521
2010-08-11 20:49:33 +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
Wolfgang Lux
00c843ffc6 Fix bug where the field editor of an edited combo box cell overlaps
the cell's ellipsis button.
Fix bug where the pop up window of a combo box might stay open when
the user leaves the combo box with the keyboard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29135 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:21:56 +00:00
Fred Kiefer
7c2e8efcd8 Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
2009-03-02 16:26:23 +00:00
Richard Frith-MacDonald
3217c7304a Make code a little easier to read (and a tiny bit more efficient).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27452 72102866-910b-0410-8b05-ffd578937521
2008-12-29 12:28:50 +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
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
a66882b17b Add new MacOSX 10.4 methods and constants to NSWindow. Requires
recompilation of all applications!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25469 72102866-910b-0410-8b05-ffd578937521
2007-09-09 12:19:01 +00:00
Fred Kiefer
2d859c1d21 Add MacOSX methods to NSComboBox and constants to NSColorPanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25366 72102866-910b-0410-8b05-ffd578937521
2007-07-31 21:42:30 +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
Matt Rice
2436c6b7c5 * Source/NSComboBoxCell.m (validateSelection): Test for invalid row.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23999 72102866-910b-0410-8b05-ffd578937521
2006-10-30 20:25:50 +00:00
Richard Frith-MacDonald
57435da7d5 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
Richard Frith-MacDonald
ed5990f599 theme reorganisation/tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23586 72102866-910b-0410-8b05-ffd578937521
2006-09-22 11:53:40 +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
Richard Frith-MacDonald
65b175b904 Tweaks to avoid new compiler warnings with gcc-4.1 and some 64bit issues.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23126 72102866-910b-0410-8b05-ffd578937521
2006-07-04 21:31:49 +00:00
Fred Kiefer
d346b59f9f Small patches by Andreas Höschler to NSTableView and NSComboBoxCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22861 72102866-910b-0410-8b05-ffd578937521
2006-05-05 22:41:40 +00:00
Fred Kiefer
162d86266e Applyed patch by Matt Rice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21269 72102866-910b-0410-8b05-ffd578937521
2005-05-30 17:01:21 +00:00
Adam Fedor
303dd1baf9 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
Fred Kiefer
b63d9513ca Improved combobox layout.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21248 72102866-910b-0410-8b05-ffd578937521
2005-05-22 10:27:24 +00:00
Matt Rice
4f18a708bf * Source/NSTextView.m (setSelectedRange:): Do not make the selected text visible.
(-didChangeText,-checkSpelling:): Make the selected text visible.
* Source/NSTextView_actions.m (_moveTo:select:): Ditto.
* Source/NSCell.m (-setUpFieldEditorAttributes:): Ditto.
(-selectWithFrame:inView:editor:delegate:start:length:): Ditto.
* Source/NSComboBoxCell (-validateSelection:,-textDidChange:): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20575 72102866-910b-0410-8b05-ffd578937521
2005-01-18 13:18:29 +00:00
Quentin Mathe
da59460004 More correct NSComboBoxCell implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20446 72102866-910b-0410-8b05-ffd578937521
2004-12-13 02:18:32 +00:00
Fred Kiefer
73fd0482a8 Deal with nil in substrign expansion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19898 72102866-910b-0410-8b05-ffd578937521
2004-08-21 10:06:24 +00:00
Quentin Mathe
1fc2399220 Correct details related to combo box
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19872 72102866-910b-0410-8b05-ffd578937521
2004-08-13 23:28:50 +00:00
Quentin Mathe
a4c583b139 Fixed combo box bug introduced in June
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19870 72102866-910b-0410-8b05-ffd578937521
2004-08-13 22:07:06 +00:00
Quentin Mathe
d52db5f427 Fixed markup errors in the combo box related documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19847 72102866-910b-0410-8b05-ffd578937521
2004-08-08 19:09:57 +00:00
Fred Kiefer
130440495b Made selecting values from a combo box in a table view work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19568 72102866-910b-0410-8b05-ffd578937521
2004-06-20 22:25:17 +00:00
Fred Kiefer
36e5bff453 Removed commented out lines.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19542 72102866-910b-0410-8b05-ffd578937521
2004-06-18 00:02:32 +00:00
Fred Kiefer
2ed0ec270e Made comboboxes work in flipped views.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19541 72102866-910b-0410-8b05-ffd578937521
2004-06-18 00:01:18 +00:00