---
title: webPlugInMainResourceDidFinishLoading()
framework: Objective-C Runtime
role: symbol
role_heading: Instance Method
platforms: [macOS 10.6+]
path: objectivec/nsobject-swift.class/webpluginmainresourcedidfinishloading()
---

# webPlugInMainResourceDidFinishLoading()

Invoked when the connection successfully finishes loading data.

## Declaration

```swift
func webPlugInMainResourceDidFinishLoading()
```

## Discussion

Discussion This message is invoked when the WebPlugInShouldLoadMainResourceKey plug-in command-line argument is set to NO and the underlying NSURLConnection object for the main resource sends the connectionDidFinishLoading: message to its delegate.

## See Also

### Main resource messages

- [webPlugInMainResourceDidFailWithError(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidfailwitherror(_:).md)
- [webPlugInMainResourceDidReceive(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidreceive(_:)-5b6f6.md)
- [webPlugInMainResourceDidReceive(_:)](objectivec/nsobject-swift.class/webpluginmainresourcedidreceive(_:)-6x7b9.md)
