Does OS X Notification Center receive messages from APNS, LAN or just locally?
It can work in a couple of ways. One, as you say, is through APNS. 

Apps can also use the local notification centre to trigger a notification (you can see this in XCode when a build completes for example). 

What are you trying to do? Maybe I can point you at the right document.