Commit graph

628 commits

Author SHA1 Message Date
Sebastian Reitenbach
5b5fee3b82 * EOAdaptors/PostgreSQLAdaptor/PostgreSQLEOAdaptorInfo.plist
renamed from Info.plist, and fix NSExecutable in it

actually makes browsing data in a PostgreSQL database possible again \o/



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36331 72102866-910b-0410-8b05-ffd578937521
2013-03-10 17:22:54 +00:00
Sebastian Reitenbach
56737b40a2 * Apps/EOModeler/EOMInspector.m
* Apps/EOModelEditor/Inspectors/AttributeInspector.m
          include missing header


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36328 72102866-910b-0410-8b05-ffd578937521
2013-03-10 13:27:58 +00:00
Sebastian Reitenbach
7043021b7f * EOInterface/EOTextAssociation.m
include right headers



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36327 72102866-910b-0410-8b05-ffd578937521
2013-03-10 13:16:08 +00:00
Sebastian Reitenbach
ac39e74888 * EOInterface/EOColumnAssociation.m
* EOInterface/EOPopUpAssociation.m
        * EOInterface/EORadioMatrixAssociation.m
          NSArray doesn't know about initWithObject:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36326 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:43:34 +00:00
Sebastian Reitenbach
05f5dbcb4c * EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
use NSOpenPanel when opening a file


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36325 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:29:24 +00:00
Sebastian Reitenbach
872f349c2c * Apps/EOModelEditor/Inspectors/EntityInspector.m
add warning about method not implemented


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36324 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:18:33 +00:00
Sebastian Reitenbach
60270fd8d9 * Apps/EOModelEditor/EOMEDocument.h
make the header match the implementation, fixing
          warning about incomplete implementation of class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36303 72102866-910b-0410-8b05-ffd578937521
2013-03-08 08:48:25 +00:00
Sebastian Reitenbach
c05fc2a335 * GDL2Palette/ResourceManager.m
include missing header
        * GDL2Palette/Palette.[h|m]
          use NSString instead of NSConstantString



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36297 72102866-910b-0410-8b05-ffd578937521
2013-03-07 15:06:13 +00:00
Sebastian Reitenbach
60460b7b45 * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
get rid of stray ; to make the loop work


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36296 72102866-910b-0410-8b05-ffd578937521
2013-03-07 13:11:34 +00:00
Sebastian Reitenbach
245b9ac076 * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.h
class conforms to NSTextFieldDelegate



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36295 72102866-910b-0410-8b05-ffd578937521
2013-03-07 13:10:44 +00:00
Sebastian Reitenbach
61e4d448e7 * EOControl/EODebug.m
ivar_getTypeEncoding returns const char *



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36294 72102866-910b-0410-8b05-ffd578937521
2013-03-07 12:57:30 +00:00
Sebastian Reitenbach
d780afad2a * EOControl/EOPrivate.h
do not access the isa directly, use object_getClass



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36293 72102866-910b-0410-8b05-ffd578937521
2013-03-07 10:29:19 +00:00
Sebastian Reitenbach
6b884fb4bb add -std=gnu89 to allow compile with clang and -O0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36292 72102866-910b-0410-8b05-ffd578937521
2013-03-07 10:23:22 +00:00
Sebastian Reitenbach
b58bebdc1b missed int -> NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36243 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:56:51 +00:00
Sebastian Reitenbach
262e620575 * EOAccess/EOAdaptor.m
* EOAccess/EORelationship.m
        * EOControl/EONSAddOns.m
          get rid of some warnings about tautological compares


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36242 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:48:29 +00:00
Sebastian Reitenbach
829a02e46a * Apps/EOModelEditor/AdaptorsPanel.m
* Apps/EOModelEditor/Preferences.m
        * EOAccess/EOAttribute.m
        * EOAccess/EOExpressionArray.m
        * EOAccess/EORelationship.m
        * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.m
        * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
        * EOControl/EOCheapArray.m
        * EOControl/EOMutableKnownKeyDictionary.m
        * EOControl/EOPrivate.h
        * EOControl/EOPrivate.m
        * EOControl/Makefile.preamble
        * GDL2Palette/ConnectionInspector.m
        * GDL2Palette/DisplayGroupInspector.m
          Fix warnings about conflicting return types or paramters


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36241 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:20:35 +00:00
Sebastian Reitenbach
a6e98220c2 fix warnings related to format strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36234 72102866-910b-0410-8b05-ffd578937521
2013-03-02 15:28:25 +00:00
Sebastian Reitenbach
353c3d4c35 mark EOFault and GDL2KVCNSObject classes as root classes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36233 72102866-910b-0410-8b05-ffd578937521
2013-03-02 14:37:25 +00:00
Sebastian Reitenbach
bc990481e7 * GDL2Palette/DisplayGroupInspector.m
some NS(U)Integer transitions to fix warnings about
          comparisons against NSNotFound



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36232 72102866-910b-0410-8b05-ffd578937521
2013-03-02 14:14:21 +00:00
Sebastian Reitenbach
de5c0311d1 * shutup all clang warnings of type:
equality comparison with extraneous parentheses
          all harmless, but in EOEntity.m it actually was wrong



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36231 72102866-910b-0410-8b05-ffd578937521
2013-03-02 13:59:48 +00:00
Sebastian Reitenbach
b2b2b838f3 * EOControl/EODebug.m
do not use redundant stringWithString


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36229 72102866-910b-0410-8b05-ffd578937521
2013-03-01 18:35:34 +00:00
Germán Arias
8e7b0621cb Add flags
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@35397 72102866-910b-0410-8b05-ffd578937521
2012-08-11 03:55:19 +00:00
Germán Arias
ebdb1f7c90 Fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34954 72102866-910b-0410-8b05-ffd578937521
2012-03-20 05:55:21 +00:00
Germán Arias
0215e55df9 Added SQLite logo in login panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34953 72102866-910b-0410-8b05-ffd578937521
2012-03-20 05:47:28 +00:00
Germán Arias
f9cb25f695 More improvements for use with menu in-window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34951 72102866-910b-0410-8b05-ffd578937521
2012-03-19 18:10:22 +00:00
Germán Arias
a3097a85e2 Fix a problem with last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34950 72102866-910b-0410-8b05-ffd578937521
2012-03-18 22:49:42 +00:00
Germán Arias
d1fb8fa910 Improvements for use with menu in-window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34949 72102866-910b-0410-8b05-ffd578937521
2012-03-18 19:49:38 +00:00
Fred Kiefer
57e2d97334 * EOControl/EODebug.m: replace GNU runtime specific functions
and data structrues with the modern ones.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@32793 72102866-910b-0410-8b05-ffd578937521
2011-04-06 20:36:44 +00:00
Fred Kiefer
d2591a8985 ubmit another patch by Georg Fleischmann <Georg.Fleischmann@vhf.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31509 72102866-910b-0410-8b05-ffd578937521
2010-10-13 20:21:38 +00:00
Fred Kiefer
85ea7e108e * EOAccess/EOSQLQualifier.m [EONotQualifier
-sqlStringForSQLExpression:]: Pass on _qualifier not self.
Patch by Georg Fleischmann <Georg.Fleischmann@vhf.de>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31383 72102866-910b-0410-8b05-ffd578937521
2010-09-20 12:20:07 +00:00
Fred Kiefer
d0abe22fc0 Apply patches by Georg Fleischmann <Georg.Fleischmann@vhf.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31339 72102866-910b-0410-8b05-ffd578937521
2010-09-12 17:54:00 +00:00
Dave Wetzel
dac846d43d * EOAccess/EODatabaseContext.m
fix lockObjectWithGlobalID:editingContext:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31190 72102866-910b-0410-8b05-ffd578937521
2010-08-21 07:51:08 +00:00
Germán Arias
ee07346906 Changed size of the EOModelEditor icon
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@31106 72102866-910b-0410-8b05-ffd578937521
2010-08-10 00:13:47 +00:00
Dave Wetzel
9f0349fdaf * EOAccess/EOModel.m
-_deleteTrashAtPath:
.cvs -> .CVS



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30930 72102866-910b-0410-8b05-ffd578937521
2010-07-06 06:03:01 +00:00
Dave Wetzel
1dc20fe252 * EOAccess/EOModel.m
add - _deleteTrashAtPath:
avoid keeping unused files in the wrapper directory.
basically, .svn/.cvs/.git
as this does not change that often I am not moving this to an 
external plist at the moment.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30929 72102866-910b-0410-8b05-ffd578937521
2010-07-05 19:56:10 +00:00
Dave Wetzel
f193f8ba1e * EOAccess/EODatabaseContext.m
valuesForKeys: -> dictionaryWithValuesForKeys:
(The old valuesForKeys: causes a log message on OSX)
some reformats and DebugLog removals



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30924 72102866-910b-0410-8b05-ffd578937521
2010-07-05 08:17:00 +00:00
Dave Wetzel
efffa9de8c fix include for GNUSTEP
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30923 72102866-910b-0410-8b05-ffd578937521
2010-07-05 06:14:44 +00:00
Dave Wetzel
4a17f0a7a0 * EOAccess/EOModel.m
-writeToFile:
Don't copy or move directories
create an dir only if we have none
* Apps/EOModelEditor/EOMEDocument.m
copy old wrapper dir to new tmp path/URL
The model overwrites our own files then.
Trash like .svn stays intact this way :-)
Only OSX at the moment.
see
http://savannah.gnu.org/bugs/index.php?30348
(#ifdef'd)
-keepBackupFile
return YES
* Apps/EOModelEditor/CodeGenerator.m
don't write code for EOGenericRecord or EOCustomObject



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30922 72102866-910b-0410-8b05-ffd578937521
2010-07-05 01:58:11 +00:00
Dave Wetzel
0f1ee27359 use memset in place of bzero
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30921 72102866-910b-0410-8b05-ffd578937521
2010-07-04 17:20:07 +00:00
Dave Wetzel
385770a9a1 * EOAccess/EOModelGroup.m
add include
* EOAccess/EOEntity.m
- classProperties
small cleanup 
* EOAccess/EODatabaseOperation.m
-rowDiffsForAttributes:
add checks
* EOAccess/EODatabaseContext.h
add _missingObjectGIDs, _checkPropagatedPKs
add databaseContextFailedToFetchObject
+ _setUseToManyCaching:
added
removed -coordinator
add -missingObjectGlobalIDs
* EOAccess/EODatabaseContextPriv.h
add -_entityForObject:
* EOAccess/EODatabaseContext.m
add _useToManyCaching
add + _setUseToManyCaching:
add - _delegateHandledDatabaseException:
add -setCoordinator:
removed -coordinator
add databaseContextFailedToFetchObject
add -missingObjectGlobalIDs
cleanup _objectsChanged
-_snapshotsChangedInDatabase
renamed vars
- _batchNewPrimaryKeysWithEntity:count:
add
- prepareForSaveWithCoordinator:editingContext:
add checks
cleanup code
- _patchUpPK:
add
- recordChangesInEditingContext
rewritten
- _primaryKeyForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- _databaseOperationForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- _recordDeleteForIntermediateRowFromSourceObject:relationship:destinationObject:
add
- nullifyAttributesInRelationship:sourceObject:destinationObjects:
fixed, rewritten
- _entityForObject:
add
* EOAccess/EOAdaptorChannel.h
* EOAccess/EOAdaptorChannel.m
add primaryKeysForNewRowsWithEntity:count:
* Apps/EOModelEditor/DataBrowser.m
fix typo in import
* EOControl/EONSAddOns.h
* EOControl/EONSAddOns.m
add +dictionaryWithDictionary:keys:
add -translateFromKeys:toKeys:
add -containsAnyNullObject
* EOControl/EOSharedEditingContext.m
fix include
* EOControl/EOObjectStoreCoordinator.h
* EOControl/EOObjectStoreCoordinator.m
remove observers now
add setCoordinator and use it.
-coordinator
moved up from EODatabaseContext.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30918 72102866-910b-0410-8b05-ffd578937521
2010-07-04 10:00:57 +00:00
Dave Wetzel
225e4c3054 * EOAccess/EODatabaseOperation.m
fix typo in string
* EOAccess/EODatabaseContext.m
add compareUsingEntityNames()
-orderAdaptorOperations
refactor
-entityNameOrderingArrayForEntities:
implemented
* EOControl/EOMutableKnownKeyDictionary.m
remove log



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30911 72102866-910b-0410-8b05-ffd578937521
2010-07-02 04:12:26 +00:00
Dave Wetzel
4d27bfcdab * EOAccess/EODatabaseOperation.h
add comment
* EOAccess/EODatabaseContext.h
-lockingNonQualifiableAttributes
return NSArray, not id
-handleDroppedConnection
-commitChanges
remove unsed variables
-createAdaptorOperationsForDatabaseOperation:attributes:
rewrite
-lockingNonQualifiableAttributes
fix
return NSArray, not id



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30910 72102866-910b-0410-8b05-ffd578937521
2010-07-01 23:18:07 +00:00
Dave Wetzel
c00b1ebc37 * EOAccess/EOModel.m
-addEntity:
change error checks to be in sync with reference 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30897 72102866-910b-0410-8b05-ffd578937521
2010-06-29 22:28:51 +00:00
Dave Wetzel
e954a305bd * EOControl/EOFault.h
* EOControl/EOFaultHandler.m
unsigned -> NSUInteger
* EOControl/EOFault.m
unsigned -> NSUInteger
-release
fix as suggested by David Ayers
-dealloc
add NSAssert



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30889 72102866-910b-0410-8b05-ffd578937521
2010-06-29 08:27:13 +00:00
Dave Wetzel
7c14405e1d * EOAccess/EODatabaseContext.m
-initializeObject:withGlobalID:editingContext:
remove exessive checking
-initializeObject:row:entity:editingContext:
reformat, less IMPs, less logs
* EOControl/EOFault.h
+ retainCount
unsigned -> NSUInteger
* EOControl/EOFault.m
+ retainCount
unsigned -> NSUInteger
+ clearFault:
raise if argument is no fault
rewrote retain behaviour
it makes no sense to free objects here and use the pointers
this would mess up the whole memory and crash.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30886 72102866-910b-0410-8b05-ffd578937521
2010-06-29 03:10:35 +00:00
Dave Wetzel
f14aafa3fc * EOAccess/EOEntity.m
- createInstanceWithEditingContext:globalID:zone:
reformat, remove logs
* EOAccess/EODatabaseContext.m
-initializeObject:withGlobalID:editingContext:
rewritten, add exceptions
* EOAccess/EODatabaseChannel.m
-fetchObject
remove logs, add exceptions
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
postgresClientVersion()
use stringWithCString:encoding: not stringWithCString:
* Apps/EOModelEditor/CodeGenerator.m
don't add <NSCoding> to generated code
* EOControl/EOCustomObject.h
* EOControl/EOCustomObject.m
add -encodeWithCoder:
add -initWithCoder:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30875 72102866-910b-0410-8b05-ffd578937521
2010-06-28 09:31:49 +00:00
Dave Wetzel
a5a47b954d * EOAccess/EODatabaseContext.m
-isValidQualifierTypeForAttribute:
reformat, remove useless code
-qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:
reformat
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
-isValidQualifierType:model:
remove logs, format
* Apps/EOModelEditor/Inspectors/AttributeInspector.gsmarkup
* Apps/EOModeler/EOModelExtensions.m
Rename the char into BOOL
You can use BOOL to create code that has BOOL values.
Apple seems to do this in newer code 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30874 72102866-910b-0410-8b05-ffd578937521
2010-06-27 08:34:28 +00:00
Dave Wetzel
4ba46c20a5 * EOAccess/EOAccessFault.m
-unableToFaultObject:databaseContext:
remove self from exception format printing
otherwise we create a loop...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30873 72102866-910b-0410-8b05-ffd578937521
2010-06-27 02:32:15 +00:00
Dave Wetzel
0fcc183333 * EOControl/EOControl.h
include GNUstepBase/GNUstep.h on non-GNUSTEP platforms


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30848 72102866-910b-0410-8b05-ffd578937521
2010-06-25 03:03:27 +00:00
Dave Wetzel
4cedecc3ed * Apps/EOModelEditor/CodeGenerator.m
-updateNeededForFileAtPath:content:canOverwrite:
do not overwrite files if canOverwrite = NO



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30846 72102866-910b-0410-8b05-ffd578937521
2010-06-24 23:43:57 +00:00