IB Keyboard Shortcut to NSButton calls increment: method twice

I have an increment: IBAction method that gets called when a keyboard shortcut in Interface Builder triggers a button. This method only has one line: [speedSlider setFloatValue:[speedSlider floatValue] + incrementValue]; that increments an NSSlider control. I put an NSLog statement after that to confirm it was getting called twice, and about 0.15 seconds apart. Why would this happen?

Well, I've found a fix - using spacebar, page down, the arrow keys, or other "special" keys as shortcuts results in the 10.4 binary not working properly. The easiest fix I can find is just to modify the shortcuts to more "standard" ones. In any case, if anyone's interested in seeing the final app it's called AquaPrompt and it's available at http://www.apple.com/downloads/macosx/video/aquaprompt.html or at my site at http://novastormsoftware.isgreat.org/main/aquaprompt/. It's even a Staff Pick!

Similar Messages

  • Why am I unable to use Ctrl+Shift keyboard shortcuts in the Kotoeri input method on OS X 10.9?

    For some reason I'm unable to switch from Hiragana to Katakana and vice versa using the Ctrl+Shift+K and Ctrl+Shift+H keyboard shortcuts when using the Kotoeri IME. The shortcuts appear in the IME menu in the menubar.
    Have these shortcuts been changed in OS X Mavericks and the menu not updated, or does the menu not actively reflect the current keyboard shortcut settings? I'm using OS X 10.9.1 (if that helps at all).
    Any help would be greatly appreciated!

    Thanks for the hint! I hadn't realized that Xcode 5.1.1 was so huge (2.18Gb) and assumed after an hour that the installation had frozen.

  • Keyboard shortcut to NSButton...

    Hi everybody,
    does anybody know a reason for a keyDown event to work on two different machines in
    my office but not on the machines of our client? Basically, what I do is to overwrite the
    keyDown event of my NSWindowController class to check if the key is spacebar and to do
    the action I want to... the problem is, as I said before, this all works here(my office) but not
    on the machines of my clients. What I use to recognize the right keystroke is:
    /* Spacebar hex virtual key code is 0x31 */
    unsigned int virtualKeyCode = [event keyCode];
    NSString* testStr = [[NSString alloc] init];
    testStr = [event characters];
    //Doing two tests just to be sure, both are true when
    //pressing spacebar on my Mac!
    if([testStr isEqual:@" "] || virtualKeyCode == 49)//is Space Bar?
    //used to control the button's holding down, the capture action is
    //done only once(even if the button is kept held down).
    if(![event isARepeat])
    I am not sure what am I doing wrong any fresh ideas are more than welcome!
    Regards,
    artOf...

    Hi all,
    @xnav - I already tested the client machine with the KeyCodes application... The result is the same
    as on my machine so it should work, may be my event (keyDown) is not implemented correctly. If
    this is the case, there is a 'small' detail you need to know - I subclassed the NSButton class in order
    to overwrite the mouseUp/mouseDown methods for the button and now what I am going for is:
    don't care where mouse is, if a spacebar is pressed do what the NSButton should do if clicked with the mouse. As I said, this all works on my machine... Below is part of the code of my NSButton:
    ::CameraCaptureButton.h
    * Class Name: CameraCaptureButton
    * Description: Subclassing the NSButton in order to overwrite
    * the main event handlers of the button control
    @interface CameraCaptureButton : NSButton {
    /* helps to take the right branch when the capture command
    * evaluated
    BOOL isMirrorUpSecondClick;
    /* helps to communicate the right behavior to the camera when
    * both mirrorUp and buld mode are on
    int bulbModeStartingStep;
    /* Used to prevent the mouseDown event to be send 2 times
    * This is usually done with the isARepeat command send to
    * the current event object - it does not work here.
    BOOL isButtonAlreadyClicked;
    /* Constructor
    * Description: Default initialization
    - (id)initWithFrame:(NSRect)frame;
    /*Get-Set properties*/
    -(BOOL) isMirrorUpSecondClick;
    -(void) setIsMirrorUpSecondClick: (BOOL) input;
    -(BOOL) isButtonAlreadyClicked;
    -(void) setIsButtonAlreadyClicked: (BOOL) input;
    -(int) bulbModeStartingStep;
    -(void) setBulbModeStartingStep: (int) input;
    /* Event Handler - handles the mouse down event of this button,
    * decides what kind of capture command to send to the camera.
    - (void) mouseDown:(NSEvent *)theEvent;
    /* Event Handler - handles the mouse up event of this button,
    * stops or sends the actual capture action.
    - (void) mouseUp:(NSEvent *)theEvent;
    @end
    ::CameraCaptureButton.m
    #import "CameraCaptureButton.h"
    #import "MyController.h"
    @implementation CameraCaptureButton
    - (id)initWithFrame:(NSRect)frame
    self = [super initWithFrame:frame];
    if (self)
    //... working code here
    return self;
    -(BOOL) isMirrorUpSecondClick
    return isMirrorUpSecondClick;
    -(void) setIsMirrorUpSecondClick: (BOOL) input
    isMirrorUpSecondClick = input;
    -(BOOL) isButtonAlreadyClicked
    return isButtonAlreadyClicked;
    -(void) setIsButtonAlreadyClicked: (BOOL) input
    isButtonAlreadyClicked = input;
    -(int) bulbModeStartingStep
    return bulbModeStartingStep;
    -(void) setBulbModeStartingStep: (int) input
    bulbModeStartingStep = input;
    - (void) mouseDown:(NSEvent *)theEvent
    //...working code here
    - (void) mouseUp:(NSEvent *)theEvent
    //..working code here
    @end
    Code in MyControllerClass:
    // The keyDown event filters the keys and reacts only if the key is the Space Bar
    // (the keyDown or keyUp events are never called if the focus is on the NSTextField
    // hence, the user can freely enter characters in the text boxes without the event
    // being continuously called by the key strokes).
    // After that the method just sends the proper message 'releaseCam' as it was send
    // by the button itself.
    - (void)keyDown:(NSEvent *)event
    /* Space bar hex virtual key code is 0x31 */
    unsigned int virtualKeyCode = [event keyCode];
    NSString* testStr = [[NSString alloc] init];
    testStr = [event characters];
    if([testStr isEqual:@" "] || virtualKeyCode == 49)//is Space Bar?
    //used to control the button holding, the capture action is
    //done only once(even if the button is kept hold down) as required
    if(![event isARepeat])
    if(isCaptureButtonOn && (leCamera != NULL))
    //... working code here
    // The keyUp event also filters the keys and does a simple image switch, if the
    // 'space bar' is pushed.
    - (void)keyUp:(NSEvent *)event
    if(isCaptureButtonOn && (leCamera != NULL))
    /* Space bar hex virtual key code is 0x20 */
    //unsigned int virtualKeyCode = [event keyCode];
    //if(virtualKeyCode == 49)
    unsigned int virtualKeyCode = [event keyCode];
    NSString* testStr = [[NSString alloc] init];
    testStr = [event characters];
    if([testStr isEqual:@" "] || virtualKeyCode == 49)//was it the SpaceBar?
    //.. working code here
    Thanks again. Fresh ideas welcome
    Best Regards,
    -artOf...

  • Looking for these keyboard shortcuts in FCP X

    Looked through the FCP X keyboard shortcut list and looks like I must have missed it, but can anyone tell me:
    What's the keyboard shortcut for:
    [1] advancing forward or back in the timeline by the second rather than every 10 frames?
    [2] Rippling forward/back? Keyboard shortcut? Can't find this anywhere! Do I really have to use the mouse for editing and trimming forward / back?
    When I click "Option+[" to trim forward, my whole timeline window moves more and more to the right, why???? 
    Not being able to find these keyboard shortcuts, causes my editing to take twice as long now.
    Looks like nearly every single keyboard shortcut is different in FCP X as opposed to FCP7. This is maddening, but I'm determined to learn it.

    Hi
    Configure Track Header is there (provided you have Advanced Tools turned on in the Preferences):
    Or Control click:
    Within the Track Header options there is an "On/Off" button which should do what you want:
    CCT

  • Option to disable/change "Skype Call" keyboard shortcut

    Hi I'm using a keyboard layout that uses the key-combination "altgr+r" to write a special character that I use fairly often when chatting with people, this however is the command for "Make Skype Call" in the Skype client so every so often I accidentally make a skype call when chatting with people because of this. Why can't the keyboard shortcut be changed or disabled/removed?! This is incredibly annoying to me and disruptive to people i communicate with.
    Unless this keyboard shortcut is able to be changed/disabled I will have to start using alternative clients/services.

    Ok Alt+A is a **bleep**up on my side, it is a shortcut used by KeePass to insert credentials....but Alt+R remains

  • Photoshop CC - keyboard shortcut unit increments

    Hi everyone. InDesign and Illustrator both have the options in their preferences to set unit increments that relate to altering type attributes such as font size, kerning, tracking, leading with keyboard shortcuts. For instance I like to be able to adjust tracking by 1/1000 em, leading by 1pt etc.
    However, I can't find any way to set Photoshop up to do a similar thing. It defaults to 20/1000 em tracking increment. Anybody know a way to change that I don't?
    Cheers
    Keith

    Have you tried a different keyboard to exclude a defective Option key?
    How did you delete the Photoshop preferences.  If you did that manually (very bad idea) try it the proper way:
    Preference filenames and locations in Photoshop CC
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"

  • Keyboard shortcuts from Tiger/Leopard not working in Snow Leopard

    OK, here are two examples: In Mail.app I used to press CMD-option-J to invoke the Delete Junk Mail dialog. Now it doesn't work if I have switched to the English US keyboard input method; any other selection of keyboard input works (I use English US, Greek, Unicode Hex Input and another greek one from vodkatini.gr called "Ελληνικά").
    Also, within Graphisoft ArchiCAD 13 I used option-O (that's the letter 'O') to access one command (it's Document>Layout Book>Open assigned Master Layout). This worked up until I switched to Snow Leopard. Now it only works if I have enabled the Unicode Hex Input keyboard input method.
    Anyone cares to shed some light? Has something changed in the way keystrokes are interpreted in the new OS?
    FWIW, when I go to ArchiCAD's keyboard shortcuts preferences dialog (it's where the user can customize them to their liking), for the first time ever I notice the following: if I try to assign option-O as the shortcut for a command, the field which should confirm visually what I have pressed (and which up until now used to reflect my keystroke by displaying "Option-O" so I can be sure what I am trying to assign to the specific command) now shows "ø". Now, at first it looks like Snow Leopard is interpreting the keystroke as the special 'o' with the diagonal (sorry, don't know what it's called); it's puzzling, though, that it doesn't behave the same way when I press option-E for the keystroke (which should, by analogy, produce the character 'é') and so on.
    Thanks for any tips, people.

    None of this works for me because, as I'm using SpamSieve, Mail's inbuilt Junk Mail filtering is turned off and I don't have a 'Junk' folder. What is puzzling is that I certainly used this shortcut before (I think to empty the Trash after deleting everything from the 'Spam' folder - which moved it to the Trash) which seems a bit odd. After the upgrade I found this didn't work. Adding a Greek keyboard made no difference.
    Perhaps someone who isn't using SpamSieve can try this out.

  • Keyboard shortcuts not working sometimes

    iPad Air with iOS 8.1
    periodically my keyboard shortcuts stop working. I can't seem to come up with a method of getting them to work again. It seems though that eventually they will work. Does anyone else who experiences this problem have a solution?
    I've tried
    resetting the iPad and
    quitting all open apps and then resetting the ipad

    Adding some new info...
    It's a syncing issue with iCloud "Dictionaries" which is a hidden folder in the iCloud Drive folder. If you're a dev or comfortable using Terminal, the following command will place a "real iCloud drive" folder on your desktop which will allow you to see ALL the items in iCloud Drive. Inside this folder is the folder called "Settings" and then "Dictionaries". You can then see other nested folders from each device ID (Macs, iOS) that write to iCloud.
    This is not a fix but here's the steps to view those:
    1) In terminal:
    ln -s ~/Library/Mobile\ Documents/ ~/Desktop/Real\ iCloud\ Drive
    2) You will now have an alias on your desktop to the iCloud Folder (you must choose to view it in a Finder window as list view)
    Drill down until you find a file with the extension .cdt
    3) Duplicate that file onto your desktop and CHANGE the extension to .zip and unzip it.
    4) ADD the extension .plist to the end of the UNIX file that was unzipped and then you can view it in text edit app and see the shortcuts info.
    Again, not fixing anything, but trying to narrow it down and hope that some developer/programmer out there with better knowledge than mine can help!
    Just a reminder to everyone to report the issue to Apple and go to Genius Bar if you have the time and call Apple Support:
    https://www.apple.com/feedback/icloud.html

  • Converting Mac keyboard shortcuts to Windows/PC based shortcuts.

    Hello,
    Let me say, I have been using Mac based platforms since close to 1991 on and off. I used System 7 (and OS 8/9, but close enough to System 7) for many years up until I started to use Windows starting on the later 9x and XP platforms. As I start to drift away from Windows to more likely use Macs, however I would like to have a consistent keyboard shortcut system similar to Windows or Linux/UNIX (for that matter).
    I actually get confused very easily switching from Macs and Windows with keyboard commands often when I use Windows comp and when I am using the Mac. (Just switching from different kinds of keyboards confuse me from the razor thin keys to a regular keyboard, because going from another one confuses me because of different pressures to press the on.)
    I also believe this may have to do with a "workflow" process/scripting, if I am not mistaken. Is there a script I can download, that has close to the standard Windows/PC commands that I can import into the Mac, and can these scripts be edited to adapt my own commands as well? Is there a way to use most of the function keys (F1-12) for the standard commands for the different purposes? I also would like the Option (alt)-Tab to cycle the different apps and Option-Esc to cycle all windows opened. I would like to try to reduce all Option/Command/Control/Shift commands to just a couple of keystrokes or an F key. These modifier keys I think are becoming old, especially since it doesn't meet Apple's simplicity, giving there is up to three keystrokes to press at a given time for some commands.
    I had tried the way on the System Preferences, but it doesn't go globally through all applications - real problem lies on the Apple apps on some. I strongly believe this is possible to do, since it might be able to work via a scripting system. I hope this could work. Apple has come a long way to open up the system's architecture without really messing things up, or just opening up the OS without hex apps is great. I hope they can just keep this up so the users can decide how they want their mac to work, because they know what's right for their purposes.
    Thanks in advance,
    Steven

    You may like youpi key. It is free. It works fairly well for me in MAC OS 10.4 although not officially supported. There is a commercial version you can buy, called iKey.
    http://www.versiontracker.com/dyn/moreinfo/macosx/11485&vid=75326
    Here is my script for listing my application folder. I have it assigned to function-key 6.
    tell application "Finder"
    activate
    select window of desktop
    make new Finder window to startup disk
    select Finder window 1
    set target of Finder window 1 to folder "Applications" of startup disk
    select Finder window 1
    set position of Finder window 1 to {60, 45}
    end tell
    This script was automatically generated in script editor record mode. After I recorded the script and did some minor editing, I copy the script to youpi key.
    I have all of my frequently used applications set to function keys. I am thinking of changing the switching to Scripts because there seems to be a side effect to some of the switching like the speaking.

  • Automatically run a keyboard shortcut after opening a document

    I unknowingly posted this elsewhere, but was asked to post this here.
    I have a curio document/template that I use often.
    Curio has a mode called: full screen view, which only works by:
    the keyboard shortcut: Cmd *
    or by: click on Window and then clicking on Full Screen
    I'm looking for a way to have all my documents open up full screen every time I open curio (or curio documents). Is there an apple script or automator action possible for this? Can you pls help? I'm new to this. Thanks.
    I tried what was posted by arthur, but apart from the document opening up in curio, it does not go to full screen.
    http://discussions.apple.com/message.jspa?messageID=11128555#11128555
    Maybe something's wrong with my workflow. I noticed that Curio is not coming to front. Is that it?
    I then tried the link provided by baltwo, and installed automatedworflows.com demo 'type keystroke', but i only get the demo pop-up.
    I appreciate any help. Thx.

    then the workflow should be like this.
    1. open "finder items".
    2. run "apple script"
    on run {input, parameters}
    tell application "Curio" to activate
    tell application "System events" to keystroke "8" using {command down, shift down}
    end run
    save it as an application and put it on the desktop and/or in the dock. also go to system preferences->universal access and check the box to enable access to assistive devices.
    now when you drop a file onto your automator application it should open that file with Curio and then execute the shortcut commandshift8.

  • How can I delete words from the "Replace list" on my Mac without deleting them in "Keyboard Shortcuts" on my iPhone?

    I have scoured the internet but I have not been able to find a solution for this issue. It seems my "Replace list" and "with list", or "Keyboard Shortcuts" as it's called on the iPhone (Where to find it on a Mac ; Where to find it on an iPhone) migrated from my iPhone (iOS 8.1.2) to my Macbook (OSX Yosemite 10.10.1) when I logged in with my iCloud account.
    I really, really don't want this feature on my computer but I do want it on my phone. However, whenever I delete words on my computer they get deleted from my phone and vice versa. Is there any way to disable this on my computer? This is what my settings look like now:
    It seems like other people must not be bothered by this since I can't find anything about it online... but it's driving me nuts. And I've disabled autocorrect in my settings and for the programs I use but it happens no matter what. Is the only solution to this logging my computer out of my iCloud account? I can't believe there is no other way around this...
    Thanks in advance for your help!

    Hi,
    Of the items you have left in iCloud that are syncing the "Notes" one might be the most logical.
    In some cases items in Accessibility can effects things like this but I see no obvious candidates.
    9:31 pm      Wednesday; April 8, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How do I setup a keyboard shortcut for an item in the Services menu?

    In every Application, under the application menu is a "Services" folder. I would like to be able to setup a keyboard shortcut for one of these services (namely Skype).
    I am a heavy user of the "Services > Skype > Call" command and I would love to have a keyboard shortcut for it.
    I went to System Preferences > Keyboard & Mouse > Keyboard Shortcuts, clicked on the plus sign to create a new shortcut (all applications) and entered "Services…Skype…Call" and assigned it to a keyboard command (shift-F1).
    It doesn't work. Any clue as to what I am doing wrong?

    Hi
    Also - have a look at the reply I gave at the link below (sorry - don't know how to insert proper links here).
    May be of interest, maybe not.
    Best,
    D
    http://discussions.apple.com/message.jspa?messageID=7932030#7932030

  • How do I change the keyboard shortcut for Cycle through open documents in PS CC for Mac?

    Sorry to bug the community with such a seemingly inconsequential task, but I am seriously tired of using the awkward default keyboard shortcut for cycling through open docs in PS.  I'd like to change it to what I am used in in Chrome, which is Cmd+Option+[left] or {right} arrow keys.  I noticed this is not a command listed in the in keyboard shortcuts, for whatever reason.  Where on Earth can I change this? 
    If it is not possible to do it by default, is there a plug-in or a change to the code that will allow this basic functionality? 
    Thanks again guys and gals!

    As far as I know, you can't. It's "hard wired" in.  Not even Edit > Keyboard Shortcuts is allowed  to change it.
    However I did find this tip:
    Anyway i never found tabs in Adobe application useful, instead i prefer the old school method: simply switch off tabs feature via illustrator/ preferences/ user interface/ open documents as tabs. Then in Mac preferences panel, under keyboard, just search for the “focus on next application window” field (under menu, keyboard and text) and assign a shortcut if the default option doesn't fit you. And there is now you can easily switch between open documents!.
    The best part of this is that it can be used in all mac applications, not only Adobe ones. And remember, if you want this working on Indesign, Photoshop, etc be aware of first switch off the tab features so that the system could “see” multiple documents opened not only one single tabbed document.
    Gene

  • Keyboard shortcuts no longer working on 10.5 in Firefox and Photoshop

    We developed an Inuttitut keyboard layout for Mac OS X 10.4 and above (Inuttitut is the language of the Inuit in Nunavik, the most northerly region of Québec province in Canada). For information, our layout allows to type in Unicode whenever Caps Lock is on (Caps Lock off giving the standard Canadian English keyboard) and our keyboard layout Nunavik [Unicode] CSA can be dowloaded from this webpage (http://www.kativik.qc.ca/en/aipai-fonts). The only problem we found is on 10.5, both with FireFox (2 and 3) and Photoshop (CS3). When we select our keyboard layout (using Mac OS Input Method Selector), shortcuts using the Cmd key don't work anymore (Cmd-C for copying, etc.) in FireFox when Caps Lock is on, and in Photoshop whether Caps Lock is on or off.
    It is important to note that our keyboard layout abides by the Mac OS X standards for developing keyboard layouts, and works perfectly with all other applications we have tested so far, on Mac OS X 10.4 and 10.5.
    We believe that 10.5 has a new feature whose side effect is to render shortcuts ineffective for FireFox and Photoshop (and very likely other applications that we don't use).
    PLEASE: email a copy of your post to Alain (dot) Rochefort [at-sign] kativik (dot) qc (dot) ca

    Ignore the permissions messages, as per http://support.apple.com/kb/TS1448
    Here's the second way:
    While logged into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.

  • Is there a way to use Frame 8 keyboard shortcuts in 9?

    I understand that there is a new UI, but my coworker wants to remain on Frame 8 if he can't use the shortcuts he's been using for 15 years (muscle memory lasts a long time). Is there any way (a preference maybe) to use the F8 shortcuts? I saw a trick for scrolling through paragraph styles starting with the same letter using the down arrow. (Hello Adobe? It is not reasonable to suggest having headings names start with a unique letter. There are huge and current books that have all their tags already. And there are only but so many letters.) If there is no way to use F8, is there a table somewhere of what to do now?
    Thanks so much.
    jen

    quabbinjen wrote:
    So here are a few specific problems:
    1. Ctrl 8 and 9 make you use the down arrow key to cycle through letters. How would I change the ini file so that I could just keep hitting the letter?
    2. When I start typing something and then realize I've hit the wrong letter, it seems I need to backspace to the begining to correct it. I used to be able to just start up with the correct letter.
    3. Sometimes I hit Ctrl 9 and I do not get the small box where the style names display, I only see the arrow that I then need to mouse over to and click to list the styles. Why is that?
    4. If I accidently hit Ctrl 8 when I wanted 9 (for example), I have to hit escape and then start again. Previously, hitting the correct sequence twice would get me where I wanted.
    That's all I can think of now...I appreciate the assistance...jen
    The operation of the menu that opens with Ctrl+8 and similar commands has changed in recent releases. It's not clear if it's due to a bug or a design intention. You can ask for a bug fix or feature enhancement at Adobe - Feature Request/Bug Report Form.
    Search FrameMaker help for Keyboard Shortcuts for lists of useful shortcuts. Even if you open a menu with a different shortcut - say Escape q p, or Escape q c (quick paragraph or character format list) instead of Ctrl+8 or 9, the menu still misbehaves.
    I haven't tried typing a different shortcut with the Escape-key method, while in a "wrong" one, to see if that works as you remember the Ctrl+ method, but it's more keystrokes than typing Escape.
    It's not customizable in maker.ini.
    There are third-party keystroke recorder utilities that may be useful. For example, you could invoke a shortcut that opens a Ctrl+ or Escape-key menu, then types the specific command you want (without mis-typing) and executes it. Search for keystroke macro recorders on Google.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for