<?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>KosherJava &#187; iPhone</title>
	<atom:link href="http://www.kosherjava.com/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kosherjava.com</link>
	<description>A weblog about Zmanim, Kosher Coffee (Kosher Java) and other odds &#38; ends</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zmanim API Ported to Cocoa / Objective-C</title>
		<link>http://www.kosherjava.com/2011/07/29/zmanim-api-ported-to-cocoa-objective-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zmanim-api-ported-to-cocoa-objective-c</link>
		<comments>http://www.kosherjava.com/2011/07/29/zmanim-api-ported-to-cocoa-objective-c/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 16:48:25 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Cocoa API]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=875</guid>
		<description><![CDATA[Moshe Berman completed the 2.0 release of his port of the KosherJava Zmanim API from Java to a Cocoa API using Objective-C. You can see the work in the KosherCocoa project page. The original work on the port dates back to Moshe&#8217;s iPhone Ultimate Omer 2 (iTunes link) app. In that app, he ported the [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/PortCityJava240.jpg" alt="Port City Java" title="Port City Java" /><a href="http://www.mosheberman.com">Moshe Berman</a> completed the 2.0 release of his port of the KosherJava <a href="http://www.kosherjava.com/zmanim-project/">Zmanim API</a> from Java to a <a href="http://en.wikipedia.org/wiki/Cocoa_%28API%29">Cocoa API</a> using <a href="http://en.wikipedia.org/wiki/Objective-C">Objective-C</a>. You can see the work in the <a href="https://github.com/MosheBerman/KosherCocoa">KosherCocoa</a> project page. The original work on the port dates back to Moshe&#8217;s iPhone <a href="http://mosheberman.com">Ultimate Omer 2</a> (<a href="http://itunes.com/apps/mosheberman/sefira">iTunes link</a>) app. In that app, he ported the minimum amount of code needed to calculate sunset in order to roll the day of the Omer after sunset. With Moshe&#8217;s latest check-in at <a href= "https://github.com">github</a>, he provided a port of a good portion of the API sticking to the basic design of the KosherJava API. The complexZmanimCalendar still remains to be ported, but the majority of zmanim in common use are in the ported ZmanimCalendar. Moshe&#8217;s blog post <a href="http://mosheberman.com/wordpress/2011/07/25/koshercocoa-2-0/">Introducing KosherCocoa 2.0</a> has additional details. Additional developer notes can be seen in the <a href="https://github.com/MosheBerman/KosherCocoa/wiki">KosherCocoa wiki page</a>. This port will be a boon to <a href="http://en.wikipedia.org/wiki/IOS_%28Apple%29">iOS</a> developers who now have a simple way to include zmanim in their iPhone and iPad apps.
Here is some sample code that outputs zmanim to the <a href="http://en.wikipedia.org/wiki/Console_%28Mac_OS_X%29">console</a>.

<h3>Zmanim.m</h3>
<pre class="brush: objc; highlight: [24,25,26,27]; title: ; notranslate">
#import &lt;Foundation/Foundation.h&gt;
#import &quot;ZmanimCalendar.h&quot;

int main (int argc, const char * argv[]){

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    //  Set up the location
    NSString *locationName = @&quot;Lakewood, NJ&quot;;
    double latitude = 40.096; //Lakewood, NJ
    double longitude = -74.222; //Lakewood, NJ
    NSTimeZone *timeZone = [NSTimeZone timeZoneForSecondsFromGMT:-18000];

    //  Initialize the Zmanim Calendar
    GeoLocation *geoLocation = [[GeoLocation alloc] initWithName:locationName andLatitude:latitude andLongitude:longitude andTimeZone:timeZone];
    ZmanimCalendar *zmanimCalendar = [[ZmanimCalendar alloc] initWithLocation:geoLocation];

    //  Create a Formatter for the date information
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setTimeZone:timeZone];
    [formatter setDateStyle:NSDateFormatterNoStyle];
    [formatter setTimeStyle:NSDateFormatterMediumStyle];

    NSDate *sunrise = [zmanimCalendar sunrise];
    NSDate *sofZmanShmaMGA = [zmanimCalendar sofZmanShmaMogenAvraham];
    NSDate *sofZmanShmaGRA = [zmanimCalendar sofZmanShmaGra];
    NSDate *sunset = [zmanimCalendar sunset];

    NSLog(@&quot;Today's Zmanim for %@&quot;,  [geoLocation locationName]);
    NSLog(@&quot;Sunrise: %@&quot;,  [formatter stringFromDate:sunrise]);
    NSLog(@&quot;Sof Zman Shema MGA: %@&quot;,  [formatter stringFromDate:sofZmanShmaMGA]);
    NSLog(@&quot;Sof Zman Shema GRA: %@&quot;,  [formatter stringFromDate:sofZmanShmaGRA]);
    NSLog(@&quot;Sunset: %@&quot;,  [formatter stringFromDate:sunset]);

    [pool drain];
    return 0;
}
</pre>

This would output (on February 8th):
<pre class="brush: plain; title: ; notranslate">
Today's Zmanim for Lakewood, NJ
Sunrise: 6:58:43 AM
Sof Zman Shema MGA: 8:59:04 AM
Sof Zman Shema GRA: 9:35:04 AM
Sunset: 5:24:09 PM
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2011/07/29/zmanim-api-ported-to-cocoa-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Native iPhone Zmanim Applications in the App Store</title>
		<link>http://www.kosherjava.com/2008/09/21/3-native-iphone-zmanim-applications-in-the-app-store/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=3-native-iphone-zmanim-applications-in-the-app-store</link>
		<comments>http://www.kosherjava.com/2008/09/21/3-native-iphone-zmanim-applications-in-the-app-store/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 17:08:19 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/2008/09/21/3-native-iphone-zmanim-applications-in-the-app-store/</guid>
		<description><![CDATA[There are now 3 native iPhone programs in the iPhone App Store that display Zmanim. Pocket Luach from Tebeka Software, Zmanim from Avi Shevin and the iPhone Siddur from Rusty Brick. It is interesting to note that 2 out of the 3 use an open source Zmanim library. Zmanim uses Ken Bloom&#8217;s zmanim code (the [...]]]></description>
			<content:encoded><![CDATA[There are now 3 native iPhone programs in the iPhone App Store that display Zmanim. <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285016304&#038;mt=8">Pocket Luach</a> from <a href="http://tebeka.com">Tebeka Software</a>, <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=290195543&#038;mt=8">Zmanim</a> from <a href="http://zmanim.ashevin.com">Avi Shevin</a> and the iPhone <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=286478367&#038;mt=8">Siddur</a> from <a href="http://www.rustybrick.com">Rusty Brick</a>. It is interesting to note that 2 out of the 3 use an open source Zmanim library. Zmanim uses <a href="http://sourceforge.net/projects/zmanim/">Ken Bloom&#8217;s zmanim code</a> (the optional <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/util/ZmanimCalculator.html">ZmanimCalculator</a> module in our Zmanim API uses a Java port of this code), and the iPhone Siddur uses a port of our own <a href="zmanim-project/">KosherJava Zmanim API</a> (as mentioned in an email from the developer). With all of these available (and I am sure there are more to come), I am abandoning the <a href="http://www.kosherjava.com/2008/07/17/izmanim-an-alpha-release-of-zmanim-for-the-iphone/">iZmanim project</a> to build a zmanim <a href="http://en.wikipedia.org/wiki/User_interface">UI</a> for the iPhone, since there is little need for it. My effort will concentrate on enhancing the API itself. I hope to be able to release the Rusty Brick <a href="http://en.wikipedia.org/wiki/Objective-C">Objective-C</a> port of the API in the near future.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2008/09/21/3-native-iphone-zmanim-applications-in-the-app-store/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>iZmanim &#8211; An Alpha Release of Zmanim for the iPhone</title>
		<link>http://www.kosherjava.com/2008/07/17/izmanim-an-alpha-release-of-zmanim-for-the-iphone/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=izmanim-an-alpha-release-of-zmanim-for-the-iphone</link>
		<comments>http://www.kosherjava.com/2008/07/17/izmanim-an-alpha-release-of-zmanim-for-the-iphone/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 04:14:55 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/2008/07/17/izmanim-an-alpha-release-of-zmanim-for-the-iphone/</guid>
		<description><![CDATA[The release of the iPhone 3G got me thinking about zmanim on the iPhone. While I would eventually like to create a free native iPhone zmanim app, for now I created a simple iPhone web app to test out the UI. While only of alpha quality, the iZmanim web app should properly work on an [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/izmanim_sm.png" alt="iZmanim screenshot"/>The release of the <a href="http://www.apple.com/iphone/">iPhone 3G</a> got me thinking about <em>zmanim</em> on the iPhone. While I would eventually like to create a free <a href="http://www.apple.com/iphone/appstore/">native iPhone</a> zmanim app, for now I created a simple <a href="http://www.apple.com/webapps/">iPhone web app</a> to test out the UI. While only of alpha quality, the <a href="http://www.kosherjava.com/java-kosherja/zmanim/izmanim.jsp">iZmanim web app</a> should properly work on an iPhone (tested in Safari on Windows and iPhone emulators). These is a settings page that persists changes made. The iZmanim web app was built using the <a href="http://code.google.com/p/iui/">iUI framework</a>. iZmanim can be tested with any <a href="http://webkit.org/">Webkit</a> browser. For the full effect, try it using the <a href="http://iphonetester.com/?url=http://www.kosherjava.com/java-kosherja/zmanim/izmanim.jsp">iPhone Tester</a> on <a href="http://www.apple.com/safari/">Safari</a>. Please note that it will not properly load in IE or Firefox. 

If any <a href="http://en.wikipedia.org/wiki/Cocoa_(computing)">Cocoa</a>/<a href="http://en.wikipedia.org/wiki/Objective-C">Objective C</a>/iPhone developers would like to give a hand in developing the native iZmanim, please <a href="http://www.kosherjava.com/contact/">contact me</a>.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2008/07/17/izmanim-an-alpha-release-of-zmanim-for-the-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

