by mr_dbr · 17y ago · 0 comments
notificationCenter.addObserver_selector_name_object_(
notificationHandler,
"handleMountNotification:",
NSWorkspaceDidMountNotification,
None)
To make it work with some other language (say, C#/C++/Ruby/Brainfuck/Python or whatever) would basically be a complete redesign of the framework, which in turn would basically be a complete redesign of OS X.. And why? Objective C is a perfectly decent language.. I'm not sure anyone would be using it where it not for Carbon/Cocoa, but it's not a bad language at all notificationCenter.addObserver(notificationHandler,
selector:"handleMoundNotification",
name:NSWorkspaceDidMountNotification,
object:nil) notificationCenter addObserver:notificationHandler
selector:#handleMountNotification:
name:NSWorkspaceDidMountNotification
object:nil