Skip to content

Commit 079d212

Browse files
committed
Update project for latest Textual 6 codebase
1 parent a72f1c5 commit 079d212

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

SwiftPluginExample.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TPI_SwiftPluginExample: NSObject, THOPluginProtocol
6464

6565
/* Invoke the client on the main thread when sending. */
6666
performBlock(onMainThread: {
67-
client.sendPrivmsg(formattedString, to: senderChannel)
67+
client.sendPrivmsg(formattedString, to: senderChannel!)
6868
})
6969
}
7070
}
@@ -88,7 +88,7 @@ class TPI_SwiftPluginExample: NSObject, THOPluginProtocol
8888
let mainWindow = masterController().mainWindow
8989

9090
performBlock(onMainThread: {
91-
client.sendPrivmsg(formattedString, to:mainWindow?.selectedChannel)
91+
client.sendPrivmsg(formattedString, to:mainWindow.selectedChannel!)
9292
})
9393
}
9494

@@ -97,8 +97,8 @@ class TPI_SwiftPluginExample: NSObject, THOPluginProtocol
9797
{
9898
let dateFormatter = DateFormatter()
9999

100-
dateFormatter.dateStyle = DateFormatter.Style.fullStyle
101-
dateFormatter.timeStyle = DateFormatter.Style.fullStyle
100+
dateFormatter.dateStyle = .full
101+
dateFormatter.timeStyle = .full
102102

103103
let formattedDate = dateFormatter.string(from: Date())
104104

SwiftPluginExample.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
/* Begin PBXBuildFile section */
1010
4C38AD881946BB2C00B4A7AB /* SwiftPluginExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C38AD871946BB2C00B4A7AB /* SwiftPluginExample.swift */; };
1111
4C51BE9412D0471600E79CEB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C51BE9312D0471600E79CEB /* Cocoa.framework */; };
12-
8D576314048677EA00EA77CD /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */; };
1312
/* End PBXBuildFile section */
1413

1514
/* Begin PBXFileReference section */
16-
0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; };
1715
4C38AD861946BB2B00B4A7AB /* SwiftPluginExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SwiftPluginExample-Bridging-Header.h"; sourceTree = "<group>"; };
1816
4C38AD871946BB2C00B4A7AB /* SwiftPluginExample.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SwiftPluginExample.swift; sourceTree = "<group>"; };
1917
4C51BE9312D0471600E79CEB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
@@ -26,7 +24,6 @@
2624
isa = PBXFrameworksBuildPhase;
2725
buildActionMask = 2147483647;
2826
files = (
29-
8D576314048677EA00EA77CD /* CoreFoundation.framework in Frameworks */,
3027
4C51BE9412D0471600E79CEB /* Cocoa.framework in Frameworks */,
3128
);
3229
runOnlyForDeploymentPostprocessing = 0;
@@ -49,7 +46,6 @@
4946
isa = PBXGroup;
5047
children = (
5148
4C51BE9312D0471600E79CEB /* Cocoa.framework */,
52-
0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */,
5349
);
5450
name = Frameworks;
5551
sourceTree = "<group>";

0 commit comments

Comments
 (0)