* Apps/EOModelEditor/DataBrowser.[h|m]

* make the fetch limit and qualifier fields work



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36343 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sebastian Reitenbach 2013-03-12 15:21:27 +00:00
parent 31f47d1b3c
commit 16ca8db210
3 changed files with 10 additions and 3 deletions

View file

@ -37,8 +37,8 @@
{
IBOutlet NSWindow * _window;
IBOutlet NSTextField * _entityNameField;
IBOutlet NSTextField * _fetchLimitText;
IBOutlet NSTextField * _qualifierText;
IBOutlet NSTextField * fetchLimitText;
IBOutlet NSTextField * qualifierText;
IBOutlet NSTableView * _tableView;
EOEntity * _currentEntity;
TableViewController *_tableViewController;

View file

@ -156,12 +156,15 @@ static DataBrowser *sharedDataBrowser = nil;
[_editingContext invalidateAllObjects];
}
if ([[qualifierText stringValue] length] > 0)
qual = [EOQualifier qualifierWithQualifierFormat:[qualifierText stringValue]];
fetchSpec = [EOFetchSpecification fetchSpecificationWithEntityName:[_currentEntity name]
qualifier:qual
sortOrderings:nil];
[fetchSpec setFetchLimit:[fetchLimitText intValue]];
[fetchSpec setRawRowKeyPaths:keyPaths];
results = [_editingContext objectsWithFetchSpecification:fetchSpec];

View file

@ -1,3 +1,7 @@
2013-03-13: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Apps/EOModelEditor/DataBrowser.[h|m]
* make the fetch limit and qualifier fields work
2013-03-10: Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
* Apps/EOModelEditor/Inspectors/EntityInspector.m
add warning about method not implemented