adium/adium
Clone
Summary
Browse
Changes
Graph
Some more fixes to ESObjectWithProperties:
2012-08-08, Thijs Alkemade
f9f4bea878af
Some more fixes to ESObjectWithProperties:
- Remove incorrect cast to NSInteger
- Zero-initialize the buffers
- Remove redundant code where calling methods nil would be work
//
// SGKeyCodeTranslator.h
// SGHotKeyCenter
//
// Created by Justin Williams on 7/26/09.
// Copyright 2009 Second Gear. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#include
<Carbon/Carbon.h>
#include
<CoreServices/CoreServices.h>
@interface
SGKeyCodeTranslator
:
NSObject
{
TISInputSourceRef
keyboardLayout
;
const
UCKeyboardLayout
*
keyboardLayoutData
;
NSUInteger
keyTranslateState
;
UInt32
deadKeyState
;
}
@property
(
nonatomic
,
assign
)
TISInputSourceRef
keyboardLayout
;
+
(
id
)
currentTranslator
;
-
(
id
)
initWithKeyboardLayout:
(
TISInputSourceRef
)
theLayout
;
-
(
NSString
*
)
translateKeyCode:
(
short
)
theKeyCode
;
@end