<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-371408380585915800.post8741917226850532685..comments</id><updated>2011-08-21T13:09:05.448-07:00</updated><category term='C++'/><category term='self promotion'/><category term='code management'/><category term='Lion'/><category term='UIKit'/><category term='CoreAudio'/><category term='Cocoa Touch'/><category term='Xcode'/><category term='fun hacks'/><category term='CoreGraphics'/><category term='Objective-C'/><category term='Standard C'/><category term='graphics'/><category term='performance tests'/><category term='Core Data'/><category term='Foundation'/><category term='object-oriented design'/><category term='testing'/><category term='numerical methods'/><category term='WebKit'/><category term='CoreAnimation'/><category term='Snow Leopard'/><category term='AppKit'/><title type='text'>Comments on Cocoa with Love: Intercepting status bar touches on the iPhone</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cocoawithlove.com/feeds/8741917226850532685/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html'/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-7650575687233598147</id><published>2011-08-21T13:00:48.000-07:00</published><updated>2011-08-21T13:00:48.000-07:00</updated><title type='text'>This not work for me in iOS 4.3 on iPhone Simulato...</title><content type='html'>This not work for me in iOS 4.3 on iPhone Simulator. But, overlaying send event can get the event in all screen, so I only have to see where is the click.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/7650575687233598147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/7650575687233598147'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1313956848000#c7650575687233598147' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-6260477526671201197</id><published>2011-01-02T06:05:59.000-08:00</published><updated>2011-01-02T06:05:59.000-08:00</updated><title type='text'>Have a look at https://github.com/myell0w/MTStatus...</title><content type='html'>Have a look at https://github.com/myell0w/MTStatusBarOverlay - there you can find how to handle touches (it is a full implementation of an status bar overlay mimicing the one found in Reeder, it also implements a similar animation mode like the one covered here)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/6260477526671201197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/6260477526671201197'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1293977159000#c6260477526671201197' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-3678105555022431228</id><published>2010-12-03T15:45:12.000-08:00</published><updated>2010-12-03T15:45:12.000-08:00</updated><title type='text'>Actually it was already posted as a comment by Rya...</title><content type='html'>Actually it was already posted as a comment by Ryan Petrich. I tried and it works for me.&lt;br /&gt;&lt;br /&gt;UIWindow *appWindow = [[UIApplication sharedApplication] keyWindow];&lt;br /&gt;[appWindow setWindowLevel:UIWindowLevelStatusBar+1.0f]; &lt;br /&gt;[appWindow setBackgroundColor:[UIColor clearColor]];&lt;br /&gt;&lt;br /&gt;MyView *myView = [MyView new];&lt;br /&gt;myView.frame = [[UIApplication sharedApplication] statusBarFrame];&lt;br /&gt;myView.backgroundColor = [UIColor clearColor];&lt;br /&gt;[appWindow addSubview:myView];&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;- MyView extends UIView&lt;br /&gt;- intercept the touch events in MyView</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/3678105555022431228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/3678105555022431228'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1291419912000#c3678105555022431228' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-7816695958001520930</id><published>2010-06-29T03:37:38.000-07:00</published><updated>2010-06-29T03:37:38.000-07:00</updated><title type='text'>Looks like it&amp;#39;s not working anymore on iOS4......</title><content type='html'>Looks like it&amp;#39;s not working anymore on iOS4... Any idea how to fix that ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/7816695958001520930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/7816695958001520930'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1277807858000#c7816695958001520930' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4259477387030369638</id><published>2010-06-08T04:23:23.000-07:00</published><updated>2010-06-08T04:23:23.000-07:00</updated><title type='text'>I actually found a way to avoid the EXC_BAD_ACCESS...</title><content type='html'>I actually found a way to avoid the EXC_BAD_ACCESS issue when you shake the iPhone !&lt;br /&gt;You need to check if eventMemory == nil before using it !&lt;br /&gt;&lt;br /&gt;int * eventMemory = (int *)[anEvent performSelector:@selector(_gsEvent)]; &lt;br /&gt;if(eventMemory != nil)&lt;br /&gt;{&lt;br /&gt; int eventType = eventMemory[GS_EVENT_TYPE_OFFSET];&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;It works way better now :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/4259477387030369638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/4259477387030369638'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1275996203000#c4259477387030369638' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-1283851938737179243</id><published>2010-06-08T02:05:33.000-07:00</published><updated>2010-06-08T02:05:33.000-07:00</updated><title type='text'>I have the same bad access issue. And it&amp;#39;s not...</title><content type='html'>I have the same bad access issue. And it&amp;#39;s not just a problem with the simulator... It also crashes while doing it with your phone !&lt;br /&gt;If anyone has a solution to fix that, I would really appreciate :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/1283851938737179243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/1283851938737179243'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1275987933000#c1283851938737179243' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-908346753181165749</id><published>2010-05-25T03:34:29.000-07:00</published><updated>2010-05-25T03:34:29.000-07:00</updated><title type='text'>Can&amp;#39;t do this on iPhone OS 4 beta. Any workaro...</title><content type='html'>Can&amp;#39;t do this on iPhone OS 4 beta. Any workaround?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/908346753181165749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/908346753181165749'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1274783669000#c908346753181165749' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-3404306103503929305</id><published>2010-04-01T12:57:16.000-07:00</published><updated>2010-04-01T12:57:16.000-07:00</updated><title type='text'>How do you determine if the window is touched?</title><content type='html'>How do you determine if the window is touched?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/3404306103503929305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/8741917226850532685/comments/default/3404306103503929305'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html?showComment=1270151836000#c3404306103503929305' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/05/intercepting-status-bar-touches-on.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-8741917226850532685' source='http://www.blogger.com/feeds/371408380585915800/posts/default/8741917226850532685' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry></feed>
