<?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/"
	>

<channel>
	<title>dogan kaya berktas &#187; iphone application</title>
	<atom:link href="http://doganberktas.com/tag/iphone-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://doganberktas.com</link>
	<description>is actually from a small planet somewhere in the vicinity of Betelgeuse</description>
	<lastBuildDate>Thu, 26 Jan 2012 00:29:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Adding Transparent Modal View Programatically&#8211; iPhone</title>
		<link>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/</link>
		<comments>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/#comments</comments>
		<pubDate>Tue, 18 May 2010 03:14:28 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[iphone application]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[UIActivityIndicatorView]]></category>
		<category><![CDATA[uiview]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=301</guid>
		<description><![CDATA[Assuming you have a long process  taken so long that you want to show a transparent view, you can do it very easily by just adding the following method to your .m file and you will get the following transparent loading view -(void)showLoadingView { CGRect transparentViewFrame = CGRectMake(0.0, 0.0,320.0,480.0); transparentView = [[UIView alloc] initWithFrame:transparentViewFrame]; transparentView.backgroundColor [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming you have a long process  taken so long that you want to show a transparent view, you can do it very easily by just adding the following method to your .m file and you will get the following transparent loading view</p>
<p style="text-align: center;"><a href="http://doganberktas.com/wp-content/uploads/2010/05/Screen-shot-2010-05-17-at-8.09.33-PM.png"><br />
<img class="size-full wp-image-302 aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="Screen shot 2010-05-17 at 8.09.33 PM" src="http://doganberktas.com/wp-content/uploads/2010/05/Screen-shot-2010-05-17-at-8.09.33-PM.png" alt="" width="414" height="770" /></a></p>
<pre>-(void)showLoadingView
{
	CGRect transparentViewFrame = CGRectMake(0.0, 0.0,320.0,480.0);
	transparentView = [[UIView alloc] initWithFrame:transparentViewFrame];
	transparentView.backgroundColor = [UIColor lightGrayColor];
	transparentView.alpha = 0.9;

	UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
	spinner.center = transparentView.center;
	[spinner startAnimating];

	UILabel *messageLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 280, 320, 30)];
	messageLabel.textAlignment = UITextAlignmentCenter;
	messageLabel.text = @"please wait...";

	[transparentView addSubview:spinner];
	[transparentView addSubview:messageLabel];

	[self.view addSubview:transparentView];

	[messageLabel release];
	[spinner release];
	[transparentView release];
}
</pre>
<p>Now, you should call this function whenever needed. Let&#8217;s say you have a background process that will run while the transparent loading view is shown, below is the code to handle this situation:</p>
<pre>-(void)myAction:(id)sender
{
	[self showLoadingView];

	[self performSelectorInBackground:@selector(myActionBackground:) withObject:sender];
}

-(void)myActionBackground:(id)sender
{
        NSAutoreleasePool *apool = [[NSAutoreleasePool alloc] init];
	//your code
        [apool release];
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using Memcache with Google App Engine (GAE/J)</title>
		<link>http://doganberktas.com/2010/01/18/using-memcache-with-google-app-engine-gaej-a-simple-beginning-fragman-iphone-application/</link>
		<comments>http://doganberktas.com/2010/01/18/using-memcache-with-google-app-engine-gaej-a-simple-beginning-fragman-iphone-application/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 21:39:23 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[gae]]></category>
		<category><![CDATA[gae/j]]></category>
		<category><![CDATA[Google App Engine]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[ifragman]]></category>
		<category><![CDATA[iphone application]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Servlet]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Memcached]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=196</guid>
		<description><![CDATA[A simple beginning &#8212; Fragman iPhone Application Memcache provides convenience to store a frequent query in memory, so that you don&#8217;t have to make the same execution over and over again. For the iPhone application I build (Fragman), I build a GAE/J backend for managing movie names, IMDB URLs, thumb images, video files, etc. It [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A simple beginning &#8212; Fragman iPhone Application</strong></p>
<p>Memcache provides convenience to store a frequent query in memory, so that you don&#8217;t have to make the same execution over and over again. For the <a href="http://ifragman.com"><span style="color: #800000;">iPhone application I build (Fragman</span></a><span style="color: #800000;">)</span>, I build a GAE/J backend for managing movie names, IMDB URLs, thumb images, video files, etc. It interacts with the Obj-c code via calls encoded in JSON.</p>
<p>Since the categories are updated so frequently (new trailer, top 250 , soap opera trailers), every time the user starts the application from her iPhone, the corresponding categories Id(key) lists are  created which includes all the aspects mentioned above,</p>
<p>what I see, after people start to use the application that, most of the time, the application got stuck with the time constraint of GAE and  this causes inconvenience, so I decided to hold the category lists&#8217;s JSON in memory. Following is the code ,</p>
<p>this is the servlet for creating the JSON which is called after say upcoming movie list is changed. This servlet updates the memcached list</p>
<pre>        List keyList = new ArrayList();
	static Cache cache;
	static
	{
		try
		{
			CacheFactory cacheFactory =</pre>
<pre>CacheManager.getInstance().getCacheFactory();
			cache = cacheFactory.createCache(</pre>
<pre>Collections.emptyMap());
		}
		catch (CacheException e)
		{
			// ...
		}
		//.....
                public void doGet(HttpServletRequest request,</pre>
<pre>HttpServletResponse response) throws ServletException, IOException</pre>
<pre>	        {
                       //................
                       if(cache.containsKey(mode))
		       {
			     cache.remove(mode);
		       }
		       cache.put(mode, keyList);
	        }</pre>
<pre>                //........</pre>
<pre>          }</pre>
<p>And this is the servlet that fetch the Fragman beans from the datastore with the given keys (key list is got from the memecached list)</p>
<pre>          keyList = (List)cache.get(mode);</pre>
<pre>By doing this, I reduce the time that the servlet that creates the JSON takes.</pre>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/01/18/using-memcache-with-google-app-engine-gaej-a-simple-beginning-fragman-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fragman iPhone Application</title>
		<link>http://doganberktas.com/2010/01/18/fragman-iphone-application/</link>
		<comments>http://doganberktas.com/2010/01/18/fragman-iphone-application/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 15:54:29 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[cinema]]></category>
		<category><![CDATA[fragman]]></category>
		<category><![CDATA[iphone application]]></category>
		<category><![CDATA[sinema]]></category>
		<category><![CDATA[teaser]]></category>
		<category><![CDATA[trailer]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=177</guid>
		<description><![CDATA[Film fragmalarini ve trailerlarini iceren yeni iPhone uygulamasi Fragman app store&#8217;da yerini aldi.  Vizyon, gelecek, dizi ve Top 250 (imdb top 250) kategorilerini iceriyor, su an icin oldukca guncel devamini da getirmeyi dusunuyoruz, yardim etmek isteyenler olursa cok seviniriz. Uygulamanin web sayfasi http://ifragman.com.]]></description>
			<content:encoded><![CDATA[<p>Film fragmalarini ve trailerlarini iceren yeni iPhone uygulamasi Fragman app store&#8217;da yerini aldi.  Vizyon, gelecek, dizi ve Top 250 (imdb top 250) kategorilerini iceriyor, su an icin oldukca guncel <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  devamini da getirmeyi dusunuyoruz, yardim etmek isteyenler olursa cok seviniriz. Uygulamanin web sayfasi <a href="http://ifragman.com">http://ifragman.com</a>.</p>
<p><a href="http://dogan.appspot.com/33"><img style="border: 0pt none;" src="http://doganberktas.com/wp-content/uploads/2010/01/App_Store1.jpg" alt="app store" /></a></p>
<p><a href="http://doganberktas.com/wp-content/uploads/2010/01/photo-4.jpg"><img class="size-full wp-image-178" title="photo 4" src="http://doganberktas.com/wp-content/uploads/2010/01/photo-4.jpg" alt="" width="320" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/01/18/fragman-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

