mthiesen / Xcode_copy_line

Xcode plug-in to copy/cut the current line when there is no selected text
MIT License
32 stars 8 forks source link

Add DVTPlugInCompatibilityUUIDs for Xcode 6.4 betas 1, 2. #7

Closed kreeger closed 9 years ago

kreeger commented 9 years ago

This includes the new DVTPlugInCompatibilityUUID value from the following command:

$ defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID

The first value is from beta 1, the second from beta 2.

However: I can't seem to get this to play nicely with the latest Xcode 6.4 beta. Upon launching Xcode, I get this in the console:

4/30/15 8:52:58.946 AM Xcode[16554]: Xcode_copy_line ERROR: Unable to find Cut menu item
4/30/15 8:52:58.946 AM Xcode[16554]: Xcode_copy_line failed to initialize

It doesn't appear that the reference to [NSApp mainMenu] returns anything, at least when it's called inside of hookMethods.

I'm gonna look into this some this morning to see if I can figure anything out, but if you know of a fix for this, that would be awesome!

mthiesen commented 9 years ago

Thank you for the UUIDs. I will have to look into the menu problem as soon as I find the time.

kreeger commented 9 years ago

@mthiesen I've fixed the menu item weirdness; I'll open a new PR!

mthiesen commented 9 years ago

Thanks a lot, you have found a really simple solution.

kreeger commented 9 years ago

Happy to help; thanks for the plugin! I find myself going crazy without it.