<?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; mac os</title>
	<atom:link href="http://realbasic.tutspolis.com/tag/mac-os/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>Dock Menu Plugin for REALbasic</title>
		<link>http://realbasic.tutspolis.com/plugins/dock-menu-plugin-for-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/plugins/dock-menu-plugin-for-realbasic/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 20:43:21 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=143</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 143, userID 0, combination 1 -->
			
				
			
		
In our recent tutorial we can read about drawing some useful informations on icon in Mac Dock. To extend this topic I like to show you BK Dock Menu plugin that takes advantage of the dock menu. We can add with this plugin some useful options to dock menu. 


BK Dock Menu is a plugin [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 143, 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%2Fplugins%2Fdock-menu-plugin-for-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Fplugins%2Fdock-menu-plugin-for-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In our recent <a href="http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/">tutorial</a> we can read about drawing some useful informations on icon in Mac Dock. To extend this topic I like to show you BK Dock Menu plugin that takes advantage of the dock menu. We can add with this plugin some useful options to dock menu. </p>
<p><span id="more-143"></span></p>
<div style="margin-left:19px;float:left">
BK Dock Menu is a plugin for REALbasic developers that lets you use your Macintosh OS X (10.1 and higher) dock menu to its fullest capacity. BK Dock Menu allows you to create heirarchical menu&#8217;s, use custom icons (in your bundled REALbasic application) and use system icons in your menu. It implements virtually all Menu Manager functions to allow any kind of customization imaginable, which is always a good thing. BK Dock Menu plugin works only for Macintosh versions of REALbasic. It requires Macintosh OS X 10.1 or higher.</p>
<p>The Macintosh dock is handy and REALbasic lets you put a menu on it. However, if you need a heirarchical menu (sub-menu&#8217;s if you will) then BK Dock Menu is for you! Have an unlimited number of sub-menu&#8217;s. If you need custom icons in your dock menu, you can easily do this in BK Dock Menu. Using a tool such as AppBundler from Bit Juggler Software to create your bundle, you can use BK Dock Menu to access the icns icon files in the resources directory of your bundle and display them in your dock menu. See our example project on how to use this feature.</p>
<h3>More informations</h3>
<ul>
<a href="http://www.bkeeney.com/products/dockmenu">Dock Menu Plugin for REALbasic</a><br />
<a href="http://www.bkeeney.com/downloads/file/20-bkdockmenu-demo">Download BK Dock Menu demo (purchase for US $15)</a>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/plugins/dock-menu-plugin-for-realbasic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add a icon and use DockItem Class in REALbasic</title>
		<link>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 22:21:49 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dock]]></category>
		<category><![CDATA[dockitem]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[realbasic]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=141</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 141, userID 0, combination 1 -->
			
				
			
		
In this tutorial we will learn how can we add some useful informations to our application icon displayed in Mac OS Dock. We can show there for example information about download speed like in Transmission or number of new emails if our software is a email client. Watch it, learn it, enjoy it!


REALbasic Dock icon [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 141, 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%2Fadd-a-icon-and-use-dockitem-class-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Ftutorials%2Fadd-a-icon-and-use-dockitem-class-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 add some useful informations to our application icon displayed in Mac OS Dock. We can show there for example information about download speed like in Transmission or number of new emails if our software is a email client. Watch it, learn it, enjoy it!</p>
<p><span id="more-141"></span></p>
<div style="margin-left:19px;float:left">
<h2>REALbasic Dock icon on Mac OS</h2>
<p>The DockItem Class works only on Mac OS. It enables you to manipulate the dock item associated with your application or with the application&#8217;s windows. To manipulate the application&#8217;s dock icon, use the DockItem property of the Application class. To manipulate a window&#8217;s dock icon, use the DockItem property of the Window class.</p>
<h2>Add a icon to REALbasic application</h2>
<p>Before we learn how can we add a icon to our application we should remember to design it as a 128&#215;128 pixel graphic. When we have that done we can go to Project Tab. Now in App Property: Icon add a 128&#215;128 graphics to Picture and Mask.</p>
<p><img src="http://realbasic.tutspolis.com/files/tutorials/editicon.png" alt="Add a icon to REALbasic application" /></p>
<h2>Draw a Graphics on our Dock icon</h2>
<p>In this moment we will simulate that our software is a email client so we like to display in the Dock icon info how many new email are waiting for the user. We can do this by drawing a FillOval and inserting on it a text. Add in REALbasic Code Editor &#8211; Event Handler Sub Open () this code.</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
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Dim</span> p, m <span style="color: #000080;">As</span> Picture
&nbsp;
p = NewPicture (128,128,32) // (width, height, depth)
&nbsp;
p.Graphics.ForeColor = RGB (255,0,0) // red color
p.graphics.FillOval (75,3,40,40) // create a oval <span style="color: #000080;">in</span> right top corner of our icon
&nbsp;
p.Graphics.ForeColor = RGB (255,255,255) // white color
p.Graphics.TextFont = <span style="color: #800000;">&quot;Arial&quot;</span> // use font Arial
p.Graphics.TextSize = 29 // text size
p.Graphics.Bold = <span style="color: #000080;">True</span> // make the text bold
p.Graphics.DrawString (<span style="color: #800000;">&quot;5&quot;</span>,86,32) // draw 5 <span style="color: #000080;">in</span> right top corner of our icon
&nbsp;
App.DockItem.Graphics.DrawPicture (p,0,0) //draw the picture <span style="color: #000080;">to</span> the Dock
App.DockItem.UpdateNow // update the Dock picture</pre></td></tr></table></div>

<p>As you can probably see in this moment your app icon in dock is a white square with nice looking email notification. But where is the Icon you have created, why it isn&#8217;t displaying on the Dock? The answer is simple, we must create a picture mask to hide the white square and show the icon.</p>
<h2>Creating a Graphics Mask</h2>
<p>To create a mask we must add some code in 13 line before App.DockItem.Graphics.DrawPicture (p,0,0). When we do this we will get the effect we have expected.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">m = NewPicture (128,128,32)
&nbsp;
m.Graphics.ForeColor = RGB (0,0,0)
m.graphics.FillOval (75,3,40,40)
&nbsp;
p.Graphics.ForeColor = RGB(255,255,255) // delete white color
m.Graphics.TextFont = <span style="color: #800000;">&quot;Arial&quot;</span>
m.Graphics.TextSize = 29
m.Graphics.Bold = <span style="color: #000080;">True</span>
m.Graphics.DrawString (<span style="color: #800000;">&quot;5&quot;</span>,86,32)
&nbsp;
p.Mask.Graphics.DrawPicture (m,0,0) //add the Mask <span style="color: #000080;">to</span> our picture</pre></td></tr></table></div>

<h2>Reset icon in Dock</h2>
<p>If we like to reset the Icon to default look we can use this 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;">App.DockItem.ResetIcon</pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/tutorials/add-a-icon-and-use-dockitem-class-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>AirRadar &#8211; Wireless Network Scanner created in REALbasic</title>
		<link>http://realbasic.tutspolis.com/software/airradar-wireless-network-scanner-created-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/software/airradar-wireless-network-scanner-created-in-realbasic/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:40:01 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[airradar]]></category>
		<category><![CDATA[koingo software]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=136</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 136, userID 0, combination 1 -->
			
				
			
		
AirRadar is a great software for scanning wireless networks on Mac OS. It can view detailed network information, display graph network signal strength, and automatic joining to the best open network in range. AirRadar is very popular but hardly anyone knows that this software is developed in REALbasic.


AirRadar description
Whether you are driving around looking for [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 136, 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%2Fsoftware%2Fairradar-wireless-network-scanner-created-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Fsoftware%2Fairradar-wireless-network-scanner-created-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>AirRadar is a great software for scanning wireless networks on Mac OS. It can view detailed network information, display graph network signal strength, and automatic joining to the best open network in range. AirRadar is very popular but hardly anyone knows that this software is developed in REALbasic.</p>
<p><span id="more-136"></span></p>
<div style="margin-left:19px;float:left">
<h2>AirRadar description</h2>
<p>Whether you are driving around looking for wireless networks, stuck in traffic, sitting on the beach, or if you are curious how strong your wireless signal is at home, AirRadar provides a more linear approach to network hunting. Setup a scan frequency, and have new open or closed networks have their name spoken, play alerts, or display notifications. Various other options allow you to customize your network list further, including assigning colors to best open networks and sound cues. </p>
<p><img src="http://realbasic.tutspolis.com/files/software/airradar.png" alt="AirRadar - Wireless Network Scanner created in REALbasic" /></p>
<h3>AirRadar Features</h3>
<p><b>Functionality:</b></p>
<ul>
<li>Automatically scan on launch</li>
<li>Play sounds after scanning, or for new networks</li>
<li>Remember scan history</li>
<li>Ad-hoc network scanning</li>
<li>Adjust scan interval</li>
<li>Set a maximum retention for out of scope networks</li>
<li>Speak new network names</li>
<li>Auto-join open networks with a good signal</li>
<li>GROWL support</li>
<li>Mark favourite networks</li>
<li>Filter out networks</li>
<li>Colorize networks based on status and type</li>
<li>Graph network noise and signal strength</li>
<li>Comment on networks</li>
<li>Export network lists</li>
<li>Join both open and closed networks</li>
<li>Disconnect from a network without turning off AirPort</li>
</ul>
<p><b>Information Retrieved:</b></p>
<ul>
<li>Ad-hoc status</li>
<li>Beacon Interval</li>
<li>CF Pollable Flag</li>
<li>CF Poll Request Flag</li>
<li>Channel</li>
<li>Channel Agility Flag</li>
<li>Encrypted Status</li>
<li>Encryption Type (WEP, WPA, WPA2, None)</li>
<li>Encryption Cipher (AES, TKIP)</li>
<li>First Seen</li>
<li>Last Seen</li>
<li>MAC Address (BSSID)</li>
<li>Managed Flag</li>
<li>Miss Count</li>
<li>Name</li>
<li>Noise Level</li>
<li>Reserved Flag</li>
<li>PBCC Flag</li>
<li>Signal Strength</li>
<li>Average, Min, and Max Signal Strength</li>
<li>Short Preamble Flag</li>
</ul>
<h3>More informations</h3>
<ul>
<a href="http://www.koingosw.com/products/airradar.php">AirRadar Home Page</a><br />
<a href="http://www.koingosw.com/downloads/getmirrorfile.php?path=%2Fdownloads%2Fmacintosh%2Fairradar.dmg">Download AirRadar for Mac OS</a>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/software/airradar-wireless-network-scanner-created-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTMLViewer Control in REALbasic</title>
		<link>http://realbasic.tutspolis.com/classes/htmlviewer-control-in-realbasic/</link>
		<comments>http://realbasic.tutspolis.com/classes/htmlviewer-control-in-realbasic/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 19:02:47 +0000</pubDate>
		<dc:creator>Jakub Pawlak</dc:creator>
				<category><![CDATA[Classes & Controls]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[htmlviewer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[realbasic]]></category>
		<category><![CDATA[web browser]]></category>
		<category><![CDATA[webkit]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://realbasic.tutspolis.com/?p=90</guid>
		<description><![CDATA[<!-- isPostPurchased ,postID 90, userID 0, combination 1 -->
			
				
			
		
HTMLViewer available in REALbasic is a great control to render HTML files and web pages. It can be used for example for building a simple web browser, HTML editor or file browser. Learn how can you get the best from HTMLViewer Control!


HTMLViewer with WebKit engine on Linux
HTMLViewer use default libgtkhtml library to render HTML on [...]]]></description>
			<content:encoded><![CDATA[<!-- isPostPurchased ,postID 90, 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%2Fclasses%2Fhtmlviewer-control-in-realbasic%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Frealbasic.tutspolis.com%2Fclasses%2Fhtmlviewer-control-in-realbasic%2F&amp;source=REALbasicCity&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>HTMLViewer available in REALbasic is a great control to render HTML files and web pages. It can be used for example for building a simple web browser, HTML editor or file browser. Learn how can you get the best from HTMLViewer Control!</p>
<p><span id="more-90"></span></p>
<div style="margin-left:19px;float:left">
<h2>HTMLViewer with WebKit engine on Linux</h2>
<p>HTMLViewer use default libgtkhtml library to render HTML on Linux&#8230; but there is a option to use WebKit. To do this simply install on your system libwebkit-1.0-1. If you like you can make a class that will install this library automatically.</p>
<h2>Creating one line browser in REALbasic</h2>
<p>To create a our web browser add to the Window HTMLViewer control. Set its LockLeft, LockTop, LockRight, and LockBottom properties so that it resizes as the user resizes the window. Now add a PushButton control and insert 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;">HTMLViewer1.LoadURL(http://tutspolis.com)</pre></td></tr></table></div>

<h2>Opening link in new Window</h2>
<p>If you like to have a option to open a link in new window add to HTMLViewer Function NewWindow() in code editor this code.</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;"> <span style="color: #000080;">Dim</span> w <span style="color: #000080;">as</span> <span style="color: #000080;">New</span> Window1 //name of Window where <span style="color: #000080;">is</span> our HTMLViewer <span style="color: #000080;">control</span>
&nbsp;
 Title = <span style="color: #800000;">&quot;new Window&quot;</span> //title <span style="color: #000080;">property</span> of <span style="color: #000080;">new</span> window
 w.Show //show the window
 Return w.HTMLViewer1 //render html</pre></td></tr></table></div>

<h2>Page load progress in ProgresBar control</h2>
<p>HTMLViewer can easy display the progress of page loading in ProgresBar control. You can make this using few lines of code in HTMLViewer Sub DocumentProgressChanged.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">if</span> percentageComplete = -1 <span style="color: #000080;">then</span> //<span style="color: #000080;">if</span> it cannot be determined
ProgressBar1.Maximum = 0 //display indeterminate progress
<span style="color: #000080;">else</span>
ProgressBar1.Maximum = 100
<span style="color: #000080;">end</span> <span style="color: #000080;">if</span>
ProgressBar1.Value = percentageComplete</pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://realbasic.tutspolis.com/classes/htmlviewer-control-in-realbasic/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
