diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:26:19 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:26:19 +0000 |
commit | e2810ccbe30371974a7df888dc5656ac9311677f (patch) | |
tree | 55e4f24a71ed0862620f3a75f9efcf001d257c89 /Source/SPDBActionCommons.h | |
parent | 47d42106c45d7663c05aaf6d3f0feab71798b51c (diff) | |
download | sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.tar.gz sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.tar.bz2 sequelpro-e2810ccbe30371974a7df888dc5656ac9311677f.zip |
Now longer using [NSApp mainWindow] but a reference to the correct window for message sheets. It could have caused messages appearing in the wrong window.
Diffstat (limited to 'Source/SPDBActionCommons.h')
-rw-r--r-- | Source/SPDBActionCommons.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/SPDBActionCommons.h b/Source/SPDBActionCommons.h index 042fd5dc..334b0c78 100644 --- a/Source/SPDBActionCommons.h +++ b/Source/SPDBActionCommons.h @@ -32,8 +32,7 @@ @interface SPDBActionCommons : NSObject { MCPConnection *connection; - NSObject *parent; - NSDocument *messageDocument; + NSWindow *messageWindow; } /** @@ -42,13 +41,8 @@ @property (retain) MCPConnection *connection; /** - * @property the parent object that issues the action, needs to provide stuff like tableWindow for messages + * @property the NSWindow instance to send message sheets to */ -@property (retain) NSObject *parent; - -/** - * @property the NSDocument instance to send message sheets to - */ -@property (retain) NSDocument *messageDocument; +@property (assign) NSWindow *messageWindow; @end |