mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Corrected problem with connection and compiler warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
94a6c491f8
commit
faf7f3c0cc
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-02-13 09:27 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: in [GormDocument attachObject:withParent:]
|
||||
coercion of id to NSControl to avoid warning about selection of
|
||||
the target method. Changed setSelectionFromEditor: to
|
||||
stop any connection activity when a selection is changed.
|
||||
|
||||
2005-02-13 04:46 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormDocument.m: in -loadDocument: if the extension is
|
||||
|
|
|
@ -583,7 +583,7 @@ static NSImage *fileImage = nil;
|
|||
NSString *label = NSStringFromSelector(sel);
|
||||
id source = anObject;
|
||||
NSNibControlConnector *con = [NSNibControlConnector new];
|
||||
id destination = [anObject target];
|
||||
id destination = [(NSControl *)anObject target];
|
||||
NSArray *sourceConnections = [self connectorsForSource: source];
|
||||
|
||||
// if it's a menu item we want to connect it to it's parent...
|
||||
|
@ -2991,10 +2991,10 @@ static NSImage *fileImage = nil;
|
|||
- (void) setSelectionFromEditor: (id<IBEditors>)anEditor
|
||||
{
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
// NSArray *selection = [[(id<IB>)NSApp selectionOwner] selection];
|
||||
|
||||
NSDebugLog(@"setSelectionFromEditor %@", anEditor);
|
||||
lastEditor = anEditor;
|
||||
[(Gorm *)NSApp stopConnecting]; // cease any connection
|
||||
if ([(NSObject *)anEditor respondsToSelector: @selector(window)])
|
||||
{
|
||||
[[anEditor window] makeFirstResponder: (id)anEditor];
|
||||
|
|
Loading…
Reference in a new issue