Remove references to deprecated -[NSImage setScalesWhenResized:], which is documented as being unnecessary since 10.6.
Quiet warning by adopting the official enum type result for hitTestForEvent:...
Cast the return from [IMBFSEventsWatcher sharedFileWatcher] to the expected type. Since it's an id the compiler was matching the setDelegate: call to another object and triggering a protocol mismatch warning for the argument.