Migrate to MASShortcut. #82
No reviewers
Labels
No labels
2230
2243
App version
Apple OS errata
Apple SDK
bug
bugsnag
build
dlt
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: chris/Cog#82
Loading…
Reference in a new issue
No description provided.
Delete branch "nevack/shortcuts-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removed NDHotKey code.
Added ability to restore default shortcuts.
Migrated old user-set shortcuts.
Removed outdated search paths
I don't know yet a good way to include
Shortcuts.h
in Cog target.@kode54 Can you help me?
Need to be removed...
I think this definitions will be compiled into static area twice, for each include.
Need a better way to workaround this.
extern
leads to unsatisfied dynamic linkage errorRemoved developer_team
When you use normal header maps in a project or sub-project, simply including the header file somewhere in the file tree for the project is enough to be able to:
This is what I do for the headers I include in each of the plugins.
You could also compile these constants into a static object file or library just so the strings are all sourced from the same binary instead of just the same source header. I'm not sure that's better or worse, either. Either way, they're going to be string included in every single source file that mentions the shortcuts, which shouldn't be too many, since it should only be the main application and the preferences pane.
Looks fine.
File not found
for meOh, crap. I don't know then. Somehow it works for the headers in each of the plugin projects. Maybe the project you're trying to use it in has header maps turned off? I know I had to do that for some frameworks due to weird issues like bonehead Xcode seeing a project header with the same name as a system header, and resolving the project header for:
Even when it's included that way within the identically named project header file, which is included elsewhere using:
Moved
Shortcuts.h
to Cog target and made a direct reference in Preferences targetResolved conflict
@kode54 ready for review now.
That works.