mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Correction for resource manager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21085 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1465667ceb
commit
5a0150c3bb
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-04-11 01:04 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormDocument.m
|
||||
* GormCore/GormObjectEditor.m: Corrected problem with resource
|
||||
manager.
|
||||
|
||||
2005-04-10 23:59 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormDocument.m: Moved call to register IBResourceManager
|
||||
|
|
|
@ -1297,6 +1297,7 @@ static NSImage *fileImage = nil;
|
|||
{
|
||||
NSDebugLog(@"WARNING anEditor = editor");
|
||||
}
|
||||
|
||||
[editor activate];
|
||||
RELEASE((NSObject *)editor);
|
||||
|
||||
|
|
|
@ -114,9 +114,8 @@ static NSMapTable *docMap = 0;
|
|||
|
||||
- (BOOL) acceptsTypeFromArray: (NSArray*)types
|
||||
{
|
||||
if ([types containsObject: IBObjectPboardType] == YES)
|
||||
return YES;
|
||||
return NO;
|
||||
NSArray *resourceTypes = [resourceManager resourcePasteboardTypes];
|
||||
return ([resourceTypes firstObjectCommonWithArray: types] != nil);
|
||||
}
|
||||
|
||||
- (void) pasteInSelection
|
||||
|
@ -497,7 +496,7 @@ static NSMapTable *docMap = 0;
|
|||
/*
|
||||
* Tell the source that we will accept the drop if we can.
|
||||
*/
|
||||
if (dragType == IBObjectPboardType)
|
||||
if ([[resourceManager resourcePasteboardTypes] containsObject: dragType])
|
||||
{
|
||||
/*
|
||||
* We can accept objects dropped anywhere.
|
||||
|
|
Loading…
Reference in a new issue