<?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>REALbasic City &#187; Tutorials</title>
	<atom:link href="http://realbasic.tutspolis.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://realbasic.tutspolis.com</link>
	<description>Tutorials - Tutspolis.com</description>
	<lastBuildDate>Sat, 29 May 2010 23:10:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating multi language app in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/creating-multi-language-app-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/creating-multi-language-app-in-realbasic/#comments</comments>
		<pubDate>Sat, 29 May 2010 23:08:36 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[multi language]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=268</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 268, userID 0, combination 1 -->
			
				
			
		
In this tutorial we will learn how can we create a multi language application in REALbasic using few little steps. Watch it, learn it, enjoy it!


Add module Localization in REALbasic
First thing go to your project tab and add a new module called Localization. Now double click on it and add new constant from menu. In [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 268, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fcreating-multi-language-app-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fcreating-multi-language-app-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial we will learn how can we create a multi language application in REALbasic using few little steps. Watch it, learn it, enjoy it!</p>
<p><span id="more-268"></span></p>
<div style="margin-left:19px;float:left">
<h2>Add module Localization in REALbasic</h2>
<p>First thing go to your project tab and add a new module called Localization. Now double click on it and add new constant from menu. In Constant Name type Exit_app, in Default Value type Exit, in Type choose String and finally make Dynamic option checked. Now click on + button and in Platform select Any, in Language select Polish and in Value enter Zakoncz. This way when the user have a Polish language operating system he will get Polish language of Exit text. Of course you can also specify any platform (Windows, Mac, Linux) for translation. Any gives the same value for each platform.  The same method can be used to add more translation of this type of string.</p>
<h2>Connect Constant Name to Menu Item</h2>
<p>Now we will connect our Constant Name (Exit_app) to our MenuBar Item text. Go to Project Tab and click on Add Menu Bar button. Now click on Add Menu and then click on Add Menu Item. Change the Menu name from Untitled to File and select first Menu Item from File menu. Now in it Appearance Text type our Constant Name &#8211; #Exit_app. If you have problems with creating a Menu in REAlbasic you can always go back to my other tutorial like <a href="http://realbasic.tutspolis.com/tutorials/preferences-menu-on-mac-in-realbasic">Preferences menu on Mac in REALbasic</a> to see how can this be done.
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/creating-multi-language-app-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PM: REALbasic TextField control with autocomplete</title>
		<link>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textfield-control-with-autocomplete/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textfield-control-with-autocomplete/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 17:35:01 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[autcomplete]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[textfield]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=262</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 262, userID 0, combination 1 -->
			
				
			
		
In this tutorial for premium members we will learn how can we create easy a autocomplete function for REALbasic TextField Control. Watch it, learn it, enjoy it!


Coding autocomplete function
First add to Window1 Class a TextFiled Control. OK, before coding we must add New Property Del As Boolean. This will give us a option to control [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 262, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-realbasic-textfield-control-with-autocomplete%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-realbasic-textfield-control-with-autocomplete%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial for premium members we will learn how can we create easy a autocomplete function for REALbasic TextField Control. Watch it, learn it, enjoy it!</p>
<p><span id="more-262"></span></p>
<div style="margin-left:19px;float:left">
<h2>Coding autocomplete function</h2>
<p>First add to Window1 Class a TextFiled Control. OK, before coding we must add New Property Del As Boolean. This will give us a option to control if users is clicking delete button on keyboard. Our next step is checking if users is trying to delete some character from the string. Add to TextField1 Function KeyDown this code: Del = (Chr(8) = Key). Now we are ready to make everything work nice. OK, add some code to REALbasic code editor in TextField1 Sub () TextChange like in this example.</p>
<p>	<div class='ArePayPalContent'>
	<p class='ArePayPalTextToShowIfNotLogedIn'>If you see this message you probably want access special material for Premium Members (Source Files, Bonus Tutorials, free Classes and More). You can do this by subscribing REALbasic City site for 10 USD (access for 3 months). There is also a option to buy access only to this material. Login or register to get option to buy and support REALbasic City.</p>
	<a class='ArePayPalLoginButton' href='http://tutspolis.com/wp-login.php'>Log in</a>
	</div></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textfield-control-with-autocomplete/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PM: REALbasic TextArea Syntax highlighting tutorial</title>
		<link>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textarea-syntax-highlighting-tutorial/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textarea-syntax-highlighting-tutorial/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 00:06:41 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[highlighting]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=260</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 260, userID 0, combination 1 -->
			
				
			
		
Syntax highlighting is a feature of some text editors that display text-especially source code-in different colors and fonts according to the category of terms. Here is a nice and small starting point tutorial showing how can you create this kind of effect in REALbasic.


Creating the GUI for TextArea Syntax highlighting
Add to Window1 one TextField Control. [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 260, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-realbasic-textarea-syntax-highlighting-tutorial%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-realbasic-textarea-syntax-highlighting-tutorial%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Syntax highlighting is a feature of some text editors that display text-especially source code-in different colors and fonts according to the category of terms. Here is a nice and small starting point tutorial showing how can you create this kind of effect in REALbasic.</p>
<p><span id="more-260"></span></p>
<div style="margin-left:19px;float:left">
<h2>Creating the GUI for TextArea Syntax highlighting</h2>
<p>Add to Window1 one TextField Control. Now go to TextField Sub () TextChange and enter some code&#8230; Before we start there are some things to clarify. First &#8211; this is only a starting point for creating inline text checking and it works only after typing. So I mean by this that there is no option to get for example to first line (after typing 10) and add some change to code (at least as expected). But as I mentioned earlier this is a good start tutorial, so you can create own REALbasic TextArea Syntax highlighting Class. Hope you will enjoy it!<br />
	<div class='ArePayPalContent'>
	<p class='ArePayPalTextToShowIfNotLogedIn'>If you see this message you probably want access special material for Premium Members (Source Files, Bonus Tutorials, free Classes and More). You can do this by subscribing REALbasic City site for 10 USD (access for 3 months). There is also a option to buy access only to this material. Login or register to get option to buy and support REALbasic City.</p>
	<a class='ArePayPalLoginButton' href='http://tutspolis.com/wp-login.php'>Log in</a>
	</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/pm-realbasic-textarea-syntax-highlighting-tutorial/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PM: Create a text suggestion during typing</title>
		<link>http://realbasic.tutspolis.com/tutorials/pm-create-a-text-suggestion-during-typing/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/pm-create-a-text-suggestion-during-typing/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 10:06:05 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[suggestion]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=252</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 252, userID 0, combination 1 -->
			
				
			
		
In this tutorial we will learn how can we create a text suggestion during typing in REALbasic. This way when we will write a text in TextField we will get a suggestion what we like to enter before we even finish typing. Watch it, learn it, enjoy it!


Creating the GUI for text suggestion during typing
Add [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 252, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-create-a-text-suggestion-during-typing%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-create-a-text-suggestion-during-typing%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial we will learn how can we create a text suggestion during typing in REALbasic. This way when we will write a text in TextField we will get a suggestion what we like to enter before we even finish typing. Watch it, learn it, enjoy it!</p>
<p><span id="more-252"></span></p>
<div style="margin-left:19px;float:left">
<h2>Creating the GUI for text suggestion during typing</h2>
<p>Add to Window1 one TextField Control and two Static Text Controls. Change the StaticText1 Text Property to value &#8220;Suggestion:&#8221;. Now we will put some code to make everything work <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<h2>Coding a text suggestion function during typing</h2>
<p>Go to REALbasic code editor and in TextField1  Sub TextChange enter the code below. If you like you can also add to StaticText2 Function MouseDown code TextField1.Text = me.Text that will after clicking on StaticText2 change the TextField1.Text to StaticText2.Text.</p>
<p>	<div class='ArePayPalContent'>
	<p class='ArePayPalTextToShowIfNotLogedIn'>If you see this message you probably want access special material for Premium Members (Source Files, Bonus Tutorials, free Classes and More). You can do this by subscribing REALbasic City site for 10 USD (access for 3 months). There is also a option to buy access only to this material. Login or register to get option to buy and support REALbasic City.</p>
	<a class='ArePayPalLoginButton' href='http://tutspolis.com/wp-login.php'>Log in</a>
	</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/pm-create-a-text-suggestion-during-typing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PM: Create TwittMe v2 a twitter client in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/pm-create-twittme-v2-a-twitter-client-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/pm-create-twittme-v2-a-twitter-client-in-realbasic/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 20:08:33 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[httpsocket]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[twitter api]]></category>
		<category><![CDATA[twitter client]]></category>
		<category><![CDATA[twittme]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=248</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 248, userID 0, combination 1 -->
			
				
			
		
In this Premium Member tutorial we will learn how to create a cross-platform twitter client using REALbasic HTTPSocket Class. Our twitter client will also offer a option to insert short URL to twitter updates. Watch it, learn it, enjoy it!


Creating the GUI for twitter client
We will use in this project controls: 2x StaticText, 1x TextArea, [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 248, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-create-twittme-v2-a-twitter-client-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-create-twittme-v2-a-twitter-client-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this Premium Member tutorial we will learn how to create a cross-platform twitter client using REALbasic HTTPSocket Class. Our twitter client will also offer a option to insert short URL to twitter updates. Watch it, learn it, enjoy it!</p>
<p><span id="more-248"></span></p>
<div style="margin-left:19px;float:left">
<h2>Creating the GUI for twitter client</h2>
<p>We will use in this project controls: 2x StaticText, 1x TextArea,  1x TextField and 2x PushButton. Try to get results close to the screenshot below. Change in StaticText1 -&gt; Appearance -&gt; Text Value to What are you doing? and in StaticText2 change text to 140 and the Font to bold style. In TextArea1 change the property LimitText value to 140 (this way we will add a limit for character in this control).  On bottom insert PushButton1 control and change it Caption to &#8220;Update on twitter&#8221;. Add also one TextField for our URL and one PushButton2 control with Caption &#8220;Insert Short URL&#8221;. You should get something like that:</p>
<p><img src="http://realbasic.tutspolis.com/files/tutorials/twittmev2.png" alt="realbasic TwittMe v2" /></p>
<h2>Count remaining characters&#8230;</h2>
<p>Twitter allows using only 140 characters per update so we will create a character counter in our application. Go to TextArea1 Sub TextChange() and insert there the code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">StaticText2.Text = <span style="color: #000080;">CStr</span>(140 - Len(TextArea1.Text))</pre></td></tr></table></div>

<p>CStr function converts the number to string and in () we count how many characters are left in our TextArea1 control. Len function give us how many character are in TextArea1 control. </p>
<p>	<div class='ArePayPalContent'>
	<p class='ArePayPalTextToShowIfNotLogedIn'>If you see this message you probably want access special material for Premium Members (Source Files, Bonus Tutorials, free Classes and More). You can do this by subscribing REALbasic City site for 10 USD (access for 3 months). There is also a option to buy access only to this material. Login or register to get option to buy and support REALbasic City.</p>
	<a class='ArePayPalLoginButton' href='http://tutspolis.com/wp-login.php'>Log in</a>
	</div></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/pm-create-twittme-v2-a-twitter-client-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Listbox row info effect in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/listbox-row-info-effect-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/listbox-row-info-effect-in-realbasic/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 22:17:47 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[listbox]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=242</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 242, userID 0, combination 1 -->
			
				
			
		
In this tutorial we will learn how to add a nice looking Listbox row info effect that can be found for example in Apple Mail (new messages in Inbox) or in Chronories application (number of search results). Watch it, learn it, enjoy it!


Add data to REALbasic Listbox Control
Simply add a Listbox Control to Window1 and [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 242, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Flistbox-row-info-effect-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Flistbox-row-info-effect-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial we will learn how to add a nice looking Listbox row info effect that can be found for example in Apple Mail (new messages in Inbox) or in Chronories application (number of search results). Watch it, learn it, enjoy it!</p>
<p><span id="more-242"></span></p>
<div style="margin-left:19px;float:left">
<h2>Add data to REALbasic Listbox Control</h2>
<p>Simply add a Listbox Control to Window1 and then in Listbox1 Sub Open () enter some code&#8230; Set also the DefaultRowHeight Property to 24.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">Listbox1.AddRow(<span style="color: #800000;">&quot;Folders&quot;</span>)
Listbox1.AddRow(<span style="color: #800000;">&quot;Files&quot;</span>)
Listbox1.AddRow(<span style="color: #800000;">&quot;Pictures&quot;</span>)
Listbox1.AddRow(<span style="color: #800000;">&quot;Movies&quot;</span>)
Listbox1.AddRow(<span style="color: #800000;">&quot;Music&quot;</span>)</pre></td></tr></table></div>

<h2>Add info effect and format data in REALbasic Listbox</h2>
<p>At this part we will format the look of our data, and we will also add row info effect with some random numbers inside. Add this code to Listbox1 Function CellTextPaint ().</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Dim</span> r <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> <span style="color: #000080;">Random</span>
&nbsp;
&nbsp;
<span style="color: #000080;">if</span> column = 0 <span style="color: #000080;">then</span>
&nbsp;
    g.DrawString (me.Cell(row, 0), x, 18, g.Width - x, <span style="color: #000080;">true</span>) //draw the Listbox1.AddRow(<span style="color: #800000;">&quot;Folders&quot;</span>) etc.
&nbsp;
<span style="color: #000080;">end</span>
&nbsp;
&nbsp;
  g.ForeColor = &amp;cCDCDCD //change color <span style="color: #000080;">to</span> silver
  g.FillRoundRect(me.Width - 33, 3, 22,17, 15,15) //paint a round rectangle
&nbsp;
&nbsp;
  g.ForeColor = &amp;cFDFFFB //change color <span style="color: #000080;">to</span> white
  g.Bold = <span style="color: #000080;">true</span> //bold <span style="color: #000080;">on</span>
  g.TextSize = 11 //change font size <span style="color: #000080;">to</span> 11
&nbsp;
  g.DrawString(Str(r.InRange(0,9)),me.Width - 26, 15, g.Width - x, <span style="color: #000080;">true</span>) //draw a <span style="color: #000080;">String</span> <span style="color: #000080;">with</span> <span style="color: #000080;">random</span> number
&nbsp;
return <span style="color: #000080;">true</span></pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/listbox-row-info-effect-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Preferences menu on Mac in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/preferences-menu-on-mac-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/preferences-menu-on-mac-in-realbasic/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:29:26 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=240</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 240, userID 0, combination 1 -->
			
				
			
		
The preferences menu on Mac OS X is traditionally located under the application menu. In this quick tutorial we will learn how can we add fast this kind of option under the Mac application menu using REALbasic. Watch it, learn it, enjoy it!


Preferences menu on Mac in REALbasic
To have your preferences menu appear under the [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 240, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpreferences-menu-on-mac-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpreferences-menu-on-mac-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The preferences menu on Mac OS X is traditionally located under the application menu. In this quick tutorial we will learn how can we add fast this kind of option under the Mac application menu using REALbasic. Watch it, learn it, enjoy it!</p>
<p><span id="more-240"></span></p>
<div style="margin-left:19px;float:left">
<h2>Preferences menu on Mac in REALbasic</h2>
<p>To have your preferences menu appear under the application menu, all you have to do is make sure to create a super &#8220;PrefsMenuItem&#8221; of that menu, and REALbasic will take care of the rest. Go to Project Tab and click on MenuBar1. Now for example in Edit Menu Add Menu Item and name it Preferences. To display this submenu under the application menu go to it Super Property and enter there PrefsMenuItem. </p>
<p><img src="http://realbasic.tutspolis.com/files/tutorials/preferencesmenu.png" alt="Preferences menu on Mac in REALbasic" /></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/preferences-menu-on-mac-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cross-platform code in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/cross-platform-code-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/cross-platform-code-in-realbasic/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 12:13:15 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cross-platform]]></category>
		<category><![CDATA[multi-platform]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=236</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 236, userID 0, combination 1 -->
			
				
			
		
In this quick tutorial we will learn how to create a cross-platorm code in REALbasic that will work only with specific platform. Watch it, learn it, enjoy it!


REALbasic and cross-platform code
As you can see it&#8217;s very easy to create a multi-platform code that will interact with specific platform. Like I said it was a quick [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 236, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fcross-platform-code-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fcross-platform-code-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this quick tutorial we will learn how to create a cross-platorm code in REALbasic that will work only with specific platform. Watch it, learn it, enjoy it!</p>
<p><span id="more-236"></span></p>
<div style="margin-left:19px;float:left">
<h2>REALbasic and cross-platform code</h2>
<p>As you can see it&#8217;s very easy to create a multi-platform code that will interact with specific platform. Like I said it was a quick lesson <img src='http://realbasic.tutspolis.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">#if TargetWin32
   MsgBox (<span style="color: #800000;">&quot;You are running MS Windows&quot;</span>) //Windows specific code here
#elseif TargetMacOS
   MsgBox (<span style="color: #800000;">&quot;You are running Mac OS&quot;</span>) //Macintosh specific code goes here.
#elseif TargetLinux
   MsgBox (<span style="color: #800000;">&quot;You are running Linux&quot;</span>) //Linux specific code goes right here.
#endIf</pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/cross-platform-code-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PM: iPhone App Listbox for REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/pm-iphone-app-listbox-for-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/pm-iphone-app-listbox-for-realbasic/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:02:21 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[listbox]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=233</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 233, userID 0, combination 1 -->
			
				
			
		
In this tutorial for Premium Members we will learn how to create a similar to iPhone App Listbox available in iTunes for REALbasic. To get this kind of effect we will use a standard Listbox Control. Watch it, learn it, enjoy it and get a premium member account or buy access to only this material!


Creating [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 233, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-iphone-app-listbox-for-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fpm-iphone-app-listbox-for-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial for Premium Members we will learn how to create a similar to iPhone App Listbox available in iTunes for REALbasic. To get this kind of effect we will use a standard Listbox Control. Watch it, learn it, enjoy it and get a premium member account or buy access to only this material!</p>
<p><span id="more-233"></span></p>
<div style="margin-left:19px;float:left">
<h2>Creating iPhone App Listbox GUI</h2>
<p>Add a Listbox Control to REALbasic and insert it on left side of Window1. Now in Property and Value panel lock the Listbox to left, top and bottom, disable UseFocusRing property, and change DefaultRowHeight to 40. Look on the screenshot to see what we will create.</p>
<p><img src="http://realbasic.tutspolis.com/files/tutorials/iphoneapplistbox.png" alt="iPhone App Listbox for REALbasic" /></p>
<p>	<div class='ArePayPalContent'>
	<p class='ArePayPalTextToShowIfNotLogedIn'>If you see this message you probably want access special material for Premium Members (Source Files, Bonus Tutorials, free Classes and More). You can do this by subscribing REALbasic City site for 10 USD (access for 3 months). There is also a option to buy access only to this material. Login or register to get option to buy and support REALbasic City.</p>
	<a class='ArePayPalLoginButton' href='http://tutspolis.com/wp-login.php'>Log in</a>
	</div></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/pm-iphone-app-listbox-for-realbasic/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Introduction to AppleScript</title>
		<link>http://realbasic.tutspolis.com/tutorials/introduction-to-applescript/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/introduction-to-applescript/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 13:01:28 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=227</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 227, userID 0, combination 1 -->
			
				
			
		
This tutorial will show you some basic in using AppleScript and REALbasic. The AppleScript is offering users an intelligent mechanism to control applications, and access and modify information and documents. We can use it in REALbasic for example to play music in iTunes, display contact from Address Book etc.


AppleScript Terminology
How can we know that for [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 227, userID 0, combination 1 --><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fintroduction-to-applescript%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fintroduction-to-applescript%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This tutorial will show you some basic in using AppleScript and REALbasic. The AppleScript is offering users an intelligent mechanism to control applications, and access and modify information and documents. We can use it in REALbasic for example to play music in iTunes, display contact from Address Book etc.</p>
<p><span id="more-227"></span></p>
<div style="margin-left:19px;float:left">
<h2>AppleScript Terminology</h2>
<p>How can we know that for example iTunes offers a option to play and pause the music using AppleScript? The answer is quite easy. To get the list of iTunes options available for AppleScript we must only drag and drop iTunes app into AppleScript Editor icon displayed in Dock. The Terminology window will open like on the screen below.</p>
<p><img src="http://realbasic.tutspolis.com/files/tutorials/applescriptdictionary.jpg" alt="Introduction to AppleScript for REALbasic" /></p>
<h2>AppleScript example &#8211; iTunes play</h2>
<p>Open AppleScript Editor and write this code into this editor. Next Compile it and click on Run button. When everything will go good your iTunes should lunch and play the music. If it&#8217;s already running then it will only play the music.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iTunes&quot;</span>
	play
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></td></tr></table></div>

<h2>AppleScript multiline command example</h2>
<p>We can also add more commands to our AppleScript file, like in this example. This code will return the number of files available in &#8220;Application&#8221; folder.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
    <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">folder</span> <span style="color: #009900;">&quot;Applications&quot;</span> <span style="color: #ff0033; font-weight: bold;">of</span> startup <span style="color: #0066ff;">disk</span> <span style="color: #0066ff;">exists</span> <span style="color: #ff0033; font-weight: bold;">then</span>
        <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #0066ff;">count</span> <span style="color: #0066ff;">files</span> <span style="color: #ff0033; font-weight: bold;">in</span> <span style="color: #0066ff;">folder</span> <span style="color: #009900;">&quot;Applications&quot;</span> <span style="color: #ff0033; font-weight: bold;">of</span> startup <span style="color: #0066ff;">disk</span>
    <span style="color: #ff0033; font-weight: bold;">else</span>
        <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">0</span>
    <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></td></tr></table></div>

<h2>Add parameters to AppleScript</h2>
<p>There is also a option to add some parameters in &#8220;on run&#8221; event. This example runs the  Growl Notification System and pass the growlDescription and growlTitle to GrowlHelperApp. If you like to know how to interact this kind of AppleScript with REALbasic then go to my tutorial <a href="http://realbasic.tutspolis.com/tutorials/growl-notification-system-for-realbasic/">Growl notification system for REALbasic</a>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #0066ff;">run</span> <span style="color: #000000;">&#123;</span>growlDescription, growlTitle<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;GrowlHelperApp&quot;</span>
&nbsp;
		<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> allNotificationsList <span style="color: #ff0033; font-weight: bold;">to</span> ¬
			<span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Notification&quot;</span><span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
		<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> enabledNotificationsList <span style="color: #ff0033; font-weight: bold;">to</span> ¬
			<span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Notification&quot;</span><span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
		register <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">application</span> ¬
			<span style="color: #009900;">&quot;Our application name&quot;</span> all notifications allNotificationsList ¬
			default notifications enabledNotificationsList ¬
			icon <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Safari&quot;</span>
		notify <span style="color: #ff0033; font-weight: bold;">with</span> <span style="color: #0066ff;">name</span> ¬
			<span style="color: #009900;">&quot;Notification&quot;</span> title ¬
			growlTitle description ¬
			growlDescription <span style="color: #0066ff;">application</span> <span style="color: #0066ff;">name</span> <span style="color: #009900;">&quot;Our application name&quot;</span>
&nbsp;
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
&nbsp;
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #0066ff;">run</span></pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/introduction-to-applescript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
