In Visual Studio if I define a class to implement an interface e.g.
class MyObject : ISerializable {}
I am able to right click on ISerializable, select ‘Implement Interface‘ from the context menu and see the appropriate methods appear in my class definition.
class MyObject : ISerializable { #region ISerializable Members public void GetObjectData(SerializationInfo info, StreamingContext context) { throw new NotImplementedException(); } #endregion }
Is there anything anything like this functionality available in Xcode on the Mac? I would like to be able to automatically implement Protocols in this way. Maybe with the optional methods generated but commented out.
I have not seen that feature in Xcode. But it seems like someone could write a new user script called ‘Place Implementor Defs on Clipboard’ that sits inside of Scripts > Code.
You did not find this useful.