API  1.0.0
CPObjJRuntime.j
Go to the documentation of this file.
1 /*
2  * CPObjJRuntime.j
3  * Foundation
4  *
5  * Created by Francisco Tolmasky.
6  * Copyright 2008, 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 
23 function CPStringFromSelector(aSelector)
24 {
25  return sel_getName(aSelector);
26 }
27 
28 function CPSelectorFromString(aSelectorName)
29 {
30  return sel_registerName(aSelectorName);
31 }
32 
33 function CPClassFromString(aClassName)
34 {
35  return objj_getClass(aClassName);
36 }
37 
38 function CPStringFromClass(aClass)
39 {
40  return class_getName(aClass);
41 }
42 
61 
CPOrderedAscending
Definition: CPObjJRuntime.j:48
function CPStringFromClass(aClass)
Definition: CPObjJRuntime.j:38
CPOrderedSame
Definition: CPObjJRuntime.j:54
function CPSelectorFromString(aSelectorName)
Definition: CPObjJRuntime.j:28
CPOrderedDescending
Definition: CPObjJRuntime.j:60
CPNotFound
Definition: CPObjJRuntime.j:62
function CPStringFromSelector(aSelector)
Definition: CPObjJRuntime.j:23
function CPClassFromString(aClassName)
Definition: CPObjJRuntime.j:33