Am 19.11.2011 um 15:57 schrieb Beatrix Willius:

> No, I didn't add anything. But when inspecting the dictionary the values have 
> been filled in.
> 
> Just checked it again and yes, ApplicationID, ApplicationName, AppLocation 
> and ApplicationIcon are set and the first 3 have the correct value (can't 
> verify the icon).


I tried it today.

I made an example. Get it here:
http://www.macsw.de/plugin/Prerelease/

You need to make a subclass of the GrowlApplicationBridgeMBS class.
There you can return the registration dictionary and/or application name.

When application starts, you first load the framework and then you init your 
subclass instance:

  dim framework as FolderItem = GetFolderItem("Growl.framework")
  
  if not GrowlApplicationBridgeMBS.LoadFramework(Framework) then
    MsgBox "Failed to load framework."
    quit
  end if
  
  m = new MyGrowlApplicationBridgeMBS

Now you can send notifications

  // send a notification
  GrowlApplicationBridgeMBS.notifyWithTitle("Hello World", "Some test 
notification", "Test Notification", nil, 0, false, "HelloNormal")
  
or

  // send a sticky notification
  GrowlApplicationBridgeMBS.notifyWithTitle("Hello World Sticky", "Some test 
notification", "Test Notification Sticky", nil, 0, true, "HelloSticky")
  
Works here.

Greetings
Christian

-- 
See you in Orlando, Florida for Real World 2012

More details and registration here:
http://www.realsoftware.com/community/realworld.php



_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to