Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting Outlet or Action #40

Open
xixixao opened this issue Sep 25, 2013 · 5 comments
Open

Inserting Outlet or Action #40

xixixao opened this issue Sep 25, 2013 · 5 comments
Labels

Comments

@xixixao
Copy link

xixixao commented Sep 25, 2013

I tried to "automatically" insert outlet/action from the Interface Builder, but XCode can't find the implementation for given header (well, it's written in eero). Is there a workaround?

Also (maybe related) I was trying to follow https://github.com/eerolanguage/eero/tree/master/xcodesupport/Xcode4+ but there is no Register Eero File Types.app file and I can't run the Register Eero File Types project (no MainMenu).

@andyarvanitis
Copy link
Member

Unfortunately since Xcode doesn't truly have an open plugin framework, there's no good way to get Interface Builder to recognize or directly deal with eero headers. The workaround is to create standard ObjC headers when dealing with IBActions/Outlets, since Eero source files can still use them directly. I hope to come up with a way to automate the process at some point, probably using the source-source translator built into the compiler.

As for the "Register File Types.app", you just need to build it, copy it somewhere, and just run it from the Finder once. Please let me know if that helps!

@xixixao
Copy link
Author

xixixao commented Sep 25, 2013

I do have standard headers, but Xcode is trying to insert the implementation snippets and I have that in eero, so it fails.

I ran the Register File Types.app, it might have actually worked out of Xcode and I just didn't notice, didn't have an effect on the other issue.

@andyarvanitis
Copy link
Member

Ah, I'm sorry, I misunderstood. I don't know of a good workaround for that right now, but I will give it some thought.

Yeah, I should have clarified about the Register File Types -- it won't make any difference here, and technically you don't even need it for anything but file icons anymore.

@aral
Copy link

aral commented Dec 29, 2013

Giving Eero a spin (awesome, awesome work, by the way — love your approach to design) and hit this right away. Was trying to drag an outlet connection into the private interface (class extension) in my implementation file (as that is where I believe outlets should belong, not in the public interface in the header) and there’s — as was stated earlier — no support in the IDE.

Do you have any thoughts about the feasibility of adding this, Andy? (I read your earlier comment but I mean in terms of impossible vs. really hard but worth pursing vs. I do not believe it is worth the effort :)

Thanks again for your amazing work with Eero. In awe :)

@andyarvanitis
Copy link
Member

Thanks Aral! It's hard to say how much work it will be, given the nature of reverse-engineering Xcode. However, with the new eero plugin design and the work that other people have done with their plugins, it's probably worth another look.

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

No branches or pull requests

3 participants