Commit graph

49 commits

Author SHA1 Message Date
Fred Kiefer
521fd071b4 Make the class GSXibKeyedUnarchiver public again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40449 72102866-910b-0410-8b05-ffd578937521
2017-04-05 21:51:43 +00:00
Fred Kiefer
db123bcd81 Merge some of the changes from the testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40403 72102866-910b-0410-8b05-ffd578937521
2017-03-19 19:26:04 +00:00
Richard Frith-MacDonald
08910fb913 lintian spelling correctes provided by Eric Heintzmann
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39816 72102866-910b-0410-8b05-ffd578937521
2016-05-28 09:49:15 +00:00
Richard Frith-MacDonald
23533e0570 Allow GUI to build when base has been configured without libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39113 72102866-910b-0410-8b05-ffd578937521
2015-11-01 23:09:40 +00:00
Fred Kiefer
cc73eeacdc * Source/NSBundleAdditions.m,
* Source/NSNibConnector.m: Move NSNibConnector and subclasses in
        separate file. Add isEqual: method from Gorm. Switch to new
        libobjc runtime ivar access for NSNibOutletConnector.
        * Source/GNUmakefile: Add new file NSNibConnector.m
        * Source/GSXibLoader.m: Similar change to IBOutletConnection.
        Replace GSMime base64 decode method with standard one.
        * Source/GSImageMagickImageRep.m,
        * Source/GSTheme.m: Remove unused #import.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38919 72102866-910b-0410-8b05-ffd578937521
2015-08-23 17:10:39 +00:00
Fred Kiefer
fd098d8eda * Source/NSButtonCell.m (-initWithCoder:):
Fix image scaling value extract from XIB.
        * Headers/Additions/GNUstepGUI/GSXibLoading.h
        * Source/GSXibLoading.m
        * Source/GSXibLoader.m
        Add IB defined runtime attribute processing for XIB
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38882 72102866-910b-0410-8b05-ffd578937521
2015-08-13 22:03:03 +00:00
Sebastian Reitenbach
6d5a0cc236 A bunch of format string fixes and some casts to force formats
No objections from Fred Kiefer ;)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38569 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:15:16 +00:00
Fred Kiefer
6d27cf76b1 * Images/NSRemoveTemplate.tiff: Add file.
* Images/GNUmakefile: Handle new file.
        * Source/GSXibLoader.m: Better error reporting for wrong
        application class.
        * Source/NSOutline.m (-drawRow:clipRect:): Don't set the value
        for the edited cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38408 72102866-910b-0410-8b05-ffd578937521
2015-03-15 23:31:43 +00:00
Fred Kiefer
00928ee6ea * Headers/Additions/GNUstepGUI/GSXibLoading.h,
* Source/GSXibLoader.m: Fix object ID parsing in XIB loading due
        to Apple moving to string ID represenatation.
        Patch by Marcian Lytwyn <gna@advcsi.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38236 72102866-910b-0410-8b05-ffd578937521
2014-12-07 16:38:40 +00:00
Fred Kiefer
59b1180d27 * Source/GSXibLoader.m (-awake:inContainer:withContext:): Allow
for subclasses of NSApplication as rootObjects.
        Based on patch by Marcian Lytwyn <gna@advcsi.com>.
        * Source/NSWindow.m (-userSpaceScaleFactor): Handle case where
        _screen is nil.
        Patch by Doug Simons (dsimons@testplant.com).
        * Source/NSWindow.m (-_screenForFrame:): Require real overlapp.
        Patch by Doug Simons (dsimons@testplant.com).
        * Source/NSTextField.m (-textDidChange:): Improve editing
        behavior when formatter returns a new string.
        Patch by Doug Simons (dsimons@testplant.com).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37830 72102866-910b-0410-8b05-ffd578937521
2014-05-03 21:45:47 +00:00
Gregory John Casamento
3931ffd3eb Initial code for XIB 5 support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37761 72102866-910b-0410-8b05-ffd578937521
2014-03-25 07:59:36 +00:00
Fred Kiefer
52d1488ad6 * Source/GSXibLoader.m: Handle changed keys for XIB 4.6 format.
Based on patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>.
* Source/GSXibLoader.m (-parser:...): Warn about unsupported XIB 5 format.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37463 72102866-910b-0410-8b05-ffd578937521
2013-12-13 20:34:52 +00:00
Fred Kiefer
7bd5a864cd * Source/GSXibLoader.m: Add -replaceObject:withObject: method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36573 72102866-910b-0410-8b05-ffd578937521
2013-04-23 21:40:34 +00:00
Fred Kiefer
12a29ad4d7 * Source/NSCollectionView.m (-_moveUpAndExpandSelection:):
* Correct
        the comparision. Bug reported by Gregory John Casamento
        <greg.casamento@gmail.com>
        * Headers/AppKit/NSPopover.h: Add missing import.
        * Source/GSXibLoader.m: Disable NSCustomView hack again.
        * Headers/AppKit/NSApplication.h: Replace GSAppDelegateProtocol
        with NSApplicationDelegate.
        * Source/NSApplication.m: Adjust documentation to this
        * replacement.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36553 72102866-910b-0410-8b05-ffd578937521
2013-04-21 16:57:58 +00:00
Gregory John Casamento
eab097631c * Headers/AppKit/AppKit.h: Add NSPopover.h to set of files
included.
	* Headers/AppKit/NSApplication.h: Add NSApplicationDelegate.
	Inherit from GSAppDelegateProtocol.
	* Headers/AppKit/NSPopover.h: NSPopover header.
	* Source/GNUmakefile: Added NSPopover.[hm]
	* Source/GSXibLoader.m: Translate NSCustomView to NSView when
	unarchiving.
	* Source/NSPopover.m: Skeletal implementation of NSPopover.m.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36552 72102866-910b-0410-8b05-ffd578937521
2013-04-21 13:45:20 +00:00
Fred Kiefer
0e308561c1 * Source/GSXibLoader.m (GSXibKeyedUnarchiver -_preProcessXib:):
Release the document.
        Patch by Doug Simons <doug.simons@testplant.com>
        * Source/GSXibLoader.m: Fix a problem where owner,
        * firstResponder and application
        were put in the list of top-level objects, creating a
retain-cycle.
        * Source/NSViewController.m: Fix a problem where view
        * controllers
        did not release their top-level objects as expected.
        * Source/NSWindowController.m: Fix a problem where window
        controllers did not release their top-level objects as expected.
        Changes made in occordance with
        https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html
        Patch by Jonathan Gillaspie <jonathan.gillaspie@testplant.com>



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36134 72102866-910b-0410-8b05-ffd578937521
2013-02-14 09:22:56 +00:00
Fred Kiefer
d7fbd2f6af Resolve memory leak for GSXibElement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36122 72102866-910b-0410-8b05-ffd578937521
2013-02-13 08:54:34 +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
e85b16bc05 Merge selected changes from testplant branch.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35681 72102866-910b-0410-8b05-ffd578937521
2012-10-13 18:43:38 +00:00
Gregory John Casamento
5b8d9117c5 Merges from the testplant branch for NSTabView, GSXibLoader.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35661 72102866-910b-0410-8b05-ffd578937521
2012-10-09 17:29:51 +00:00
Gregory John Casamento
fb624bfa0d * Source/GSXibLoader.m: Remove test code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35514 72102866-910b-0410-8b05-ffd578937521
2012-09-04 02:35:48 +00:00
Gregory John Casamento
7da4d487ca Corrections to xib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35510 72102866-910b-0410-8b05-ffd578937521
2012-09-04 01:41:05 +00:00
Gregory John Casamento
7d65149660 * Source/GSXibLoader.m: Correct issue with reuse of enumerator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35494 72102866-910b-0410-8b05-ffd578937521
2012-09-02 17:56:46 +00:00
Gregory John Casamento
a618ee1ac1 * Source/GSXibLoader.m: Cover case where there are no changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35485 72102866-910b-0410-8b05-ffd578937521
2012-08-31 20:33:44 +00:00
Gregory John Casamento
58c33f3dce * Source/GSXibLoader.m: Add _preProcessXib: method to perform
custom class substitutions when loading a XIB file.
	* Source/GSXibLoading.m: Add stub classes for IBNSLayoutConstraint
	and IBNSLayoutConstant so that these can now be loaded.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35482 72102866-910b-0410-8b05-ffd578937521
2012-08-31 16:27:06 +00:00
Gregory John Casamento
f8c5c4673d * Source/GSXibLoader.m:
Added NSMenu (XibCompatibility) category with method: _isMainMenu
	Added NSMenu (XibCompatibility) category implementation.
        Modified setting main menu in awake:inContainer:withContext:
	Fixes bug #36427
	Committed by: gcasa



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35159 72102866-910b-0410-8b05-ffd578937521
2012-05-21 17:56:05 +00:00
Fred Kiefer
023f0030e2 * Source/GSXibLoader.m: Add some (currently unused) helper code
for class substitution in flattenedProperties.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35138 72102866-910b-0410-8b05-ffd578937521
2012-05-05 16:49:43 +00:00
Fred Kiefer
d570812401 Fix clang compiler warnings as reported by Sebastian Reitenbach
<sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34608 72102866-910b-0410-8b05-ffd578937521
2012-01-23 14:27:58 +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
Fred Kiefer
45d5c38825 * Source/GSXibLoader.m: Better handling for flattened properties
to set the tool tips of an object. Should fix bug report #34783


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34155 72102866-910b-0410-8b05-ffd578937521
2011-11-11 00:03:11 +00:00
Fred Kiefer
407da1b829 Add decoding of class IBInitialTabViewItemAttribute.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34124 72102866-910b-0410-8b05-ffd578937521
2011-11-05 17:45:09 +00:00
Fred Kiefer
16e01f25a1 Correct the instantiation of NIB bindings. Should fix bug #34644.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34098 72102866-910b-0410-8b05-ffd578937521
2011-10-31 17:52:33 +00:00
Fred Kiefer
6aafb3c0e6 Integrate XIB loading methods used in Gorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34055 72102866-910b-0410-8b05-ffd578937521
2011-10-25 09:06:01 +00:00
Fred Kiefer
a47199291f Big improvement of XIB loading. Now all XIB files from the bug reports
get loaded.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34050 72102866-910b-0410-8b05-ffd578937521
2011-10-24 14:44:29 +00:00
Fred Kiefer
5d85ea1040 * Source/GSXibLoader.m (-objectForXib:): Add type "real" and
handle empty strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34011 72102866-910b-0410-8b05-ffd578937521
2011-10-17 08:34:02 +00:00
Fred Kiefer
23b1ff3f36 Fix XIB loading bug reported by Julian Mayer as bug #34454.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33931 72102866-910b-0410-8b05-ffd578937521
2011-10-03 12:48:15 +00:00
Fred Kiefer
dfa18a81da * Source/GSXibLoader.m: Add support for the "array" and
"dictionary" elements found in newer XIB files (Version >= 8).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33022 72102866-910b-0410-8b05-ffd578937521
2011-05-11 08:53:31 +00:00
Fred Kiefer
e1e89d3818 Fix XIB loading bug #33042
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32884 72102866-910b-0410-8b05-ffd578937521
2011-04-18 08:44:25 +00:00
Fred Kiefer
6daffd89d7 Fix memory leaks found by analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32255 72102866-910b-0410-8b05-ffd578937521
2011-02-20 22:36:49 +00:00
Gregory John Casamento
dae9464580 Add Xib loading header so that the classes in the GSXibLoader can be used by applications.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30467 72102866-910b-0410-8b05-ffd578937521
2010-05-29 05:27:04 +00:00
Wolfgang Lux
cfb8299e07 Fix bug where some objects loaded from a .xib file were not sent an
-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30365 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:51:45 +00:00
Fred Kiefer
121be97eb5 Avoid compiler warnings from old compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30089 72102866-910b-0410-8b05-ffd578937521
2010-04-05 18:20:24 +00:00
Fred Kiefer
504a5c2064 Rewrite of top level object handling in NIB/Gorm/Xib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30070 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:33:08 +00:00
Riccardo Mottola
1f6a5b28c2 removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30041 72102866-910b-0410-8b05-ffd578937521
2010-03-26 00:10:45 +00:00
Fred Kiefer
42b91d0695 Small improvements on XIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30023 72102866-910b-0410-8b05-ffd578937521
2010-03-23 07:15:17 +00:00
Fred Kiefer
d205cd7f9e Get the class NSNib to work and use it in NSBundleAdditions.
Restructure top level object handling for NIB loading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30018 72102866-910b-0410-8b05-ffd578937521
2010-03-22 09:08:50 +00:00
Fred Kiefer
1399765d96 Clean up includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30009 72102866-910b-0410-8b05-ffd578937521
2010-03-20 14:09:02 +00:00
Fred Kiefer
6ccf4dc7e6 Correct the decoding of the <bytes> element. Now colour are correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29964 72102866-910b-0410-8b05-ffd578937521
2010-03-15 13:10:05 +00:00
Fred Kiefer
4c75baa42b Add file for basic XIB loading. This is only partly working and will
need some more polishing and testing. Feel free to help with that.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29955 72102866-910b-0410-8b05-ffd578937521
2010-03-14 23:07:53 +00:00