From e2810ccbe30371974a7df888dc5656ac9311677f Mon Sep 17 00:00:00 2001 From: drx777 Date: Thu, 29 Apr 2010 18:26:19 +0000 Subject: 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. --- Source/SPDBActionCommons.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'Source/SPDBActionCommons.h') 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 -- cgit v1.2.3