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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to