ObjGUI  Check-in [8df3bb5437]

Overview
Comment:Move declaration of og_application_delegate() to the header.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8df3bb543758ce3abd9d0c4fde1e926468f0c97051b545e31242ae157105da87
User & Date: js on 2012-01-08 14:06:04
Other Links: manifest | tags
Context
2012-01-08
15:15
Don't allow hiding windows as Cocoa can only hide the whole application. check-in: 237f51a5a8 user: js tags: trunk
14:06
Move declaration of og_application_delegate() to the header. check-in: 8df3bb5437 user: js tags: trunk
14:03
Move -[show] and -[hide] from OGWidget to OGWindow. check-in: b5835e0a2f user: js tags: trunk
Changes

Modified gtk/OGApplication.m from [47de762f4e] to [c959eb8a26].

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

#include <gtk/gtk.h>

#import "OGApplication.h"

OF_APPLICATION_DELEGATE(OGApplication)

extern Class og_application_delegate(void);

@implementation OGApplication
+ (void)quit
{
	gtk_main_quit();
}

- (void)applicationDidFinishLaunching







<
<







22
23
24
25
26
27
28


29
30
31
32
33
34
35

#include <gtk/gtk.h>

#import "OGApplication.h"

OF_APPLICATION_DELEGATE(OGApplication)



@implementation OGApplication
+ (void)quit
{
	gtk_main_quit();
}

- (void)applicationDidFinishLaunching

Modified headers/OGApplication.h from [91e9dc1f84] to [aa438b285c].

37
38
39
40
41
42
43


@end

#define OG_APPLICATION_DELEGATE(cls)	\
	Class				\
	og_application_delegate() {	\
		return [cls class];	\
	}









>
>
37
38
39
40
41
42
43
44
45
@end

#define OG_APPLICATION_DELEGATE(cls)	\
	Class				\
	og_application_delegate() {	\
		return [cls class];	\
	}

extern Class og_application_delegate(void);

Modified win32/OGApplication.m from [3f6241711e] to [3fa8bda692].

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
LRESULT CALLBACK win32_OGWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
//==================================================================================================================================
@interface WndMsgReceiver
- (int)MessageReceived : (HWND)hwnd : (UINT)msg : (WPARAM)wparam : (LPARAM)lparam;
@end
//==================================================================================================================================
OF_APPLICATION_DELEGATE(OGApplication)
extern Class og_application_delegate(void);
//==================================================================================================================================
@implementation OGApplication
//----------------------------------------------------------------------------------------------------------------------------------
+ (void)quit
{
  PostQuitMessage(0);
}







<







32
33
34
35
36
37
38

39
40
41
42
43
44
45
LRESULT CALLBACK win32_OGWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
//==================================================================================================================================
@interface WndMsgReceiver
- (int)MessageReceived : (HWND)hwnd : (UINT)msg : (WPARAM)wparam : (LPARAM)lparam;
@end
//==================================================================================================================================
OF_APPLICATION_DELEGATE(OGApplication)

//==================================================================================================================================
@implementation OGApplication
//----------------------------------------------------------------------------------------------------------------------------------
+ (void)quit
{
  PostQuitMessage(0);
}