Implemented NSObject+Event category to handle custom events.