GithubHelp home page GithubHelp logo

shortcutrecorder's People

Contributors

chrisforsythe avatar ddauer avatar evands avatar michakfromparis avatar rudyrichter avatar vitu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shortcutrecorder's Issues

ShortcutRecorder.ibplugin could not be opened

From [email protected] on April 29, 2009 15:47:02

What steps will reproduce the problem? 1. Download revision 36 via svn
2. Open in Xcode, switch project base SDK to 10.5
3. Compile all
4. Doubleclick ShortcutRecorder.ibplugin

What is the expected output?
I assume it should add the palette to IB

What do you see instead?
A dialog:
The document “ShortcutRecorder.ibplugin” could not be opened. The bundle is damaged or
missing necessary resources. Try reinstalling the bundle. Please use labels and text to provide additional information. I'm on a 17" MBP, Xcode and Interface Builder 3.1.2

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=33

Cocoa Bindings extension patch

From [email protected] on July 09, 2010 16:58:53

Attached patch let's you use "shortcut" binding property with Interface Builder or others to achieve seamless mapping to NSUserDefaults.
This patch passes KeyCode when binding in form of an NSArray of {NSNumber - integer for code, NSNumber - unsigned integer for flags}
For example when setting Shift+Cmd+A we get:
$ defaults read com.mycompany.ShortcutRecorderBindings
{
globalShortcut = (
0,
1179648
);
}

For more information see: http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html

Attachment: ShortcutRecorder_Cocoa_Bindings.patch

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=41

Lack of 64 bit support

From [email protected] on October 18, 2008 04:36:49

This uses some APIs that don't exist in 64 bit. It's good that everybody compile their binaries to
include 64 bit support (universal), because even if one app on your computer uses 32 bit only, the
system will have to load all the shared libraries twice.

It looks from a brief look at the code like a fairly simple matter of #ifdef ing out the obsolete APIs
for people who don't care to support whatever old OS required them.

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=28

initWithPlistRepresentation & plistRepresentation point to the wrong modifer key

From [email protected] on September 24, 2006 20:11:19

What steps will reproduce the problem? //keycombo from preferences
id testHotKeyPlist = [defaults valueForKey: @"ShortcutRecorder testHotKey"];
PTKeyCombo* keyCombo = [[[PTKeyCombo alloc] initWithPlistRepresentation:
testHotKeyPlist] autorelease];

//Create hot key
testHotKey = [[PTHotKey alloc] initWithIdentifier: @"testHotKey" keyCombo: keyCombo]; What version of the product are you using? On what operating system? Latest SVN Update -- 10.4.7 Please provide any additional information below. When using an Auto Save Name for SRRecorderControl it saves the modifier flags under the key 

"modifierFlags" but the methods initWithPlistRepresentation & plistRepresentation in class
PTKeyCombo.m look for the key "modifiers" The key just needs to be changed to "modifierFlags"

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=12

continuous unrecognized selector warning

From [email protected] on September 05, 2010 14:51:31

What steps will reproduce the problem? 1. update ShortcutRecorder r51 to r53 What is the expected output? What do you see instead? a warning raise
2010-09-06 03:48:54.296 X-Chat Aqua[12140:a0f] +[SRKeyCodeTransformer reloadCache:]: unrecognized selector sent to class 0x1003caea0 Please use labels and text to provide additional information. please add -reloadCache: to SRKeyCodeTransformer or remove the call please

thanks ;)

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=42

Crashed when recording a key combination

From [email protected] on September 23, 2006 17:12:40

Copied from the Adium Crash Reporter, which is running shortcutrecorder revision [5].

Description: I wanted to reset the key combination to bring Adium forward, so I clicked the little
"x" thinking it would clear the key combination, but instead it was recording a new one, I clicked
outside of the field to lose focus and a few seconds later I got a spinning beachball of death and
then Adium crashed.

Reported by: [email protected]

Crash Log:
Host Name: iMac-Boven.local
Date/Time: 2006-09-23 11:12:01 0200
OS Version: 10.3.9 (Build 7W98)
Report Version: 2

Command: Adium
Path: /Applications/Adium.app/Contents/MacOS/Adium
Version: 1.0b13 (1.0b13)
PID: 1164
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 com.adiumX.adiumX 0x000906a8 -[CTGradient fillRect:angle:] 0x1dc
1 com.adiumX.adiumX 0x0008dd64 -[SRRecorderCell drawWithFrame:inView:] 0xfc
2 com.apple.AppKit 0x92ea7658 -[NSControl drawRect:] 0x114
3 com.apple.AppKit 0x92e77004 -[NSView _drawRect:clip:] 0x770
4 com.apple.AppKit 0x92e87a74 -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] 0xe8
5 com.apple.AppKit 0x92e73354 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x9c
6 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
7 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
8 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
9 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
10 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
11 com.apple.AppKit 0x92e73770 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x4b8
12 com.apple.AppKit 0x92ec0308 -[NSFrameView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0x124
13 com.apple.AppKit 0x92ea748c -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
0xc0
14 com.apple.AppKit 0x92e84648 -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 0x180
15 com.apple.AppKit 0x92e9d674 -[NSView displayIfNeeded] 0xa8
16 com.apple.AppKit 0x92f3e330 -[NSControl mouseDown:] 0xb8
17 com.apple.AppKit 0x92eb2590 -[NSWindow sendEvent:] 0x10e4
18 com.apple.AppKit 0x92ea4c3c -[NSApplication sendEvent:] 0xebc
19 com.apple.AppKit 0x92ead06c -[NSApplication run] 0x240
20 com.apple.AppKit 0x92f69764 NSApplicationMain 0x1d0
21 com.adiumX.adiumX 0x0000272c _start 0x2f8
22 com.adiumX.adiumX 0x00002430 start 0x30

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=11

Control focus ring clipped

From [email protected] on May 16, 2011 07:00:06

What steps will reproduce the problem? 1. Add the Framework and ib plugin to Xcode/IB3
2. Add an SRControl from the IB Palette
3. Build and run the app What is the expected output? What do you see instead? I would expect to get a nice SRRecorderControl, with a focus ring that is complete, however in my case I get a clipped rectangle that eats the focus ring in the corners What version of the product are you using? On what operating system? r58 on 10.6.7 with Xcode 3 and IB 3 latest versions, to use the IB Plugin. Please provide any additional information below. I initially built my code using XCode 4 and instantiating the control from code rather than with the IB plugin that doens't wok in 4, but encountered this problem. I thought it was maybe related to me using XCode 4 and wrongly initializing the control, but I have the same issue when using the implementation in IB.

Many thanks

Attachment: SRRecorderClipping.png

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=49

Can't build leopard branch

From [email protected] on February 10, 2009 03:00:45

I get the following errors building the leopard branch

Building target “ShortcutRecorder.framework” of project “ShortcutRecorder” with configuration
“Debug” — (15 errors, 5 warnings)
cd /Volumes/Thumb/leopard-only-shortcutrecorder
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -
std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-
variable -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mfix-and-continue -mmacosx-
version-min=10.4 -gdwarf-2 -I/Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Shortc
utRecorder.hmap -Wall -F/Volumes/Thumb/leopard-only-shortcutrecorder/build/Debug -
I/Volumes/Thumb/leopard-only-shortcutrecorder/build/Debug/include -
I/Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Derive
dSources -include /var/folders/9Z/9ZXJtv9pGbGxbOcrJKnzyE+++TI/-Caches-
/com.apple.Xcode.501/SharedPrecompiledHeaders/AppKit-
etgcopoonjtniydibovrcmbrxaqq/AppKit.h -c /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderControl.m -o /Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Object
s-normal/i386/SRRecorderControl.o
In file included from /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderControl.h:15,
from /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderControl.m:14:
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.h:39: error: syntax
error before 'NSGradient'
from /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderControl.m:14:
In file included from /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderControl.h:15,
/Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderCell.h:39: error: syntax error before 'NSGradient'
cd /Volumes/Thumb/leopard-only-shortcutrecorder
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -
std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-
variable -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mfix-and-continue -mmacosx-
version-min=10.4 -gdwarf-2 -I/Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Shortc
utRecorder.hmap -Wall -F/Volumes/Thumb/leopard-only-shortcutrecorder/build/Debug -
I/Volumes/Thumb/leopard-only-shortcutrecorder/build/Debug/include -
I/Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Derive
dSources -include /var/folders/9Z/9ZXJtv9pGbGxbOcrJKnzyE+++TI/-Caches-
/com.apple.Xcode.501/SharedPrecompiledHeaders/AppKit-
etgcopoonjtniydibovrcmbrxaqq/AppKit.h -c /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderCell.m -o /Volumes/Thumb/leopard-only-
shortcutrecorder/build/ShortcutRecorder.build/Debug/ShortcutRecorder.framework.build/Object
s-normal/i386/SRRecorderCell.o
In file included from /Volumes/Thumb/leopard-only-
shortcutrecorder/Source/SRRecorderCell.m:14:
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.h:39: error: syntax
error before 'NSGradient'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m: In function '-
[SRRecorderCell dealloc]':
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:66: error:
'recordingGradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:66: error: (Each
undeclared identifier is reported only once
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:66: error: for each
function it appears in.)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m: In function '-
[SRRecorderCell copyWithZone:]':
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:157: error: 'struct
SRRecorderCell' has no member named 'recordingGradient'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:157: error:
'recordingGradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m: In function '-
[SRRecorderCell drawWithFrame:inView:]':
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:219: error: 'CGFloat'
undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:219: error: syntax
error before 'radius'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:229: error: 'radius'
undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:230: warning:
'NSBezierPath' may not respond to '+bezierPathWithRoundedRect:xRadius:yRadius:'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:230: warning:
(Messages without a matching method signature
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:230: warning: will
be assumed to return 'id' and accept
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:230: warning: '...' as
arguments.)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:235: error:
'recordingGradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:256: warning:
'NSBezierPath' may not respond to '+bezierPathWithRoundedRect:xRadius:yRadius:'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:351: warning:
'NSBezierPath' may not respond to '+bezierPathWithRoundedRect:xRadius:yRadius:'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:409: warning:
'NSBezierPath' may not respond to '+bezierPathWithRoundedRect:xRadius:yRadius:'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:439: error:
'NSGradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:439: error:
'gradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:448: error: syntax
error before 'insetAmount'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:449: error:
'insetAmount' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:587: warning:
'NSBezierPath' may not respond to '+bezierPathWithRoundedRect:xRadius:yRadius:'
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m: In function '-
[SRRecorderCell(Private) _createGradient]':
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:1079: error:
'recordingGradient' undeclared (first use in this function)
/Volumes/Thumb/leopard-only-shortcutrecorder/Source/SRRecorderCell.m:1079: error:
'NSGradient' undeclared (first...

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=30

XCode: No launchable executable present at path

From vesselin.petkov on March 23, 2011 14:14:10

What steps will reproduce the problem? 1. checkout svn
2. open project in XCode
3. Build and Run What is the expected output? What do you see instead? According to the wiki the plugin should add itself to XCode.
I get "No launchable executable present at path" Please use labels and text to provide additional information. I might be wrong but i couldn't find any executable bundle. How to add the plugin after i build it with xcodebuild or using XCode's Build & Run option?

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=44

No instructions on how to use ShortcutRecorder with Xcode 4.

From [email protected] on September 14, 2011 07:46:46

Hi,

First off thanks for maintaining this code. It is very useful.

I have a Mac OS X 10.6 project under XCode 4 that uses the controls but the dependency on IB3 is becoming a maintenance problem.

I haven't found any information on how to use ShortcutRecorder without the plugin. Just removing the dependency to the plugin but keeping the "custom classes" isn't working for me. The controls draw correctly but when clicked they intercept all key strokes but never exit that mode.. as long as the program runs all output goes to the control..

Any guidance would be very much appreciated.

Best regards,

Frank

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=51

Code Review - Patch to enable Text Input Sources on Leopard

From [email protected] on February 13, 2009 14:51:02

Purpose of code changes on this branch: The KL* functions called in SRCommon.m and SRKeyCodeTransformer.m are deprecated on Leopard
and may be removed in 10.6. I've modified the methods so that they use the TIS api that is new in
Leopard.

After the review, I'd like to add this code into the Leopard branch for eventual inclusion in the
trunk. Note that some kind of preprocessor conditional should be used to keep the legacy method
in place for 10.4 and below.

Cheers,
Michael G

Attachment: leopard_tis.patch

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=31

NSError( SRAdditions ) breaks [NSApp presentError:] in Cocoa applications

From [email protected] on May 07, 2007 23:25:25

What steps will reproduce the problem? 1. Add ShortcutRecord to Cocoa project
2. Create NSError object using NSLocalizedDescriptionKey, etc constants
3. [NSApp presentError:] will display a blank error message

NSError( SRAdditions ) redefines NSError methods to use @"NSLocalizedDescriptionKey" instead of
NSLocalizedDescriptionKey constant.

Apple defines NSLocalizedDescriptionKey = @"NSLocalizedDescription" (no "Key" in the value).

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=15

new NSDistributedNotificationCenter feature make system slow down

From [email protected] on December 28, 2009 07:40:41

What steps will reproduce the problem? i am developer of xchat-aqua and it uses 2 SRRecorderCells and
SRStringForKeyCode in SRCommon.
after running, when focusing on xchat-aqua, it has no problem. but focusing
other application, it goes crazy and everything stop even more than some
minutes. What is the expected output? What do you see instead? What version of the product are you using? On what operating system? revision 51 on snow leopard Please provide any additional information below. i analyse it with sampler and found NSDistributedNotificationCenter
consumes whole resources. i patched below, then it become calm now. patch
just comment out NSDistributedNotificationCenter features.

Index: Source/SRKeyCodeTransformer.m

--- Source/SRKeyCodeTransformer.m (리비전 51)
+++ Source/SRKeyCodeTransformer.m (작업 사본)
@@ -117,7 +117,7 @@
return [NSString class];
}

+/*
//----------------------------------------------------------
// init
//----------------------------------------------------------
@@ -138,7 +138,7 @@
[[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];

}

+*/
//----------------------------------------------------------
// reloadCache
//----------------------------------------------------------

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=38

Application does not start with shortcutrecorder-framework on Leopard

From [email protected] on February 26, 2008 21:35:35

reproduce the problem:

  1. just link the framework to custom project
  2. select "Release" as build configuration
  3. and start your project What version of the product are you using? On what operating system? srleopard-prerelease2 on Mac OS X 10.5.2

I can build my XCode-Project with the framework, but i can not start it.
By starting it, i get this message: PROJECT exited with status 5. The Debugger is still running. Use
Restart to debug again.

Attachment: screen.png

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=21

Korean localization + Is localization working?

From [email protected] on July 26, 2011 04:30:59

See 0001.patch

There is new Korean localization for ShortcutRecorder.

And when I built an application using ShortcutRecorder, its localized text didn't shown.

with 0002.patch and adding the resources to the project, it works now.

Am I going wrong?

Attachment: 0001-add-Korean-localization.patch 0002-current-version-for-xcode-4.0.2.patch

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=50

ShortcutRecorder.ibplugin makes interface builder crashed

From [email protected] on April 29, 2010 11:37:08

I build the plugin with "ShortcutRecorder.ibplugin - standalone" target, 10.5|Release|x86_64,
with Xcode v3.2.1, then I installed the plugin by double-clicking the archive file
ShortcutRecorder.ibplugin in finder.

Then I opened the MainMenu.xib from Demo folder, and click the shortcut recorder widget on
the dialog, and click it again to view its value binding, then interface builder (v3.2.1) crashed.

Here are the crash log report:

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff878cf886 __kill + 10
1 libSystem.B.dylib 0x00007fff8796feae abort + 83
2 libSystem.B.dylib 0x00007fff87887a75 free + 128
3 libobjc.A.dylib 0x00007fff8151071b _internal_object_dispose + 60
4 com.apple.CoreFoundation 0x00007fff81a1144a -[NSObject(NSObject) dealloc] + 58
5 ...tRecorder.framework.Leopard 0x000000011d28ecfa -[SRRecorderCell dealloc] + 41
(SRRecorderCell.m:63)
6 com.apple.CoreFoundation 0x00007fff819f1d56 _CFAutoreleasePoolPop + 230
7 com.apple.AppKit 0x00007fff87f2462a _handleWindowNeedsDisplay + 686
8 com.apple.CoreFoundation 0x00007fff81a2d0d7 __CFRunLoopDoObservers + 519
9 com.apple.CoreFoundation 0x00007fff81a08f84 __CFRunLoopRun + 468

Even I removed all statements in dealloc function, it still crashes,

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff878cf886 __kill + 10
1 libSystem.B.dylib 0x00007fff8796feae abort + 83
2 libSystem.B.dylib 0x00007fff87887a75 free + 128
3 libobjc.A.dylib 0x00007fff8151071b _internal_object_dispose + 60
4 com.apple.CoreFoundation 0x00007fff81a1144a -[NSObject(NSObject) dealloc] + 58
5 com.apple.CoreFoundation 0x00007fff819f1d56 _CFAutoreleasePoolPop + 230
6 com.apple.AppKit 0x00007fff87f2462a _handleWindowNeedsDisplay + 686

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=39

Memory leak

From [email protected] on March 10, 2008 18:37:26

--- SRCommon.m 2008-03-10 22:34:45.000000000 +0000
+++ SRCommon.m.new 2008-03-10 22:35:11.000000000 +0000
@@ -464,16 +464,17 @@
[cross setLineWidth:hScale*1.2];

[cross moveToPoint:MakeRelativePoint(4,4)];
[cross lineToPoint:MakeRelativePoint(10,10)];
[cross moveToPoint:MakeRelativePoint(10,4)];
[cross lineToPoint:MakeRelativePoint(4,10)];

[cross stroke];
  • [cross release];
    }
  • (void)_drawSRRemoveShortcut:(id)anNSCustomImageRep {

// NSLog(@"drawSRRemoveShortcut using: %@", anNSCustomImageRep);

[self _drawARemoveShortcutBoxUsingRep:anNSCustomImageRep opacity:0.75];

}

  • (void)_drawSRRemoveShortcutRollover:(id)anNSCustomImageRep {

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=22

Blows up with Garbage Collection

From [email protected] on September 02, 2008 08:36:39

XCode 3.1, Leopard 10.5.5

There seems to be something going wrong with garbage collection and this component, getting
the error:

malloc: *** resurrection error for object 0x108d7f0: auto_zone_write_barrier:
NSTrackingArea._owner48[20] = SRRecorderCell144

malloc: *** auto malloc[1409]: error for object 0x108d7f0: pointer in garbage list being stored
into reachable memory, break on auto_zone_resurrection_error to debug

I've checked and double checked the usual garbage collection issues, like making sure all my
objects are attached. I'm loading a NIB, letting it go, and loading it again, and getting this error.

I've tried diving into the code and fiddling, but I'm not sure what is wrong. Anybody else using
GC?

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=25

Conflict with SpellCatcher

From [email protected] on March 30, 2011 06:39:20

What steps will reproduce the problem? 1. Install SpellCatcher ( http://www.rainmakerinc.com/downloads/ )
2. Set the keyboard layout to "SpellCatcher"
3. Run your own app with SR in it, and then try to edit a shortcut in a SRRecorderCell What is the expected output? What do you see instead? We'd expect the new shortcut to be registered normally; instead, it generates an empty alert, and does not record the keyboard shortcut.

Additional info:
With the help from Steven Audette and Antonin (TotalFinder) we were able to identify a "fix" - though it might not be the official fix you guys want to use, it shoudl give you an idea of the problem...

In SBKeyCodeTransformer.m, change line 166 from:

if (!layoutData) return nil;

to

CFRelease(tisSource);

    // Japanese and Chinese keyboards are not unicode layouts, so default to US
if(!layoutData) {
    tisSource = TISCopyCurrentASCIICapableKeyboardLayoutInputSource();
    layoutData = (CFDataRef)TISGetInputSourceProperty(tisSource, kTISPropertyUnicodeKeyLayoutData);
    CFRelease(tisSource);
}
if (!layoutData) return nil;

And that seems to fix the issue

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=45

Ctrl-Option-V not recorded

From [email protected] on September 02, 2008 08:42:48

On two machines I've tries, the component can't record Ctrl-Option-V, saying that it is already
taken as a global key, and to try editing System Prefs, keyboard hotkeys.

Well I don't have that defined. If anyone has a clue why that combo would be taken, or otherwise
want to document what other places in the OS can take global hotkeys, it would be good.

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=27

Mouseover doesn't work under certain circumstances

From [email protected] on July 30, 2006 13:13:30

Steps to reproduce:
1. Go into recording mode
2. Hold mouse over the snapback area
3. Type keycombo OR hit escape/delete

Expected behavior: Remove badge will be highlighted

Observed behavior: Mouse is over the remove badge but the badge is not highlighted. Moving
the mouse outside and inside again will highlight the badge.

=> When a keycombo is already set and the snapback badge is clicked, the badge is highlighted
correctly!

=> Reason: The event generated immediately after performKeyEquivalent in
ShortcutRecorderCell's resetTrackingRects method (NSPoint mouseLocation...) contains a stupid
mouseLocation! Dunno...

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=1

Needs active delegate function

From [email protected] on September 02, 2008 08:40:16

I've noticed programs using this component suffer from this defect: Let's say you use it to assign a
global hot key that does XYZ. So you enter the keystroke, and the hotkey is defined. Now if you
want to re-enter the key, you can't, because that key is now overridden to do XYZ, and the
component can't see it.

It seems to me that when this component becomes active listening to keystokes, it should call a
delegate function. The user function would then disable all the program's hotkeys temporarily.
Then when the component is done getting its keystroke, another delegate function would re-
enable whatever the key is supposed to do.

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=26

Hotkey detection while in NSEventTrackingRunLoopMode doesn't work?

From [email protected] on April 03, 2011 11:22:17

I'm using ShortcutRecorder/PTHotKeyCenter/etc in an app of mine (QuickCal). I noticed that while in NSEventTrackingRunLoopMode (I've got a status bar item with a menu; clicking into that jumps into that runloop mode) - that global hotkeys registered with PTHotKeyCenter don't function.

I'm guessing it has something to do with GetEventDispatcherTarget() in the registration inside PTHotKeyCenter, but I'm not sure - and I'm not proficient in this Carbon event stuff.

Any pointers?

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=46

Invalid modifier bitmask passed to UCKeyTranslate

From [email protected] on October 24, 2009 18:02:43

There is a bug in SRCommon.m's
|SRCharacterForKeyCodeAndCocoaFlags()|. I don't know what this function
is used for, so I don't know if this is an actual problem, but here goes:

The function contains the following code:

if (cocoaFlags & NSAlternateKeyMask)    modifiers |= optionKey;
if (cocoaFlags & NSShiftKeyMask)        modifiers |= shiftKey;
    // ...
err = UCKeyTranslate( /* ... */, modifiers, /* ... */);

This is wrong. It should be:

    // ...
err = UCKeyTranslate( /* ... */, modifiers >> 8, /* ... */);

See http://developer.apple.com/mac/library/documentation/Carbon/Reference /Unicode_Utilities_Ref/Reference/reference.html#//apple_ref/c/func/UCKe
yTranslate (or pass in keyCode 0 ("m" key) and NSAlternateKeyMask. This
should return "µ" but returns "m").

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=35

Selection of F- keys not allowed, even if unassigned

From [email protected] on August 26, 2008 17:14:58

ShortcutRecorder does not allow the choice of the F1 - F19 keys, even if they're unassigned in
System Preferences, claiming that they're in use globally.

The reason for this is that SRValidator performs a single-character comparison
(globalHotKeyUniChar == localHotKeyUniChar) rather than a string comparison. It is true that
this character comparison is "cheaper" than whole string, but both function keys and number pad
keys are composed of multiple letters.

Using the method currently in place, the check will result in something like "F" == "F", which is
true, when the keys really being compared may be "F5" == "F6", which is false.

The solution to this is to instead compare the raw signed short values of the key codes. I've
modified SRValidator for my own application, and it now validates perfectly. :)

I've attached a copy of my version of SRValidator. Pay special attention to lines 81 and 82
(commented out unused variables), lines 104 and 105 (changed globalHotKeyCharCode to use
shortValue rather than unsignedShortValue, and commented out character line), line 118
(commented out unichar assignment), and lines 122 and 123 (changed condition to compare char
codes).

Attachment: SRValidator.m

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=24

ENHANCEMENT REQUEST: Record double tap of modifier keys

From [email protected] on April 05, 2008 23:04:06

What steps will reproduce the problem? 1. Click to record shortcut.
2. Double tap the command key What is the expected output? What do you see instead? Shortcut does not record. The shortcut should record as a double-tap of the command key. What version of the product are you using? On what operating system? Latest release version. Mac OS X 10.5.2. Please provide any additional information below. This should work for other modifiers, and possibly combinations of modifier keys.

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=23

Do not use categories to change standard behavior of built-in classes

From [email protected] on February 10, 2007 06:18:42

Firstly, I want to thank you for open-sourcing the shortcut recorder. It makes my life a lot easier.

But I do want to make a suggestion: I just wasted 2 hours wondering why 'localizedDescription'
of the NSError class was returning nil, when Apple states that should never happen. Luckily, I did
a search and realized that the shortcut recorder code had a category that changed the standard
implementation of NSError, and also did this 'wrong'.

@interface NSError( SRAdditions )

  • (NSString *)localizedFailureReason;
  • (NSString *)localizedRecoverySuggestion;
  • (NSArray *)localizedRecoveryOptions;
    @EnD

This is bad practice, because it is unexpected for developers (like me). The versions you have
supplied do things quite similar to Apple, but get the userinfo keys wrong, which means null is
returned.

I suggest that if you need specialized behavior of NSError, make a subclass. Using a category in
public code is not a good idea if you are going to change the functionality of standard Cocoa
methods.

Drew McCormack

Original issue: http://code.google.com/p/shortcutrecorder/issues/detail?id=14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.