rentzsch / ComplimentKit

opt-in to automatically receive flattrs (microdonations) as your users use your mac app
http://compliment.rentzsch.com
12 stars 1 forks source link

Question: can I also use userInfo in the notification? #4

Closed thiloplanz closed 11 years ago

thiloplanz commented 11 years ago

You say sandboxed applications cannot use "userInfo". Does this apply to both the recipient and the sender or just one of them? If I am not sandboxed (as a sender), can I use "userInfo" (and Compliment will pick it up)?

rentzsch commented 11 years ago

You have to use the notification's object -- that's only place Compliment currently looks for it. This is to keep things simple on both sides.

thiloplanz commented 11 years ago

Agree with that.

Now I am stuck with how to get the "description" for the dictionary in a Python script (just started Python ten minutes ago, so I guess this is not a real problem). http://stackoverflow.com/questions/14471626/create-nsdictionary-from-python-dictionary

It seems to me that I could flattr anything through Compliment, not just apps, by just firing off those Notifications. Think iTunes plays via MusicBrainz etc.