XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 596 forks source link

Xcode 4.2 support #186

Closed weaksauce closed 11 years ago

weaksauce commented 12 years ago

If you want to support Xcode 4.2, the project would need to move away from using the lion regex libraries and possibly to an opensource version that supports a few version of OS X. They are not part of the snow leopard development toolkit. I don't know what other changes would need to be done with respect to the views but this makes it so that you cannot build it. Also, there are a few forward function declarations that need to be done (ESC: and Up:) to compile on snow leopard.

The other option is to change the readme to say that the plugin does not build on Xcode 4.2.

JugglerShu commented 12 years ago

I have a question about frameworks ( dynamic link library ) used in Mac OS X. If you are using OS X 10.6 (Snow leopard ) it never be able to use 10.7's framework?

The example is a regex feature introduced in 10.7 SDK. Can they use that feature in 10.6 by updating the DLL of cocoa? ( I do not really know about OS X's updating scheme... do they permit it? )

If we can use a new framework in 10.6 the problem we have is just compiling problem with Xcode 4.2. But if we can NOT, we must rewrite the 10.7 dependent code to support Xcode 4.2 on Leopard.

I already know the problem with function declarations in Xcode 4.2 and its not hard to fix.

weaksauce commented 12 years ago

I am pretty sure that the updates for the API's in cocoa are not ported to the older operating systems. So in this case they are stuck with only the API's that were available for snow leopard. I actually upgraded to Lion to get the latest version of Xcode so I can't test it on my main computer anymore.

Maybe the solution is to offer an installer for 4.2 instead of source? Though I think it would crash when trying to do anything regarding regexes. Though, it's possible to use compiler directives to conditionally compile out that feature if it's something that you want to support.

JugglerShu commented 12 years ago

So what we have to fix for following targets is Lion + Xcode4.3 : Nothing. We are developing with this. Lion + Xcode4.2 : Nothing for package as far as the binary works for Xcode4.2. Fix source code to be compiled with Xcode4.2 Snow Leopard + Xcode4.2 : Need to prepare new package for Xcode4.2. Fix source code not to use 10.7SDK dependent code. Snow Leopard + Xcode4.3 : N/A

I have snow leopard system so I'll check how easy it is to make XVim work on it ( by eliminating 10.7 dependent code ).

JugglerShu commented 12 years ago

I tried to use Xcode 4.2 in snow leopard but they require join developer program to get the Xcode 4.2 for snow leopard.... I have just registered so maybe tomorrow or the day after tomorrow to check... sorry for waiting.

JugglerShu commented 12 years ago

Now XVim can be built with Xcode 4.2 on Snow Leopard. Navigations are working fine now but ex commands are not working now... I'll see the problem.

JugglerShu commented 12 years ago

Now XVim support Xcode 4.2 on Snow Leopard. Unfortunately since NSRegularExpression is not supported in Snow Leopard search related thing( such as /,#,*) are not supported at the moment.

Let us see how much they need this support.

JugglerShu commented 11 years ago

I do not know if XVim works on Snow Leopard now. But I think we do not need to consciously support it anymore.

weaksauce commented 11 years ago

I agree.