Growl for OS X

BlitzMax Modules Forums/Brucey's Modules/Growl for OS X

BaH.Growl is an OS X-only module which adds Growl support to your applications.
Growl is a system for posting notifications to users. Applications like Adium, Skype, Cyberduck and Speed Download use it to inform the user of specific events.

You might use it to notify, for example, that a file copy is finished, or a particular function has completed.

It's free and fully documented, as usual. There are also a few small examples to help you use it.

Talking of examples, here a small "Hello World" one :
SuperStrict

Framework BaH.Growl

Local delegate:TGrowlDelegate = New TGrowlDelegate.Create()

delegate.SetApplicationName("HelloWorld")

delegate.SetAllNotifications(["Hello World"]) ' Supported notifications list

If delegate.Install() Then ' install the delegate, so that we can send notifications

	Local notification:TGrowlNotification = New TGrowlNotification.Create("Hello World", ..
		"Hello World!", "A small Hello World example from BlitzMax!")
		
	notification.Post() ' post the notification

End If


Any problems, comments, etc, please feel free to post them here.

:o)

Holy crap brucey... how... HOW do you make modules like every hour... do you have a robot sitting there coding for you??

Actually, this one took a good chunk of the weekend :-p

..as I had to work out how to use Carbon as I went... as well as a wild goose chase trying to get pixmaps working with it.


For those that are wondering what a "notification" looks like, here's an example of Cyberducky telling me my file was uploaded :


The module lets you set the title, description and icon for your notifications.

:o)

I'm still trying to figure out wxMax... but it looks great :D

Side note: Where do you find documentation on Connect()?

*cough* ... well, there's some flaky docs in wx.wx (for wxEvtHandler type). If you build docs, and rummage around in Third Party Modules -> wx.wx, there's some there.

Docs are, I'm afraid, lacking in places - only because there's been so much code to put in. I'm generally copy/pasting from the proper API docs and tweaking where necessary, but it's not as good as it might be - especially for examples.

Thats fine, not complaining :D, its amazing that you do all this for the community already.

one last question while i've got your attention (although i should probably make my own thread) How do you make a windows frame non-resizable? I cant find any docs on frame styles either :D.

Thanks in advance

See other post about connecting to events ;-)

Default frame style include wxRESIZE_BORDER, so you don't want to use the default.
Const wxDEFAULT_FRAME_STYLE:Int = wxSYSTEM_MENU | wxRESIZE_BORDER | wxMINIMIZE_BOX | ..
	wxMAXIMIZE_BOX | wxCLOSE_BOX | wxCAPTION | wxCLIP_CHILDREN

Take out what you don't want :-)

Not quite sure I get it - still cant find any list of frame style constants (went over wx.wx docs like 12 times now :D) am I missing something?