Platforms to show: All Mac Windows Linux Cross-Platform
/MacClassic/Notification Center Test/Notification Center Test
Required plugins for this example: MBS MacCF Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/Notification Center Test/Notification Center Test
This example is the version from Sun, 17th Mar 2012.
Project "Notification Center Test.xojo_binary_project"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control EditField1 Inherits TextField
ControlInstance EditField1 Inherits TextField
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
noti.Post NewCFStringMBS("Message"),NewCFStringMBS("test"),nil,true
End EventHandler
End Control
Control ListBox1 Inherits ListBox
ControlInstance ListBox1 Inherits ListBox
End Control
EventHandler Sub Open()
noti=new myNotificationCenterMBS
noti.Add nil,nil,4
End EventHandler
Property Protected noti As myNotificationCenterMBS
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class myNotificationCenterMBS Inherits NotificationCenterMBS
EventHandler Sub Received(name as CFStringMBS, obj as CFObjectMBS, userinfo as CFDictionaryMBS)
dim s as String
s="?"
if name<>nil then
s=name.str
end if
Window1.ListBox1.AddRow s
End EventHandler
End Class
Class App Inherits Application
End Class
End Project
The items on this page are in the following plugins: MBS MacClassic Plugin.