<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Zsombor&#039;s Blog</title>
	<atom:link href="http://zsombor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://zsombor.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 07:45:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='zsombor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Zsombor&#039;s Blog</title>
		<link>http://zsombor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://zsombor.wordpress.com/osd.xml" title="Zsombor&#039;s Blog" />
	<atom:link rel='hub' href='http://zsombor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>iPhone &amp; &#8220;Growl&#8221; Notifications</title>
		<link>http://zsombor.wordpress.com/2009/11/06/iphone-growl-notifications/</link>
		<comments>http://zsombor.wordpress.com/2009/11/06/iphone-growl-notifications/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:45:10 +0000</pubDate>
		<dc:creator>zsomborszabo</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Growl]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[OpenMaps]]></category>

		<guid isPermaLink="false">http://zsombor.wordpress.com/?p=8</guid>
		<description><![CDATA[Probably this is not a a good way to start a blog since I haven&#8217;t introduced myself. And the short bio under my profile picture hardly says anything about me. Anyway, I have more important things to share with you right now and I can promise you that the mandatory introduction post will follow. Ever [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zsombor.wordpress.com&amp;blog=10290682&amp;post=8&amp;subd=zsombor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Probably this is not a a good way to start a blog since I haven&#8217;t introduced myself. And the short bio under my profile picture hardly says anything about me. Anyway, I have more important things to share with you right now and I can promise you that the mandatory introduction post will follow.</p>
<p>Ever wanted to notify the user of your iPhone application of certain events gracefully, like the desktop <a href="http://growl.info/" target="_self">Growl</a> does? <a href="http://www.tweetdeck.com/iphone/" target="_self">Tweetdeck for the iPhone</a> does it, in a way. Well, now you can too. Hereby I release the source code for <a href="http://github.com/zssz/IZGrowlManager" target="_self">IZGrowlManager</a> under BSD license which allows you to do that.</p>
<p>So how does it look like? Here&#8217;s a screenshot of it in action:</p>
<p><a rel="attachment wp-att-9" href="http://zsombor.wordpress.com/2009/11/06/iphone-growl-notifications/img_9034/"><img class="alignnone size-full wp-image-9" title="iPhone Growl" src="http://zsombor.files.wordpress.com/2009/11/img_9034.png?w=600" alt="iPhone Growl"   /></a></p>
<p>Pretty neat, huh?</p>
<p>You may ask why would someone use something like this to notify the user, there&#8217;s UIAlertView for this. Growl project leader @boredzo <a href="http://twitter.com/boredzo/status/5375228270" target="_self">was thinking the same</a> when I asked him if there was a Growl framework for the iPhone which I could use. I must disagree. The main difference between the 2 notification approaches is that the UIAlertView disrupts completely the user&#8217;s workflow because it doesn&#8217;t let him/her continue until he/she pushes a button while the Growl approach can be dismissed very quickly also without any user interaction since the bubbles disappear after a while.</p>
<p>I&#8217;m sure he misunderstood me.</p>
<p>So, how can you use <a href="http://github.com/zssz/IZGrowlManager" target="_self">IZGrowlManager</a>:</p>
<p>When you reach to a point where you want to notify the user of an event then create an IZGrowlNotification instance and pass it to the shared IZGrowlManager instance which takes care of the rest.</p>
<blockquote><p>IZGrowlNotification *notification = [[IZGrowlNotification alloc] initWithTitle:@&#8221;Tip&#8221; description:@&#8221;Shake the device to reset the route&#8221; image:[UIImage imageNamed:@"information-symbol.png"] context:nil delegate:nil];</p>
<p>[[IZGrowlManager sharedManager] postNotification:notification];</p>
<p>[notification release];</p></blockquote>
<p>If you want to track if the user tapped on the bubble belonging to the notification then set a delegate for the IZGrowlNotification object and implement the (only) delegate method</p>
<blockquote><p>- (void)didSingleTapOnNotification:(IZGrowlNotification *)notification;</p></blockquote>
<p>That&#8217;s it. There are a few tweeks, just read the header file for more info.</p>
<p>Some constraints:</p>
<ul>
<li>it&#8217;s not a framework to interact with any other application on the device or on the desktop. It&#8217;s a simple notification framework for you to notify the user of your app as if Growl would magically run in the background</li>
<li>currently there is only this &#8216;Smoke&#8217; style available with no ability to modify it via the framework.</li>
<li>fixed sized notification bubbles only</li>
<li>3 notification bubbles at a time. If new notification will come in they will be enqueued and posted when there will be a free spot available</li>
<li>bubbles will be appearing starting from the bottom right corner</li>
<li>image will be resized to 30&#215;30</li>
</ul>
<p>Here&#8217;s the <a href="http://github.com/zssz/IZGrowlManager" target="_self">link</a> again to the source on GitHub if you missed it in the first paragraph.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zsombor.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zsombor.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zsombor.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zsombor.wordpress.com&amp;blog=10290682&amp;post=8&amp;subd=zsombor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zsombor.wordpress.com/2009/11/06/iphone-growl-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31fdb1e43edef9aab366610923b788d7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zssz</media:title>
		</media:content>

		<media:content url="http://zsombor.files.wordpress.com/2009/11/img_9034.png" medium="image">
			<media:title type="html">iPhone Growl</media:title>
		</media:content>
	</item>
	</channel>
</rss>
