|
@@ -175,7 +175,7 @@ class KMStampCreaterWindowController: NSWindowController, NSTextViewDelegate{
|
|
|
}
|
|
|
}
|
|
|
self.stamp?.bounds = self.preView.bounds
|
|
|
- self.stamp?.setCustomStampString(self.stamp?.string ?? "", dateString: dateString)
|
|
|
+ self.stamp?.setCustomStampString(self.stamp?.contentStr ?? "", dateString: dateString)
|
|
|
self.preView.image = self.stamp?.stampPreviewImage()
|
|
|
}
|
|
|
@IBAction func timeButton_Click(_ sender: NSButton) {
|
|
@@ -192,7 +192,7 @@ class KMStampCreaterWindowController: NSWindowController, NSTextViewDelegate{
|
|
|
}
|
|
|
}
|
|
|
self.stamp?.bounds = self.preView.bounds
|
|
|
- self.stamp?.setCustomStampString(self.stamp?.string ?? "", dateString: dateString)
|
|
|
+ self.stamp?.setCustomStampString(self.stamp?.contentStr ?? "", dateString: dateString)
|
|
|
self.preView.image = self.stamp?.stampPreviewImage()
|
|
|
}
|
|
|
func textViewDidChangeSelection(_ notification: Notification) {
|
|
@@ -207,10 +207,10 @@ class KMStampCreaterWindowController: NSWindowController, NSTextViewDelegate{
|
|
|
|
|
|
@IBAction func dismissSheet(_ sender: NSButton) {
|
|
|
if sender == self.addButton {
|
|
|
- if self.stamp?.string.count ?? 0 < 1 && self.stamp?.dateString.count ?? 0 < 1 {
|
|
|
+ if self.stamp?.contentStr.count ?? 0 < 1 && self.stamp?.dateString.count ?? 0 < 1 {
|
|
|
return
|
|
|
}
|
|
|
- if KMStampManagerNew.shareManager.addStamp(withString: self.stamp?.string, dateString: self.stamp?.dateString, color: self.stamp?.stampColor ?? .RedColor){
|
|
|
+ if KMStampManagerNew.shareManager.addStamp(withString: self.stamp?.contentStr, dateString: self.stamp?.dateString, color: self.stamp?.stampColor ?? .RedColor){
|
|
|
|
|
|
}
|
|
|
if (self.closeCallBack != nil) {
|