Open stigi opened 12 years ago
Hi maybe its possible to replace the Growl.framework of apps with a modified one and create the notification center message from inside the app this way. But I'm not sure if this is possible. There is a tool to update the framework called "Growl Version Detective".
Found it, someone else already did this: https://github.com/Rogiel/GrowlNotificationCenter#readme
Wouldn't this make apps bought from the App Store unusable? Would they even launch?
I'm not familiar with the details of code signing of applications from the app store, but usually your mac should execute unsigned code ;-) Not sure with gatekeeper though. I testet it with this http://itunes.apple.com/de/app/unplugged/id423123087?mt=12 and it worked. (gatekeeper is set to "app store and verified developer" on my mac)
Replacing the Growl.framework
inside of apps is not the intention of this project. If we find a way to dynamically create an App bundle for each App & fire the notification from there this could work though.
Here's a script to create a simple Mac App: https://gist.github.com/674099
Problem
The icon of the origin application is not appearing in notification center. This is due to the face that the user notifications are actually send by the Growl application and not the origin application.
Possible Solutions
Dynamic applications
Create an proxy application that has the same icon as the origin application.
Private API
There's a method
+[NSUserNotificationCenter _centerForBundleIdentifier:]
in the class dumped headers ofFoundation.framework
. Maybe this can be used to change the origin of the user notification to the origin application.With both approaches there might be issues with application sandboxing (as Growl is distributed thru the app store).