Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
I had asked this regarding iOS and assumed since there is very little you can do with tweaking iOS without jailbreaking it wasn't possible.

My question now pertains to OS X Yosemite. I have to imagine there are plenty of third party tweak apps out there.

Can you remove the today date in notification center? It takes up valuable real estate and is quite superfluous when you have today's date right on the menu bar.

Thanks in advance!
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,563
ny somewhere
I had asked this regarding iOS and assumed since there is very little you can do with tweaking iOS without jailbreaking it wasn't possible.

My question now pertains to OS X Yosemite. I have to imagine there are plenty of third party tweak apps out there.

Can you remove the today date in notification center? It takes up valuable real estate and is quite superfluous when you have today's date right on the menu bar.

Thanks in advance!

totally agree with this!
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
When I use the following Terminal command:
Code:
$ defaults read com.apple.notificationcenterui

I get the following result:
Code:
{
    TodayView =     {
        order =         (
            "com.apple.nc.social",
            "com.apple.RemindersNC",
            "com.apple.ncplugin.WorldClock",
            "com.apple.iCal.CalendarNC",
            "com.wunderkinder.wunderlistdesktop.todayextension",
            "com.apple.ncplugin.weather",
            "com.apple.ncplugin.stocks",
            "com.apple.ncplugin.calculator"
        );
        preferences =         {
            "com.apple.nc.disclosures" =             {
                enabled = 1;
            };
            "com.apple.nc.social" =             {
                enabled = 0;
            };
            "com.apple.nc.today.date" =             {
                enabled = 1;
            };
            "com.apple.nc.today.dnd" =             {
                enabled = 1;
            };
            "com.apple.nc.today.summary" =             {
                enabled = 0;
            };
            "com.apple.nc.tomorrow.summary" =             {
                enabled = 0;
            };
        };
    };
    "last-messagetrace-stamp" = "437059599.016195";
}

Notice the keys “com.apple.nc.today.date” and “com.apple.nc.today.dnd”. I suspect that these could affect the visibility of the date and the do-not-disturb toggle. Has anyone tried to change the value for “com.apple.nc.today.date” to 0 using Terminal? I don’t know how to do this in Terminal.
 

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
When I use the following Terminal command:
Code:
$ defaults read com.apple.notificationcenterui

I get the following result:
Code:
{
    TodayView =     {
        order =         (
            "com.apple.nc.social",
            "com.apple.RemindersNC",
            "com.apple.ncplugin.WorldClock",
            "com.apple.iCal.CalendarNC",
            "com.wunderkinder.wunderlistdesktop.todayextension",
            "com.apple.ncplugin.weather",
            "com.apple.ncplugin.stocks",
            "com.apple.ncplugin.calculator"
        );
        preferences =         {
            "com.apple.nc.disclosures" =             {
                enabled = 1;
            };
            "com.apple.nc.social" =             {
                enabled = 0;
            };
            "com.apple.nc.today.date" =             {
                enabled = 1;
            };
            "com.apple.nc.today.dnd" =             {
                enabled = 1;
            };
            "com.apple.nc.today.summary" =             {
                enabled = 0;
            };
            "com.apple.nc.tomorrow.summary" =             {
                enabled = 0;
            };
        };
    };
    "last-messagetrace-stamp" = "437059599.016195";
}

Notice the keys “com.apple.nc.today.date” and “com.apple.nc.today.dnd”. I suspect that these could affect the visibility of the date and the do-not-disturb toggle. Has anyone tried to change the value for “com.apple.nc.today.date” to 0 using Terminal? I don’t know how to do this in Terminal.
This sounds really encouraging. I'm way too much of a novice to understand how to do this. Thanks for leading us in the right direction.
 

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
d'oh! ok, but...WHERE is the file with these settings? perhaps editing in textwrangler..am willing to try it if i can find the pref file...
This is my issue as well. Opening com.apple.notificationcenterui does not reveal any of those preference settings. Searching the web doesn't reveal much about OS X Yosemite. Only tons of references or Mountain Lion and completely disabling Notification Center.
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
d'oh! ok, but...WHERE is the file with these settings? perhaps editing in textwrangler..am willing to try it if i can find the pref file...

This is my issue as well. Opening com.apple.notificationcenterui does not reveal any of those preference settings. Searching the web doesn't reveal much about OS X Yosemite. Only tons of references or Mountain Lion and completely disabling Notification Center.

The file is located here: ~/Library/Preferences/com.apple.notificationcenterui.plist

However, manual editing won’t work, because the system will revert the changes once Notification Center is restarted (which you have to do to put the changes into effect). I was hoping it would work with a Terminal command though.
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,563
ny somewhere
The file is located here: ~/Library/Preferences/com.apple.notificationcenterui.plist

However, manual editing won’t work, because the system will revert the changes once Notification Center is restarted (which you have to do to put the changes into effect). I was hoping it would work with a Terminal command though.

i looked at that (AND the same-named file in System>LaunchAgents). tried a few things, but...agreed, no change. crazy that apple thinks we need a 100pt, 2-line date in a window that could be used in better ways (especially, as the OP pointed out, is right above it).
 

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
The file is located here: ~/Library/Preferences/com.apple.notificationcenterui.plist

However, manual editing won’t work, because the system will revert the changes once Notification Center is restarted (which you have to do to put the changes into effect). I was hoping it would work with a Terminal command though.
I'm guessing something regarding permissions would need to be changed ala (IN BOLD)...

If you ran sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool False, it actually disables Notification Center because it changes the permissions of the plist from 644 to 600. If you change KeepAlive to false some other way that doesn't change the permissions of the plist, the NotificationCenter process is still started at login but it is not relaunched if it terminates for some reason. To undo the changes, run f=/System/Library/LaunchAgents/com.apple.notificationcenterui.plist;sudo defaults write $f KeepAlive -bool true;sudo chmod 644 $f;launchctl load $f.

If you ran launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist, run launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist. launchctl unload -w modifies /var/db/launchd.db/com.apple.launchd.peruser.$UID/overrides.plist and sudo launchctl load -w modifies /var/db/launchd.db/overrides.plist, so you could also edit those files directly.

http://apple.stackexchange.com/ques...tly-disabled-notification-center-in-mavericks
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
i looked at that (AND the same-named file in System>LaunchAgents). tried a few things, but...agreed, no change. crazy that apple thinks we need a 100pt, 2-line date in a window that could be used in better ways (especially, as the OP pointed out, is right above it).

I'm guessing something regarding permissions would need to be changed ala (IN BOLD)...



http://apple.stackexchange.com/ques...tly-disabled-notification-center-in-mavericks

Note, though, that these are system settings that are not related to the issue we are trying to address here. You can access app-specific settings with the above mentioned Terminal command defaults. The only problem is that the settings are embedded into multiple arrays/dictionaries. If someone knows how to select that specific value in Terminal, then we can try it like that.

I did find an example here for a preference in the Dock:
Code:
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }’

I haven’t been able to apply this to the process at hand, however. I think we would have to work with the command -dict and -dict-add instead of -array-add.
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,563
ny somewhere
will keep an eye on this thread (i want to REMOVE the NC icon from the menu bar as well). am in over my head, but am def up for trying things out (which makes me either brave, or foolhardy).

or a bit of both...
 

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
will keep an eye on this thread (i want to REMOVE the NC icon from the menu bar as well). am in over my head, but am def up for trying things out (which makes me either brave, or foolhardy).

or a bit of both...
I removed the Notification Center icon from the menu bar using Bartender. It's not the reason I wanted Bartender in the first place but just happen to have the feature built in.

16ZNV


http://www.macbartender.com/
 

Partron22

macrumors 68030
Apr 13, 2011
2,655
808
Yes
In order to get around Yosemite's prefs caching, I changed com.apple.nc.today.date (Boolean YES->NO) on a non-running copy of the OS using Xcode.
Then I booted from the copy.
The plist initially said NO as expected, but when I opened Notification center/Today, it came up in the default state, including date, stock market etc, as if from a fresh install.
It seems the plist entry is a flag for whether the Today panel has been initialized by the user, or is still factory stock.
Once I looked at the today pane, the com.apple.nc.today.date in the plist changed to YES.

So that's not how to get rid of the date display at the top of the panel.
 

w0lf

macrumors 65816
Feb 16, 2013
1,268
109
USA
Posting because of mild interest.

From the class dump I'm guessing it's probably drawn with NCTodayDateViewController.

I also wonder if it's possible to just remove the today view as an option.
 

KALLT

macrumors 603
Sep 23, 2008
5,380
3,415
In order to get around Yosemite's prefs caching, I changed com.apple.nc.today.date (Boolean YES->NO) on a non-running copy of the OS using Xcode.
Then I booted from the copy.
The plist initially said NO as expected, but when I opened Notification center/Today, it came up in the default state, including date, stock market etc, as if from a fresh install.
It seems the plist entry is a flag for whether the Today panel has been initialized by the user, or is still factory stock.
Once I looked at the today pane, the com.apple.nc.today.date in the plist changed to YES.

So that's not how to get rid of the date display at the top of the panel.

Yeah, that’s what I feared. I think Notification Center always reverts back to the default value for that specific setting. That’s why you probably can’t change it. You need to restart Notification Center to initiative the changed preference, but that will automatically override your preference too.
 

fisherking

macrumors G4
Jul 16, 2010
11,252
5,563
ny somewhere
meantime, i have turned off every notification, hidden the icon with bartender (thanx jondigital!). now, with command-option-N, i can use the calculator or check the weather. good enough for me (at least for now :cool:)
 

JonDigital

macrumors regular
Original poster
Jul 26, 2010
247
158
Coral Springs, FL
meantime, i have turned off every notification, hidden the icon with bartender (thanx jondigital!). now, with command-option-N, i can use the calculator or check the weather. good enough for me (at least for now :cool:)

Glad that worked out for you!

I got lost with this thread once a lot of the geek talk started. Very interesting though. Really odd Apple doesn't give an option to remove this (OS X and iOS).

Hopefully someone comes up with a way to achieve it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.