Change delegate methods to be Swift compatible and adhere to Cocoa Guidelines