API
0.9.10
CPPlatform.j
Go to the documentation of this file.
1
/*
2
* CPPlatform.j
3
* AppKit
4
*
5
* Created by Francisco Tolmasky.
6
* Copyright 2010, 280 North, Inc.
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
@implementation
CPBasePlatform
:
CPObject
23
{
24
id
__doxygen__;
25
}
26
27
+ (void)
bootstrap
28
{
29
[
CPPlatformString
bootstrap
];
30
[
CPPlatformWindow
setPrimaryPlatformWindow
:[[
CPPlatformWindow
alloc
] _init]];
31
}
32
33
+ (BOOL)
isBrowser
34
{
35
return
NO;
36
}
37
38
+ (BOOL)
supportsDragAndDrop
39
{
40
return
NO;
41
}
42
43
+ (BOOL)
supportsNativeMainMenu
44
{
45
return
NO;
46
}
47
48
+ (void)
terminateApplication
49
{
50
}
51
52
+ (void)activateIgnoringOtherApps:(BOOL)shouldIgnoreOtherApps
53
{
54
}
55
56
+ (void)
deactivate
57
{
58
}
59
60
+ (void)hideOtherApplications:(
id
)aSender
61
{
62
}
63
64
+ (void)hide:(
id
)aSender
65
{
66
}
67
68
@end
69
70
#if PLATFORM(DOM)
71
#include "DOM/CPPlatform.j"
72
#else
73
@implementation
CPPlatform
:
CPBasePlatform
74
{
75
id
__doxygen__;
76
}
77
@end
78
#endif
CPObject
Definition:
CPObject.j:103
+[CPBasePlatform supportsNativeMainMenu]
BOOL supportsNativeMainMenu()
Definition:
CPPlatform.j:43
CPBasePlatform
Definition:
CPBasePlatform.h:2
CPPlatform
Definition:
CPPlatform.h:2
+[CPBasePlatform supportsDragAndDrop]
BOOL supportsDragAndDrop()
Definition:
CPPlatform.j:38
+[CPBasePlatform bootstrap]
void bootstrap()
Definition:
CPPlatform.j:27
+[CPBasePlatform deactivate]
void deactivate()
Definition:
CPPlatform.j:56
CPPlatformWindow
Definition:
CPPlatformWindow.h:2
+[CPPlatformWindow setPrimaryPlatformWindow:]
void setPrimaryPlatformWindow:(CPPlatformWindow aPlatformWindow)
Definition:
CPPlatformWindow.j:100
CPPlatformString
Definition:
CPPlatformString.h:2
+[CPBasePlatformString bootstrap]
void bootstrap()
Definition:
CPPlatformString.j:27
+[CPBasePlatform terminateApplication]
void terminateApplication()
Definition:
CPPlatform.j:48
+[CPBasePlatform isBrowser]
BOOL isBrowser()
Definition:
CPPlatform.j:33
+[CPObject alloc]
id alloc()
Definition:
CPObject.j:130
AppKit
Platform
CPPlatform.j
Generated on Tue Jul 11 2017 16:20:42 for API by
1.8.13