Re: About notification NSWindowDidMiniaturizeNotification
Re: About notification NSWindowDidMiniaturizeNotification
- Subject: Re: About notification NSWindowDidMiniaturizeNotification
- From: Ivan Chen <email@hidden>
- Date: Wed, 09 Mar 2011 08:17:22 +0800
Hi,
Guys
What I really want to observer is the app iCal, when I register the notification the iCal may not be launched yet.
So I have to pass nil to observer every window, but it just doesn't work 'o-!!!
Why?
The truth is I also register lots of notification like :
[self registerDefaultNotification:CalEventsChangedExternallyNotification withSelector:@selector(calEventsChanged:) onObject:[CalCalendarStore defaultCalendarStore]];
[self registerWorkspaceNotification:NSWorkspaceDidLaunchApplicationNotification withSelector:@selector(applicationLaunched:) onObject:[NSWorkspace sharedWorkspace]];
They all work 'o- (the registerXXXNotification is method write by myself)
Thanks
Ivan Chen
On Mar 8, 2011, at 8:42 PM, Jim McGowan wrote:
>>> with "onObject:nil" you are not providing an NSWindow instance to observe
>>
>>
>> Not so - passing nil means "observe all windows".
>
> Ah yes, of course it does
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden