Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Global Events sent to all instances #10

Open
IanKeen opened this issue Apr 15, 2015 · 1 comment
Open

Global Events sent to all instances #10

IanKeen opened this issue Apr 15, 2015 · 1 comment

Comments

@IanKeen
Copy link

IanKeen commented Apr 15, 2015

If I create multiple DDHotKeyTextField's programmatically they appear to all update when a hotkey combination is pressed.

    DDHotKeyTextField *t = [[DDHotKeyTextField alloc] initWithFrame:NSMakeRect(0, 0, 100, 25)];
    [self.textFieldContainer addSubview:t];

    DDHotKeyTextField *t2 = [[DDHotKeyTextField alloc] initWithFrame:NSMakeRect(0, 25, 100, 25)];
    [self.textFieldContainer addSubview:t2];

With this code in a viewWillAppear I can click into each of the textfields and when I press a combination of keys they both update

@IanKeen
Copy link
Author

IanKeen commented Apr 15, 2015

I seem to be able to stop this behaviour by having each textfield use its own instance of DDHotKeyTextFieldEditor instead of DDFieldEditor() however I am unsure of the consequences of this..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant