-(void)idleNotificationMethod
{}-(void)registerForIdleNotification
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(idleNotificationMethod) name:@"IdleNotification" object:nil];
NSNotification *notification = [NSNotification notificationWithName:@"IdleNotification" object:nil];
[[NSNotificationQueue defaultQueue] enqueueNotification:notification postingStyle:NSPostWhenIdle];
}