Skip to content

Commit 922a55e

Browse files
committed
update
docs update
1 parent ed338af commit 922a55e

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ let package = Package(
1414
dependencies: [
1515
// Dependencies declare other packages that this package depends on.
1616
// .package(url: /* package url */, from: "1.0.0"),
17+
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.1.0"),
1718
],
1819
targets: [
1920
// Targets are the basic building blocks of a package. A target can define a module or a test suite.

Sources/PureMVC/core/Controller.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ open class Controller: IController {
6868
so you should not call the constructor
6969
directly, but instead call the static Factory method,
7070
passing the unique key for this instance
71-
`Controller.getInstance( multitonKey )`
71+
`Controller.getInstance(multitonKey) { key in Controller(key: key) }`
7272

7373
@throws Error if instance for this Multiton key has already been constructed
7474
*/
@@ -91,7 +91,7 @@ open class Controller: IController {
9191

9292
// ensure that the Controller is talking to my IView implementation
9393
override public func initializeController( ) {
94-
view = MyView.getInstance(multitonKey) { MyView(key: self.multitonKey) }
94+
view = MyView.getInstance(multitonKey) { key in MyView(key: key) }
9595
}
9696
*/
9797
open func initializeController() {
@@ -183,7 +183,7 @@ open class Controller: IController {
183183
/**
184184
Remove an IController instance
185185

186-
- parameter multitonKey: of IController instance to remove
186+
- parameter key: of IController instance to remove
187187
*/
188188
open class func removeController(_ key: String) {
189189
instanceQueue.sync(flags: .barrier) {

Sources/PureMVC/core/Model.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ open class Model: IModel {
153153
/**
154154
Remove an IModel instance
155155

156-
- parameter multitonKey: of IModel instance to remove
156+
- parameter key: of IModel instance to remove
157157
*/
158158
open class func removeModel(_ key: String) {
159159
instanceQueue.sync(flags: .barrier) {

Sources/PureMVC/core/View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ open class View: IView {
262262
/**
263263
Remove an IView instance
264264

265-
- parameter multitonKey: of IView instance to remove
265+
- parameter key: of IView instance to remove
266266
*/
267267
open class func removeView(_ key: String) {
268268
instanceQueue.sync(flags: .barrier) {

Sources/PureMVC/interfaces/ICommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public protocol ICommand: INotifier {
1616
/**
1717
Execute the `ICommand`'s logic to handle a given `INotification`.
1818

19-
- parameter note: an `INotification` to handle.
19+
- parameter notification: an `INotification` to handle.
2020
*/
2121
func execute(_ notification: INotification)
2222

Sources/PureMVC/interfaces/IController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public protocol IController {
3434
for a particular `INotification`.
3535

3636
- parameter notificationName: the name of the `INotification`
37-
- parameter closure: reference that returns `ICommand`
37+
- parameter factory: reference that returns `ICommand`
3838
*/
3939
func registerCommand(_ notificationName: String, factory: @escaping () -> ICommand)
4040

Sources/PureMVC/interfaces/IFacade.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public protocol IFacade: INotifier {
6363
/**
6464
Register an `ICommand` with the `Controller`.
6565

66-
- parameter noteName: the name of the `INotification` to associate the `ICommand` with.
66+
- parameter notificationName: the name of the `INotification` to associate the `ICommand` with.
6767
- parameter factory: closure that returns `ICommand`
6868
*/
6969
func registerCommand(_ notificationName: String, factory: @escaping () -> ICommand)

Sources/PureMVC/interfaces/IModel.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public protocol IModel {
2727
/**
2828
Register an `IProxy` instance with the `Model`.
2929

30-
- parameter proxyName: the name to associate with this `IProxy` instance.
3130
- parameter proxy: an object reference to be held by the `Model`.
3231
*/
3332
func registerProxy(_ proxy: IProxy)

Sources/PureMVC/interfaces/IView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public protocol IView {
7474
and registering it as an `Observer` for all `INotifications` the
7575
`IMediator` is interested in.
7676

77-
- parameter mediatorName: the name to associate with this `IMediator` instance
7877
- parameter mediator: a reference to the `IMediator` instance
7978
*/
8079
func registerMediator(_ mediator: IMediator)

0 commit comments

Comments
 (0)