I'm officially flumoxed. 

My app has a number of methods that send notifications to Notifications Center. 
All of them work, except for a pair in one method (there's a success/fail pair 
attached to an if/else clause in each case). The code is identical (they're all 
derived from the same code snippet):

        NSUserNotification *success = [[NSUserNotification alloc] init];
        success.title = @"app name";
        success.informativeText = @"something was done";
        success.soundName = NSUserNotificationDefaultSoundName;
        
        [[NSUserNotificationCenter defaultUserNotificationCenter] 
deliverNotification:success];

Moreover, the pair that don't work DO show in the Notification Center 
sidebar/panel, so I know the code is good, but for reasons I can't get to the 
bottom of, the banners just don't show. Why would some show but others not?

I've rebuilt, restarted (both Xcode and the machine), disposed of Derived data 
and even cleaned out Notification Center's caches and plists, but my head has 
started to bleed from the excessive scratching.

Any balm out there?

Best


P

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to