Implement Methods for Swift


I am sorry if this has been asked before. I couldn't find it anyway.

I am wondering when Code->Implement/Override Methods will be available for Swift. The options are there in the menu but they are greyed out despite my code clearly having the need to implement a method from an interface (protocol).


import UIKit

class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {


Error:(13, 1) type 'ViewController' does not conform to protocol 'UITableViewDataSource'

[Option Implement Methods still greyed out]

I am completely new to iOS/OSX development so I might have misunderstood something fundamental.

Thanks in advance.

/Pär Eklund

Comment actions Permalink

Think it's there to tease you... no seriously Jetbrains are just catching up and they will get around to implementing this feature... but i would imagine they are working full pelt on higher priority items... such as completion for Cocoa methods and many others.

Comment actions Permalink

Thank you for the report, I've filled feature request, you can follow its status. Also feel free to submit reports directly to our bugtracker.

Comment actions Permalink

Thank you, Maria.

Just to clarify the reason for my question:

Since the option is there but greyed out and that the release of AppCode 3.1 (with Swift support) seems to be imminent, I was under the impression that Implement/Override Methods were scheduled for an AppCode 3.1 release. As I understand your reply, this is not the case. Is that correct and if so, when can this feature be expected?

I am definitely not complaining. I think JetBrains is doing a fantastic job. It's just that having to manually add all non-implemented methods for any interface I implement feels like a big step back for a spoiled Java programmer / IntelliJ user. ;)



Comment actions Permalink

Yes, you're right. And unfortunately for now there're no estimations for this feature since we have a lot of priority tasks. You can vote for the issue to prioritize it.


Please sign in to leave a comment.