<?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>MacDev</title>
	<atom:link href="http://macdev.org.ua/feed/" rel="self" type="application/rss+xml" />
	<link>http://macdev.org.ua</link>
	<description>Блог об Apple, iPhone, iPad, iPod, iMac, MacBook, xCode</description>
	<lastBuildDate>Sun, 13 May 2012 20:42:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>File Open Dialog</title>
		<link>http://macdev.org.ua/instruction/file-open-dialog/</link>
		<comments>http://macdev.org.ua/instruction/file-open-dialog/#comments</comments>
		<pubDate>Sun, 13 May 2012 20:42:18 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[FileOpenDialog]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3390</guid>
		<description><![CDATA[Отображение окна выбора файла в Cocoa можно выполнить следующим образом - (IBAction)ShowFileDialog:(id)sender { int i; // Loop counter. // Create the File Open Dialog class. NSOpenPanel* openDlg = [NSOpenPanel openPanel]; // Enable the selection of files in the dialog. [openDlg [...]]]></description>
			<content:encoded><![CDATA[<p>Отображение окна выбора файла в Cocoa можно выполнить следующим образом</p>
<pre>
- (IBAction)ShowFileDialog:(id)sender {
    int i; // Loop counter.

    // Create the File Open Dialog class.
    NSOpenPanel* openDlg = [NSOpenPanel openPanel];

    // Enable the selection of files in the dialog.
    [openDlg setCanChooseFiles:YES];

    // Enable the selection of directories in the dialog.
    [openDlg setCanChooseDirectories:YES];

    // Display the dialog.  If the OK button was pressed,
    // process the files.
    if ( [openDlg runModalForDirectory:nil file:nil] == NSOKButton )
    {
        // Get an array containing the full filenames of all
        // files and directories selected.
        NSArray* files = [openDlg filenames];

        // Loop through all the files and process them.
        for( i = 0; i < [files count]; i++ )
        {
            NSString* fileName = [files objectAtIndex:i];

            // Do something with the filename.
            NSAlert *alert = [[[NSAlert alloc] init] autorelease];
            [alert setMessageText:fileName];
            [alert runModal];
        }
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/file-open-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MessageBox в Cocoa приложении</title>
		<link>http://macdev.org.ua/instruction/messagebox-%d0%b2-cocoa-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d0%b8/</link>
		<comments>http://macdev.org.ua/instruction/messagebox-%d0%b2-cocoa-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d0%b8/#comments</comments>
		<pubDate>Sun, 13 May 2012 20:35:32 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[MessageBox]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3387</guid>
		<description><![CDATA[Для того чтобы отобразить аналог API Windows &#8212; ShowMessageBox в cocoa приложении можно сделать так: NSAlert *alert = [[[NSAlert alloc] init] autorelease]; [alert setMessageText:@"Hi people!"]; [alert addButtonWithTitle:@"First"]; [alert addButtonWithTitle:@"Second"]; [alert runModal];]]></description>
			<content:encoded><![CDATA[<p>Для того чтобы отобразить аналог API Windows &#8212; ShowMessageBox в cocoa приложении можно сделать так:</p>
<pre>
NSAlert *alert = [[[NSAlert alloc] init] autorelease];
[alert setMessageText:@"Hi people!"];
[alert addButtonWithTitle:@"First"];
[alert addButtonWithTitle:@"Second"];
[alert runModal];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/messagebox-%d0%b2-cocoa-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d0%b8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacPorts команды</title>
		<link>http://macdev.org.ua/instruction/macports-%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d1%8b/</link>
		<comments>http://macdev.org.ua/instruction/macports-%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d1%8b/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 13:10:56 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[MacPorts]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3383</guid>
		<description><![CDATA[port list — выводит список всех возможных программ port search program_name — поиск по названию программы port info program_name — информация по программе port deps program_name — зависимости программы port variants program_name — варианты установки программы port install program_name — [...]]]></description>
			<content:encoded><![CDATA[<p><strong>port list</strong> — выводит список всех возможных программ<br />
<strong>port search program_name</strong> — поиск по названию программы<br />
<strong>port info program_name</strong> — информация по программе<br />
<strong>port deps program_name</strong> — зависимости программы<br />
<strong>port variants program_name</strong> — варианты установки программы<br />
<strong>port install program_name</strong> — установка программы<br />
<strong>port clean</strong> —all program_name — удаление исходников программы<br />
<strong>port uninstall program_name</strong> — удаление программы<br />
<strong>port contents program_name</strong> — библиотеки и бинарники программы<br />
<strong>port installed</strong> — установленые программы<br />
<strong>port outdated</strong> — выводит установленные программы которые можно обновить<br />
<strong>port upgrade program_name</strong> — обновление программы<br />
<strong>port upgrade outdated</strong> — обновление всех программ<br />
<strong>port dependents program_name</strong> — показывает программ зависимые от program_name</p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/macports-%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d1%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Как включить жесты в Firefox</title>
		<link>http://macdev.org.ua/news/%d0%ba%d0%b0%d0%ba-%d0%b2%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%b6%d0%b5%d1%81%d1%82%d1%8b-%d0%b2-firefox/</link>
		<comments>http://macdev.org.ua/news/%d0%ba%d0%b0%d0%ba-%d0%b2%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%b6%d0%b5%d1%81%d1%82%d1%8b-%d0%b2-firefox/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 19:32:39 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Новости]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3380</guid>
		<description><![CDATA[Для того, чтобы включить жесты для увеличения/уменьшения страниц в Firefox, нужно: Откройте новую вкладку Наберите в адресной строке about:config Подтвердите, что вы обещаете быть очень осторожным Напишите в строке поиска слово pinch и нажмите ввод Выставьте значения переменных так, как [...]]]></description>
			<content:encoded><![CDATA[<p>Для того, чтобы включить жесты для увеличения/уменьшения страниц в Firefox, нужно:</p>
<ul>
<li>Откройте новую вкладку</li>
<li>Наберите в адресной строке about:config</li>
<li>Подтвердите, что вы обещаете быть очень осторожным</li>
<li>Напишите в строке поиска слово pinch и нажмите ввод</li>
<li>Выставьте значения переменных так, как показано ниже:</li>
<p><span id="more-3380"></span></p>
<pre>browser.gesture.pinch.in         cmd_fullZoomReduce
browser.gesture.pinch.in.shift   cmd_fullZoomReset
browser.gesture.pinch.out        cmd_fullZoomEnlarge
browser.gesture.pinch.out.shift  cmd_fullZoomReset</pre>
<li>Перезапустите Firefox</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/news/%d0%ba%d0%b0%d0%ba-%d0%b2%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%b6%d0%b5%d1%81%d1%82%d1%8b-%d0%b2-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Изменение цвета подложки Lauchpad в Mac OS X 10.7.3</title>
		<link>http://macdev.org.ua/news/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%86%d0%b2%d0%b5%d1%82%d0%b0-%d0%bf%d0%be%d0%b4%d0%bb%d0%be%d0%b6%d0%ba%d0%b8-lauchpad-%d0%b2-mac-os-x-10-7-3/</link>
		<comments>http://macdev.org.ua/news/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%86%d0%b2%d0%b5%d1%82%d0%b0-%d0%bf%d0%be%d0%b4%d0%bb%d0%be%d0%b6%d0%ba%d0%b8-lauchpad-%d0%b2-mac-os-x-10-7-3/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 19:13:39 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Новости]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3375</guid>
		<description><![CDATA[В MacOS X 10.7 можно изменить цвет подложки в Lauchpad. После выхода обновления 10.7.3, этот способ перестал работать. Теперь работает другое сочетание — Ctrl+Option+Command+B.]]></description>
			<content:encoded><![CDATA[<p><a href="http://macdev.org.ua/wp-content/uploads/2012/02/launchpad.png"><img class="alignleft size-thumbnail wp-image-3376" title="Изменение цвета подложки Lauchpad в 10.7.3" src="http://macdev.org.ua/wp-content/uploads/2012/02/launchpad-150x150.png" alt="" width="150" height="150" /></a>В MacOS X 10.7 можно изменить цвет подложки в Lauchpad. После выхода обновления 10.7.3, этот способ перестал работать. Теперь работает другое сочетание — Ctrl+Option+Command+B.<br />
<span id="more-3375"></span><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/launchpad1.png"><img class="aligncenter size-thumbnail wp-image-3377" title="Изменение цвета подложки Lauchpad в Mac OS X 10.7.3" src="http://macdev.org.ua/wp-content/uploads/2012/02/launchpad1-150x150.png" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/news/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%86%d0%b2%d0%b5%d1%82%d0%b0-%d0%bf%d0%be%d0%b4%d0%bb%d0%be%d0%b6%d0%ba%d0%b8-lauchpad-%d0%b2-mac-os-x-10-7-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Первое приложения на iPhone &#8212; Hello world!</title>
		<link>http://macdev.org.ua/instruction/iphone-hello-world/</link>
		<comments>http://macdev.org.ua/instruction/iphone-hello-world/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 12:48:06 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Разработка]]></category>
		<category><![CDATA[Hello world]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3296</guid>
		<description><![CDATA[Настало время написать первое приложение для iPhone / iPad. Нам понадобиться следующее: Xcode 4.2.1 (бесплатная IDE от Apple); Mac OS X или Hakint0ch; Пару минут вашего времени. После запуска Xcode выбираем &#171;Create a new Xcode Project&#187; Нажимаем iOS->Application->Single View Application. [...]]]></description>
			<content:encoded><![CDATA[<p>Настало время написать первое приложение для iPhone / iPad. Нам понадобиться следующее:</p>
<ul>
<li>Xcode 4.2.1 (бесплатная IDE от Apple);</li>
<li>Mac OS X или Hakint0ch;</li>
<li>Пару минут вашего времени.</li>
</ul>
<p><span id="more-3296"></span><br />
После запуска Xcode выбираем &#171;<strong>Create a new Xcode Project</strong>&#187;<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/Create_a_new_xcode_project.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/Create_a_new_xcode_project-300x207.png" alt="" title="Create a new Xcode Project" width="300" height="207" class="aligncenter size-medium wp-image-3297" /></a><br />
Нажимаем <strong>iOS->Application->Single View Application</strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/Single_view_application.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/Single_view_application-300x191.png" alt="" title="Single View Application" width="300" height="191" class="aligncenter size-medium wp-image-3300" /></a><br />
В появившемся меню <strong>&#171;Choose options for your new project&#187;</strong> заполняем следующие поля &#8212; <strong><em>Product name</em> = &#171;Hello world&#187;</strong>, <strong><em>Company indefiner</em> = &#171;ua.org.macdev&#187;</strong>, <strong><em>Device Family</em> = Universal</strong> (если хотим создать проект для iPhone и iPad, то при желании можно выбрать только необходимое устройство). Также снимаем галочки с Use Storyboard, Use Automatic Reference Counting, Include Unit Tests.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/Choose_options_for_your_new_project.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/Choose_options_for_your_new_project-300x191.png" alt="" title="Choose options for your new project" width="300" height="191" class="aligncenter size-medium wp-image-3303" /></a><br />
В следующем окне необходимо выбрать расположения проекта на диске, а также, убрать галочку с <strong><em>Create local git repository for this project</em></strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/Project_locations.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/Project_locations-300x191.png" alt="" title="Project locations" width="300" height="191" class="aligncenter size-medium wp-image-3311" /></a><br />
Выбираем в проекте <strong>ViewController_iPhone.xib</strong><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/ViewController_iPhone.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/ViewController_iPhone-300x191.png" alt="" title="ViewController_iPhone.xib" width="300" height="191" class="aligncenter size-medium wp-image-3319" /></a><br />
Выбираем элемент <strong>Label</strong> и перетягиваем его на форму (приложение).<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/label.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/label-300x191.png" alt="" title="Элемент label" width="300" height="191" class="aligncenter size-medium wp-image-3322" /></a><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/label1.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/label1-300x191.png" alt="" title="Элемент label на форме" width="300" height="191" class="aligncenter size-medium wp-image-3323" /></a><br />
Редактируем свойства объекта <strong>label</strong> &#8212; выравнивание по центру, а свойство <strong>text</strong> убираем (в дальнейшем данное свойство примет значение <strong><em>&#171;Hello world&#187;</em></strong>).<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/label_center.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/label_center-300x191.png" alt="" title="Выравнивание label по центру" width="300" height="191" class="aligncenter size-medium wp-image-3326" /></a><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/label_text.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/label_text-300x191.png" alt="" title="Редактируем свойство text" width="300" height="191" class="aligncenter size-medium wp-image-3327" /></a><br />
Выбираем режим просмотра <strong>Show the assistant editor</strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/show_the_assistant_editor.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/show_the_assistant_editor.png" alt="" title="show the assistant editor" width="96" height="47" class="aligncenter size-full wp-image-3330" /></a><br />
Зажимаем кнопку <strong>ctrl</strong> и перемещаем объект label в class ViewController,а в меню указываем <strong>Name = Label</strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/move_label_property.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/move_label_property-300x191.png" alt="" title="Перемещаем объект label в class ViewController" width="300" height="191" class="aligncenter size-medium wp-image-3333" /></a><br />
После перемещения объекта в коде будет добавлен следующий фрагмент:</p>
<pre>@property (retain, nonatomic) IBOutlet UILabel *label;</pre>
<p><a href="http://macdev.org.ua/wp-content/uploads/2012/02/after_move_label_property.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/after_move_label_property-300x191.png" alt="" title="Результат перемещения объекта" width="300" height="191" class="aligncenter size-medium wp-image-3334" /></a><br />
Добавляем на форму <strong>Round Rect Button</strong><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/round_rect_button.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/round_rect_button-300x117.png" alt="" title="Round rect button" width="300" height="117" class="aligncenter size-medium wp-image-3337" /></a><br />
После перемещения Button&#8217;а на форму, двойным кликом на копке редактируем свойство title, указываем следующее значение <strong>&#171;Нажми на меня&#187;</strong><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/button_property.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/button_property-300x191.png" alt="" title="Редактируем свойства объекта Round rect button" width="300" height="191" class="aligncenter size-medium wp-image-3340" /></a><br />
Дописываем после <strong>@property (retain, nonatomic) IBOutlet UILabel *label;</strong> следующий код:</p>
<pre>-(IBAction)clickButton:(id)sender;</pre>
<p>Изменяем вид просмотра с <strong>ViewController.h</strong> на <strong>ViewController.m</strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/ViewController.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/ViewController-300x48.png" alt="" title="ViewController" width="300" height="48" class="aligncenter size-medium wp-image-3348" /></a><br />
После следующего фрагмента <strong>@synthesize label;</strong> добавим свой код:</p>
<pre>-(IBAction)clickButton:(id)sender{
    label.text = @"Hello world";
}</pre>
<p>Вызываем контекстное меню на объекте <strong>Button</strong> и связываем свойство <strong>TouchUpInside</strong> с кодом путём зажатия кнопки ctrl и перетягиванием на код.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/TouchUpInside.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/TouchUpInside-197x300.png" alt="" title="TouchUpInside" width="197" height="300" class="aligncenter size-medium wp-image-3353" /></a><br />
После соединения свойства с кодом должно получиться следующее:<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/TouchUpInsideConnected.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/TouchUpInsideConnected-197x300.png" alt="" title="TouchUpInsideConnected" width="197" height="300" class="aligncenter size-medium wp-image-3354" /></a><br />
Приложение <strong>Hello world</strong> готово! Выбираем эмулятор <strong>iPhone</strong> и запускаем.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/iPhone_HelloWorld.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/iPhone_HelloWorld-190x300.png" alt="" title="iPhone HelloWorld" width="190" height="300" class="aligncenter size-medium wp-image-3357" /></a><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/iPhone_HelloWorld1.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/iPhone_HelloWorld1-190x300.png" alt="" title="iPhone_HelloWorld1" width="190" height="300" class="aligncenter size-medium wp-image-3358" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/iphone-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Исправление ошибки 0xC002 в Xcode</title>
		<link>http://macdev.org.ua/instruction/fix-error-0xc002-in-xcode/</link>
		<comments>http://macdev.org.ua/instruction/fix-error-0xc002-in-xcode/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 23:03:11 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Разработка]]></category>
		<category><![CDATA[5.0.1]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone 3GS]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3288</guid>
		<description><![CDATA[При подключении устройства iPhone 3GS (5.0.1 9A405) у меня не отразилось моё устройство в меню. Открыв Window-&#62;Organizer и напротив моего устройства была желтая метка со следующей ошибкой: Xcode has encountered an unexpected error (0xC002) No such file or directory, at [...]]]></description>
			<content:encoded><![CDATA[<p>При подключении устройства iPhone 3GS (5.0.1 9A405) у меня не отразилось моё устройство в меню. Открыв Window-&gt;Organizer и напротив моего устройства была желтая метка со следующей ошибкой:<br />
<code>Xcode has encountered an unexpected error (0xC002)<br />
No such file or directory, at ‘/SourceCache/DTDeviceKit/DTDeviceKit-873/DTDeviceKit/DTDeviceKit_Utilities.m:864’</code><br />
<span id="more-3288"></span><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/error_0xC002.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/error_0xC002-300x246.png" alt="" title="Исправление ошибки 0xC002 в Xcode" width="300" height="246" class="aligncenter size-medium wp-image-3289" /></a><br />
Данная ошибка происходит из-за того, что устройство подвергалось процедуре jailbreak. Чтобы исправить эту проблему нужно выполнить следующие действия:</p>
<ol>
<li>Закрыть Xcode;</li>
<li>Удалить папку <strong>5.0.1 (9A405)</strong> находящуюся по адресу
<pre>~/Library/Developer/Xcode/iOS DeviceSupport</pre>
<p>(название папки может быть другим т.к. на вашем устройстве может быть установлена другая версия iOS).</li>
<li>Скопировать содержимое <a href="http://depositfiles.com/files/4bv1gu80t" title="Исправление ошибки 0xC002 в Xcode" target="_blank">данного архива</a> в папку
<pre>~/Library/Developer/Xcode/iOS DeviceSupport</pre>
</li>
<li>Запускаем Xcode и наслаждаемся корректной синхронизацией с устройством</li>
</ol>
<p><a href="http://macdev.org.ua/wp-content/uploads/2012/02/dev_Iphone3gs_5.0.1.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/dev_Iphone3gs_5.0.1-300x246.png" alt="" title="Исправлена ошибка 0xC002 в Xcode" width="300" height="246" class="aligncenter size-medium wp-image-3290" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/fix-error-0xc002-in-xcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Компилируем код Objective-C под Linux (Ubuntu)</title>
		<link>http://macdev.org.ua/instruction/%d0%ba%d0%be%d0%bc%d0%bf%d0%b8%d0%bb%d0%b8%d1%80%d1%83%d0%b5%d0%bc-%d0%ba%d0%be%d0%b4-objective-c-%d0%bf%d0%be%d0%b4-linux-ubuntu/</link>
		<comments>http://macdev.org.ua/instruction/%d0%ba%d0%be%d0%bc%d0%bf%d0%b8%d0%bb%d0%b8%d1%80%d1%83%d0%b5%d0%bc-%d0%ba%d0%be%d0%b4-objective-c-%d0%bf%d0%be%d0%b4-linux-ubuntu/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 11:05:17 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Разработка]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[gnustep]]></category>
		<category><![CDATA[Hello world]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3282</guid>
		<description><![CDATA[Objective-C &#8212; объектно ориентированный язык созданий на основе Си. Разрабатывается и используется он компанией Apple. Для освоения данного языка не обязательно покупать Mac, чтобы научиться основам данного языка. Для этого подойдет любой компьютер с установленной OS Linux (ubuntu), при большом [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Objective-C</strong> &#8212; объектно ориентированный язык созданий на основе Си. Разрабатывается и используется он компанией <strong>Apple</strong>. Для освоения данного языка не обязательно покупать Mac, чтобы научиться основам данного языка. Для этого подойдет любой компьютер с установленной OS Linux (ubuntu), при большом желании можно установить <a href="http://www.gnustep.org/resources/sources.html" target="_blank">gnustep</a> под другою операционную систему.<br />
<span id="more-3282"></span><br />
Инсталлируем gnustep с помощью следующей команды:<br />
<code>sudo apt-get install gobjc gnustep gnustep-devel</code><br />
Как большинство примеров первого приложения, будем выводить на экран надпись &#171;Hello world&#187;. Для этого создадим файл hello.m следующего содержания:<br />
<code>#import <Foundation/Foundation.h><br />
int main (int argc, const char * argv[])<br />
{<br />
        NSLog (@"Hello world");<br />
        return 0;<br />
}</code><br />
Открываем терминал и выполняем следующую команду(эту команду, желательно выполнять каждый раз при открытии терминала):<br />
<code>sh /usr/share/GNUstep/Makefiles/GNUstep.sh</code><br />
Следующей командой выполним сборку приложения:<br />
<code>gcc `gnustep-config --objc-flags` -o hello hello.m -lobjc -lgnustep-base</code><br />
Теперь можно запустить приложение написанное на Objective-C<br />
<code>./hello</code><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/gnumake.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/gnumake-300x116.png" alt="" title="Компилируем код Objective-C под Linux (Ubuntu)" width="300" height="116" class="aligncenter size-medium wp-image-3283" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/%d0%ba%d0%be%d0%bc%d0%bf%d0%b8%d0%bb%d0%b8%d1%80%d1%83%d0%b5%d0%bc-%d0%ba%d0%be%d0%b4-objective-c-%d0%bf%d0%be%d0%b4-linux-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Запуск приложения на iPhone без сертификата Apple</title>
		<link>http://macdev.org.ua/instruction/run-app-in-iphone/</link>
		<comments>http://macdev.org.ua/instruction/run-app-in-iphone/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 21:52:44 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Разработка]]></category>
		<category><![CDATA[Hello world]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3264</guid>
		<description><![CDATA[Многие начинающие программисты испытывают свои силы в написании приложений на своих iГаджетах, но тестирование собственного приложения на аппаратном устройстве в 1000 раз лучше чем на эмуляторе, а платить $99, чтобы иметь возможность зарегистрироваться в девелоперской программе Apple нет экономического смысла [...]]]></description>
			<content:encoded><![CDATA[<p>Многие начинающие программисты испытывают свои силы в написании приложений на своих iГаджетах, но тестирование собственного приложения на аппаратном устройстве в 1000 раз лучше чем на эмуляторе, а платить $99, чтобы иметь возможность зарегистрироваться в девелоперской программе Apple нет экономического смысла т.к. многие из вас забросят эту идею после очередного &#171;Hello world&#187;.<br />
А, возможно, вы не хотите ждать несколько месяцев, пока Apple соизволит прислать ключ.<br />
<span id="more-3264"></span></p>
<ul>
<ol>Что нам понадобится?</ol>
<li>Взломанный iДевайс (iPod touch или iPhone)</li>
<li>Xcode 4.2.1, поддерживающий текущую прошивку устройства</li>
<li>стандартная программа Keychain Access</li>
</ul>
<p>Взломанный iДевайс (iPod touch или iPhone) &#8212; для этого необходимо проделать процедуру jail break, чтобы можно было установить на устройство AppSync для установки взломанных приложений.</p>
<p>Первым делом нужно немного изменить файл xcode (делаем бекапы в обязательном порядке).<br />
В плисте SDKSettings.plist который находится в папке <strong>/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk</strong><br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/DirPlist.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/DirPlist.png" alt="" title="Редактируем файл SDKSettings.plist в папке /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" width="758" height="612" class="aligncenter size-full wp-image-3265" /></a><br />
В этом файле заменим параметры ключей <strong>CODE_SIGNING_REQUIRED</strong> и <strong>ENTITLEMENTS_REQUIRED</strong> с <strong>YES</strong> на <strong>NO</strong>.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/SDKSettings.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/SDKSettings.png" alt="" title="Изменение параметров в файле SDKSettings.plist" width="714" height="492" class="aligncenter size-full wp-image-3266" /></a><br />
Для удобства изменения параметров в файле SDKSettings.plist можно этот файл скопировать на рабочий стол, а после исправления скопировать в папку /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk</p>
<p>После успешной правки файла, необходимо создать самоподписанный сертификат. Открываем утилиту управления сертификатами, ключами и паролями: Applications > Utilities > Keychain Access (Программы > Служебные программы > Связка ключей).<br />
Из меню Keychain Access выбираем пункт Certificate Assistant, а в нем &#8212; Create a Certificate (Связка ключей > Ассистент сертификации > Создать сертификат).<br />
Указываем Имя &#8212; <strong>iPhone Developer</strong> , Тип идентификации: «Самоподписанный корневой сертификат», и Тип сертификата: «Подпись кода» (codesign), так же ставим галку «Заменить настройки по умолчанию». Далее делаем по принципу &#171;далее&#187;. В результате должно получиться что-то похожее на это:<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/Certificate.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/Certificate.png" alt="" title="Сертификат для xCode" width="754" height="478" class="aligncenter size-full wp-image-3267" /></a></p>
<p>Нужно разрешить XCode использовать этот сертификат для подписания кода. Для этого в терминале нужно выполнить следующее:</p>
<p><code>sudo /usr/bin/sed -i .bak ‘s/XCiPhoneOSCodeSignContext/XCCodeSignContext/’ /Developer/Platforms/iPhoneOS.platform/Info.plist</code></p>
<p>Теперь необходимо перезапустить xCode и убедиться, что выбран сертификат -iPhone Developer.<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/xCode_certificate.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/xCode_certificate-300x191.png" alt="" title="Сертификат для xCode - iPhone Developer" width="300" height="191" class="aligncenter size-medium wp-image-3268" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/run-app-in-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Настройка клавиш F9 и F10 в консольных приложениях</title>
		<link>http://macdev.org.ua/instruction/setup-f9-f10-terminal/</link>
		<comments>http://macdev.org.ua/instruction/setup-f9-f10-terminal/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 20:22:39 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Midnight Commander]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3261</guid>
		<description><![CDATA[Чтобы в Mac OS X при работе в консоле корректно работали кнопки F9 и F10, по умолчанию они используются для Mission Control и Окна программы соответственно. Для этого нужно в настройках клавиатуры убрать пункты с F9 и F10 (Mission Control [...]]]></description>
			<content:encoded><![CDATA[<p>Чтобы в Mac OS X при работе в консоле корректно работали кнопки <strong>F9</strong> и <strong>F10</strong>, по умолчанию они используются для Mission Control и Окна программы соответственно.<br />
<span id="more-3261"></span><br />
Для этого нужно в настройках клавиатуры убрать пункты с F9 и F10 (Mission Control и Окна программы).<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/02/F9F10SetUp.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/02/F9F10SetUp.png" alt="" title=" Настройка клавиш F9 и F10 в консоле" width="782" height="712" class="aligncenter size-full wp-image-3262" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/setup-f9-f10-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Исправление клавиш “Page Up” &amp; &#171;Page Dn&#187; в terminal&#8217;е для работы с консольными приложениями типа Midnight Commander</title>
		<link>http://macdev.org.ua/instruction/fix-page-up-dn-terminal-mc/</link>
		<comments>http://macdev.org.ua/instruction/fix-page-up-dn-terminal-mc/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 22:02:13 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[mc]]></category>
		<category><![CDATA[Midnight Commander]]></category>
		<category><![CDATA[Page Dn]]></category>
		<category><![CDATA[Page Up]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://macdev.org.ua/?p=3253</guid>
		<description><![CDATA[Работая с консольными приложениями типа Midnight Commander появляется острая необходимость постраничной прокрутки редактора с помощью клавиш Page Up &#38; Page Dn, но к сожалению этого не происходит&#8230; Для обладателей Powerbook, ibook and Macbook. Можно использовать следующую комбинацию клавиш, для постраничной [...]]]></description>
			<content:encoded><![CDATA[<p>Работая с консольными приложениями типа <a href="http://macdev.org.ua/instruction/install-mc-mac-os-x/" title="Установка Midnight Commander под Mac OS X">Midnight Commander</a> появляется острая необходимость постраничной прокрутки редактора с помощью клавиш <strong>Page Up</strong> &amp; <strong>Page Dn</strong>, но к сожалению этого не происходит&#8230;<br />
<span id="more-3253"></span><br />
Для обладателей Powerbook, ibook and Macbook. Можно использовать следующую комбинацию клавиш, для постраничной прокрутки вверх:<br />
<code>[shift][fn]-[Стрелка вверх]</code></p>
<p>и для постраничной прокрутки вниз:<br />
<code>[shift][fn]-[Стрелка вниз]</code></p>
<p>Для счастливых обладателей &#171;стандартной&#187; клавиатуры,  для постраничной прокрутки вверх:<br />
<code>[shift]-[page up]</code></p>
<p>и для постраничной прокрутки вниз:<br />
<code>[shift]-[page down]</code></p>
<p>Соответственно нажимать три кнопки не совсем удобно на MacBook. Для этого необходимо внести настройки в программу терминала:<br />
<code>Key 	Escape Sequence<br />
Home      \033[1~<br />
End       \033[4~<br />
Page Up   \033[5~<br />
Page Down \033[6~<br />
</code><br />
Для клавиши Page Up<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/01/PgUp.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/01/PgUp.png" alt="" title="Исправление кода клавиши Page Up для корректной работы в приложении терминал" width="704" height="648" class="aligncenter size-full wp-image-3254" /></a><br />
Для клавиши Page Dn<br />
<a href="http://macdev.org.ua/wp-content/uploads/2012/01/PgDn.png"><img src="http://macdev.org.ua/wp-content/uploads/2012/01/PgDn.png" alt="" title="Исправление кода клавиши Page Dn для корректной работы в приложении терминал" width="704" height="648" class="aligncenter size-full wp-image-3255" /></a><br />
После внесения изменений, необходимо закрыть терминал cmd + Q и посе повторного открытия радоваться корректной работе клавиш.</p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/fix-page-up-dn-terminal-mc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Изменение режима функциональных клавиш в Mac OS</title>
		<link>http://macdev.org.ua/instruction/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%80%d0%b5%d0%b6%d0%b8%d0%bc%d0%b0-%d1%84%d1%83%d0%bd%d0%ba%d1%86%d0%b8%d0%be%d0%bd%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d1%85-%d0%ba%d0%bb%d0%b0/</link>
		<comments>http://macdev.org.ua/instruction/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%80%d0%b5%d0%b6%d0%b8%d0%bc%d0%b0-%d1%84%d1%83%d0%bd%d0%ba%d1%86%d0%b8%d0%be%d0%bd%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d1%85-%d0%ba%d0%bb%d0%b0/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 18:40:48 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[Fn]]></category>
		<category><![CDATA[функциональные клавиши]]></category>

		<guid isPermaLink="false">http://freemacstore.org.ua/?p=2889</guid>
		<description><![CDATA[В современных клавиатурах Apple функциональные клавиши по умолчанию используются для управления обозначенными на них мультимедийными функциями (яркостью дисплея, громкостью, воспроизведением музыки, извлечением компакт-диска и пр.), использование их как традиционных F-клавиш возможно при одновременном нажатии на клавишу fn. Для пользователей, которые [...]]]></description>
			<content:encoded><![CDATA[<p>В современных клавиатурах <strong>Apple</strong> функциональные клавиши по умолчанию используются для управления обозначенными на них мультимедийными функциями (яркостью дисплея, громкостью, воспроизведением музыки, извлечением компакт-диска и пр.), использование их как традиционных F-клавиш возможно при одновременном нажатии на клавишу <strong>fn</strong>.<br />
Для пользователей, которые работают часто с консольными приложениями это становиться очень неудобно&#8230;<br />
<span id="more-2889"></span><br />
Для того чтобы функциональные клавиши работали без удержания кнопки <strong>Fn</strong>, необходимо в ситемных настройках клавиатуры выбрать следующий пункт:<br />
<a href="/wp-content/uploads/2012/01/ChangeFKeys.png"><img src="/wp-content/uploads/2012/01/ChangeFKeys.png" alt="" title="Настройка функциональных клавиш F1..F10 в MacBook без удержания кнопки Fn" width="520" height="218" class="aligncenter size-full wp-image-2890" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b5%d0%bd%d0%b8%d0%b5-%d1%80%d0%b5%d0%b6%d0%b8%d0%bc%d0%b0-%d1%84%d1%83%d0%bd%d0%ba%d1%86%d0%b8%d0%be%d0%bd%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d1%85-%d0%ba%d0%bb%d0%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Руссификация Midnight Commander в Mac OS X</title>
		<link>http://macdev.org.ua/instruction/ru-locale-mac-os-x/</link>
		<comments>http://macdev.org.ua/instruction/ru-locale-mac-os-x/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 13:40:34 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[LANG]]></category>
		<category><![CDATA[LC_CTYPE]]></category>
		<category><![CDATA[mc]]></category>

		<guid isPermaLink="false">http://freemacstore.org.ua/?p=2877</guid>
		<description><![CDATA[После установки Midnight Commander необходимо чтобы в терминале отображались русские символы вместо знаков &#171;?&#187;.  Для этого нужно настроить переменные окружения LANG и LC_CTYPE. Присвоение переменных LANG и LC_CTYPE после перезагрузки системы обеспечивается созданием следующего файла ~/.MacOSX/environment.plist (предварительно нужно создать директорию [...]]]></description>
			<content:encoded><![CDATA[<p>После установки <a href="/instruction/install-mc-mac-os-x/" title="Установка mc в Mac OS X" target="_blank">Midnight Commander</a> необходимо чтобы в терминале отображались русские символы вместо знаков &#171;?&#187;.  Для этого нужно настроить переменные окружения LANG и LC_CTYPE.<br />
<span id="more-2877"></span><br />
Присвоение переменных LANG и LC_CTYPE после перезагрузки системы обеспечивается созданием следующего файла <strong>~/.MacOSX/environment.plist</strong> (предварительно нужно создать директорию ~/.MacOSX)</p>
<pre>
{
"LANG" = "ru_RU.UTF-8";
}
</pre>
<p>После создания файла <strong>~/.MacOSX/environment.plist</strong> нужно перезапустить Х сессию (перезагрузить компьютер или завершить сеанс пользователя и войти в систему в сеанс пользователя).</p>
<p>Для исправления перезаписи переменной LC_CTYPE в терминале, нужно открыть терминал->настройки (cmd + &#171;,&#187;) настройки->дополнительно->убрать параметр &#171;Установить переменные среды языкового стандарта при загрузке&#187;<br />
<a href="/wp-content/uploads/2012/01/terminal-setup.png"><img src="/wp-content/uploads/2012/01/terminal-setup.png" alt="" title="Установить переменные среды языкового стандарта при загрузке" width="704" height="648" class="aligncenter size-full wp-image-2878" /></a><br />
После изменений нужно завершить сессию (ctr+d) и открыть терминал заново. В качестве проверки нужно выполнить следующую команду.</p>
<pre>
MacBook-Pro-Hades:~ hades$ <strong>locale</strong>
LANG="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_CTYPE="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_ALL=
</pre>
<p>В результате кропотливой работы вы получите следующий вид mc.<br />
<a href="/wp-content/uploads/2012/01/mc-ru-locale.png"><img src="/wp-content/uploads/2012/01/mc-ru-locale.png" alt="" title="mc-ru-locale" width="684" height="480" class="aligncenter size-full wp-image-2879" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/ru-locale-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Установка Midnight Commander под Mac OS X</title>
		<link>http://macdev.org.ua/instruction/install-mc-mac-os-x/</link>
		<comments>http://macdev.org.ua/instruction/install-mc-mac-os-x/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 12:08:36 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[expat]]></category>
		<category><![CDATA[gdbm]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[glib2]]></category>
		<category><![CDATA[gperf]]></category>
		<category><![CDATA[libffi]]></category>
		<category><![CDATA[libiconv]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[mc]]></category>
		<category><![CDATA[ncurses]]></category>
		<category><![CDATA[ncursesw]]></category>
		<category><![CDATA[perl5]]></category>
		<category><![CDATA[perl5.12]]></category>
		<category><![CDATA[pkgconfig]]></category>
		<category><![CDATA[xz]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://freemacstore.org.ua/?p=2871</guid>
		<description><![CDATA[Устанавливать пакет mc из исходного кода немного не удобно из-за большого числа зависимостей (необходимо собрать дополнительные пакеты такие как glib2, gettext, expat, libiconv, gperf, ncurses, ncursesw, libffi, perl5, perl5.12, gdbm, xz, zlib, pkgconfig), поэтому необходимо установить утилиту управления пакетами в [...]]]></description>
			<content:encoded><![CDATA[<p>Устанавливать пакет mc из исходного кода немного не удобно из-за большого числа зависимостей (необходимо собрать дополнительные пакеты такие как glib2, gettext, expat, libiconv, gperf, ncurses, ncursesw, libffi, perl5, perl5.12, gdbm, xz, zlib, pkgconfig), поэтому необходимо установить утилиту управления пакетами в среде Mac OS X &#8212; <a href="/instruction/install-macports-lion/">MacPorts</a>.<span id="more-2871"></span><br />
После успешной установки <a href="/instruction/install-macports-lion/">MacPorts</a>, необходимо ввести следующие команды в консоль(терминал):</p>
<pre>sudo port selfupdate
port variants mc
sudo port  install mc +ncurses</pre>
<p>После успешной сборки пакета mc вы увидите следующее:</p>
<pre>MacBook-Pro-Hades:~ hades$ /opt/local/bin/mc -V
GNU Midnight Commander 4.8.0
Built with GLib 2.30.2
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;</pre>
<p><a href="http://freemacstore.org.ua/wp-content/uploads/2012/01/mc.png"><img class="aligncenter size-full wp-image-2874" title="Midnight Commander под Mac OS X" src="/wp-content/uploads/2012/01/mc.png" alt="" width="684" height="480" /></a><br />
Детальный процесс сборки mc:</p>
<pre>MacBook-Pro-Hades:~ hades$ <strong>sudo port selfupdate</strong>
Password:
---&gt;  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
---&gt;  Updating the ports tree
---&gt;  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
MacBook-Pro-Hades:~ hades$ <strong>port variants mc</strong>
mc has the variants:
   ncurses: use ncurses screen library
     * conflicts with slang2
[+]slang2: use slang2 screen library
     * conflicts with ncurses
   universal: Build for multiple architectures
MacBook-Pro-Hades:~ hades$ <strong>sudo port install mc +ncurses</strong>
---&gt;  Computing dependencies for mc
---&gt;  Dependencies to be installed: glib2 gettext expat libiconv gperf ncurses ncursesw libffi perl5 perl5.12 gdbm xz zlib pkgconfig
---&gt;  Fetching archive for expat
---&gt;  Attempting to fetch expat-2.0.1_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/expat
---&gt;  Fetching expat
---&gt;  Attempting to fetch expat-2.0.1.tar.gz from http://citylan.dl.sourceforge.net/project/expat/expat/2.0.1
---&gt;  Verifying checksum(s) for expat
---&gt;  Extracting expat
---&gt;  Configuring expat
---&gt;  Building expat
---&gt;  Staging expat into destroot
---&gt;  Installing expat @2.0.1_1
---&gt;  Activating expat @2.0.1_1
---&gt;  Cleaning expat
---&gt;  Fetching archive for gperf
---&gt;  Attempting to fetch gperf-3.0.4_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/gperf
---&gt;  Fetching gperf
---&gt;  Attempting to fetch gperf-3.0.4.tar.gz from http://lil.fr.distfiles.macports.org/gperf
---&gt;  Verifying checksum(s) for gperf
---&gt;  Extracting gperf
---&gt;  Applying patches to gperf
---&gt;  Configuring gperf
---&gt;  Building gperf
---&gt;  Staging gperf into destroot
---&gt;  Installing gperf @3.0.4_2
---&gt;  Activating gperf @3.0.4_2
---&gt;  Cleaning gperf
---&gt;  Fetching archive for libiconv
---&gt;  Attempting to fetch libiconv-1.14_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libiconv
---&gt;  Fetching libiconv
---&gt;  Attempting to fetch libiconv-1.14.tar.gz from http://lil.fr.distfiles.macports.org/libiconv
---&gt;  Verifying checksum(s) for libiconv
---&gt;  Extracting libiconv
---&gt;  Applying patches to libiconv
---&gt;  Configuring libiconv
---&gt;  Building libiconv
---&gt;  Staging libiconv into destroot
---&gt;  Installing libiconv @1.14_0
---&gt;  Activating libiconv @1.14_0
---&gt;  Cleaning libiconv
---&gt;  Fetching archive for ncursesw
---&gt;  Attempting to fetch ncursesw-5.8_0.darwin_11.noarch.tbz2 from http://packages.macports.org/ncursesw
---&gt;  Fetching ncursesw
---&gt;  Verifying checksum(s) for ncursesw
---&gt;  Extracting ncursesw
---&gt;  Configuring ncursesw
---&gt;  Building ncursesw
---&gt;  Staging ncursesw into destroot
---&gt;  Installing ncursesw @5.8_0
---&gt;  Activating ncursesw @5.8_0
---&gt;  Cleaning ncursesw
---&gt;  Fetching archive for ncurses
---&gt;  Attempting to fetch ncurses-5.9_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/ncurses
---&gt;  Fetching ncurses
---&gt;  Attempting to fetch ncurses-5.9.tar.gz from http://lil.fr.distfiles.macports.org/ncurses
---&gt;  Verifying checksum(s) for ncurses
---&gt;  Extracting ncurses
---&gt;  Applying patches to ncurses
---&gt;  Configuring ncurses
---&gt;  Building ncurses
---&gt;  Staging ncurses into destroot
---&gt;  Installing ncurses @5.9_1
---&gt;  Activating ncurses @5.9_1
---&gt;  Cleaning ncurses
---&gt;  Fetching archive for gettext
---&gt;  Attempting to fetch gettext-0.18.1.1_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/gettext
---&gt;  Fetching gettext
---&gt;  Attempting to fetch gettext-0.18.1.1.tar.gz from http://lil.fr.distfiles.macports.org/gettext
---&gt;  Verifying checksum(s) for gettext
---&gt;  Extracting gettext
---&gt;  Applying patches to gettext
---&gt;  Configuring gettext
---&gt;  Building gettext
---&gt;  Staging gettext into destroot
---&gt;  Installing gettext @0.18.1.1_2
---&gt;  Activating gettext @0.18.1.1_2
---&gt;  Cleaning gettext
---&gt;  Fetching archive for libffi
---&gt;  Attempting to fetch libffi-3.0.10_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/libffi
---&gt;  Fetching libffi
---&gt;  Attempting to fetch libffi-3.0.10.tar.gz from http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/libffi/
---&gt;  Verifying checksum(s) for libffi
---&gt;  Extracting libffi
---&gt;  Applying patches to libffi
---&gt;  Configuring libffi
---&gt;  Building libffi
---&gt;  Staging libffi into destroot
---&gt;  Installing libffi @3.0.10_2
---&gt;  Activating libffi @3.0.10_2
---&gt;  Cleaning libffi
---&gt;  Fetching archive for gdbm
---&gt;  Attempting to fetch gdbm-1.10_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/gdbm
---&gt;  Fetching gdbm
---&gt;  Attempting to fetch gdbm-1.10.tar.gz from http://lil.fr.distfiles.macports.org/gdbm
---&gt;  Verifying checksum(s) for gdbm
---&gt;  Extracting gdbm
---&gt;  Configuring gdbm
---&gt;  Building gdbm
---&gt;  Staging gdbm into destroot
---&gt;  Installing gdbm @1.10_1
---&gt;  Activating gdbm @1.10_1
---&gt;  Cleaning gdbm
---&gt;  Fetching archive for perl5.12
---&gt;  Attempting to fetch perl5.12-5.12.3_3.darwin_11.x86_64.tbz2 from http://packages.macports.org/perl5.12
---&gt;  Fetching perl5.12
---&gt;  Attempting to fetch perl-5.12.3.tar.bz2 from http://lil.fr.distfiles.macports.org/perl5.12
---&gt;  Verifying checksum(s) for perl5.12
---&gt;  Extracting perl5.12
---&gt;  Applying patches to perl5.12
---&gt;  Configuring perl5.12
---&gt;  Building perl5.12
---&gt;  Staging perl5.12 into destroot
---&gt;  Installing perl5.12 @5.12.3_3
---&gt;  Activating perl5.12 @5.12.3_3
---&gt;  Cleaning perl5.12
---&gt;  Fetching archive for perl5
---&gt;  Attempting to fetch perl5-5.12.3_1+perl5_12.darwin_11.noarch.tbz2 from http://packages.macports.org/perl5
---&gt;  Fetching perl5
---&gt;  Verifying checksum(s) for perl5
---&gt;  Extracting perl5
---&gt;  Configuring perl5
---&gt;  Building perl5
---&gt;  Staging perl5 into destroot
---&gt;  Installing perl5 @5.12.3_1+perl5_12
---&gt;  Activating perl5 @5.12.3_1+perl5_12
---&gt;  Cleaning perl5
---&gt;  Fetching archive for xz
---&gt;  Attempting to fetch xz-5.0.3_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/xz
---&gt;  Fetching xz
---&gt;  Attempting to fetch xz-5.0.3.tar.bz2 from http://lil.fr.distfiles.macports.org/xz
---&gt;  Verifying checksum(s) for xz
---&gt;  Extracting xz
---&gt;  Configuring xz
---&gt;  Building xz
---&gt;  Staging xz into destroot
---&gt;  Installing xz @5.0.3_0
---&gt;  Activating xz @5.0.3_0
---&gt;  Cleaning xz
---&gt;  Fetching archive for zlib
---&gt;  Attempting to fetch zlib-1.2.5_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/zlib
---&gt;  Fetching zlib
---&gt;  Attempting to fetch zlib-1.2.5.tar.bz2 from http://lil.fr.distfiles.macports.org/zlib
---&gt;  Verifying checksum(s) for zlib
---&gt;  Extracting zlib
---&gt;  Applying patches to zlib
---&gt;  Configuring zlib
---&gt;  Building zlib
---&gt;  Staging zlib into destroot
---&gt;  Installing zlib @1.2.5_0
---&gt;  Activating zlib @1.2.5_0
---&gt;  Cleaning zlib
---&gt;  Fetching archive for glib2
---&gt;  Attempting to fetch glib2-2.30.2_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/glib2
---&gt;  Fetching glib2
---&gt;  Attempting to fetch glib-2.30.2.tar.xz from http://lil.fr.distfiles.macports.org/glib2
---&gt;  Verifying checksum(s) for glib2
---&gt;  Extracting glib2
---&gt;  Applying patches to glib2
---&gt;  Configuring glib2
---&gt;  Building glib2
---&gt;  Staging glib2 into destroot
---&gt;  Installing glib2 @2.30.2_2
---&gt;  Activating glib2 @2.30.2_2
---&gt;  Cleaning glib2
---&gt;  Fetching archive for pkgconfig
---&gt;  Attempting to fetch pkgconfig-0.26_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/pkgconfig
---&gt;  Fetching pkgconfig
---&gt;  Attempting to fetch pkg-config-0.26.tar.gz from http://lil.fr.distfiles.macports.org/pkgconfig
---&gt;  Verifying checksum(s) for pkgconfig
---&gt;  Extracting pkgconfig
---&gt;  Configuring pkgconfig
---&gt;  Building pkgconfig
---&gt;  Staging pkgconfig into destroot
---&gt;  Installing pkgconfig @0.26_1
---&gt;  Activating pkgconfig @0.26_1
---&gt;  Cleaning pkgconfig
---&gt;  Fetching archive for mc
---&gt;  Attempting to fetch mc-4.8.0_0+ncurses.darwin_11.x86_64.tbz2 from http://packages.macports.org/mc
---&gt;  Fetching mc
---&gt;  Attempting to fetch mc-4.8.0.tar.xz from http://www.midnight-commander.org/downloads
---&gt;  Verifying checksum(s) for mc
---&gt;  Extracting mc
---&gt;  Configuring mc
---&gt;  Building mc
---&gt;  Staging mc into destroot
---&gt;  Installing mc @4.8.0_0+ncurses
---&gt;  Activating mc @4.8.0_0+ncurses
---&gt;  Cleaning mc
MacBook-Pro-Hades:~ hades$ <strong>/opt/local/bin/mc -V</strong>
GNU Midnight Commander 4.8.0
Built with GLib 2.30.2
Using the ncurses library
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;</pre>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/install-mc-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Установка MacPorts на Lion</title>
		<link>http://macdev.org.ua/instruction/install-macports-lion/</link>
		<comments>http://macdev.org.ua/instruction/install-macports-lion/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 10:53:20 +0000</pubDate>
		<dc:creator>Hades</dc:creator>
				<category><![CDATA[Инструкции]]></category>
		<category><![CDATA[MacPorts]]></category>

		<guid isPermaLink="false">http://freemacstore.org.ua/?p=2861</guid>
		<description><![CDATA[Часто работая за Mac, необходимо воспользоваться программами со старой доброй ubuntu или любого другого linux дистрибутива. Для этого необходимо собирать программы из исходных кодов, что часто приводит к огромному неудобству с зависимостями. На помощь с ними приходит удобный инструмент &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>Часто работая за Mac, необходимо воспользоваться программами со старой доброй ubuntu или любого другого linux дистрибутива. Для этого необходимо собирать программы из исходных кодов, что часто приводит к огромному неудобству с зависимостями. На помощь с ними приходит удобный инструмент &#8212; <a title="MacPorts" href="http://www.macports.org/" target="_blank">MacPorts</a>.<br />
<span id="more-2861"></span><br />
Для этого необходимо скачать пакет с официального сайта &#8212; <a title="Download MacPorts" href="http://www.macports.org/install.php" target="_blank">MacPorts</a> (<a title="Загрузить MacPorts для Loin" href="https://distfiles.macports.org/MacPorts/MacPorts-2.0.3-10.7-Lion.dmg" target="_blank">Lion</a> или <a title="Скачать MacPorts для Snow Leopard" href="https://distfiles.macports.org/MacPorts/MacPorts-2.0.3-10.6-SnowLeopard.dmg" target="_blank">Snow Leopard</a>).</p>
<p>После открытия .dmg файла вы увидите следующее:</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step1.png"><img class="aligncenter size-full wp-image-2862" title="MacPorts-step1" src="/wp-content/uploads/2012/01/MacPorts-step1.png" alt="" width="751" height="554" /></a>Необходимо просто нажать на кнопку &#171;Продолжить&#187;</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step2.png"><img class="aligncenter size-full wp-image-2863" title="MacPorts-step2" src="/wp-content/uploads/2012/01/MacPorts-step2.png" alt="" width="751" height="554" /></a>Аналогично нажимаем на кнопку &#171;продолжить&#187;</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step3.png"><img class="aligncenter size-full wp-image-2864" title="MacPorts-step3" src="/wp-content/uploads/2012/01/MacPorts-step3.png" alt="" width="751" height="554" /></a>Для перехода к следующему меню нажимаем кнопочку &#171;продолжить&#187;</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step4.png"><img class="aligncenter size-full wp-image-2865" title="MacPorts-step4" src="/wp-content/uploads/2012/01/MacPorts-step4.png" alt="" width="751" height="554" /></a>Если вы принимаете данное лицензионное соглашение, то необходимо нажать на кнопку &#171;Agree&#187;</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step5.png"><img class="aligncenter size-full wp-image-2866" title="MacPorts-step5" src="/wp-content/uploads/2012/01/MacPorts-step5.png" alt="" width="751" height="554" /></a>После нажатия на кнопку &#171;установить&#187;, произойдет процесс установки MacPorts на ваш ПК.</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step6.png"><img class="aligncenter size-full wp-image-2867" title="MacPorts-step6" src="/wp-content/uploads/2012/01/MacPorts-step6.png" alt="" width="751" height="554" /></a>После окончания процесса установки вы увидите следующее окно.</p>
<p><a href="/wp-content/uploads/2012/01/MacPorts-step7.png"><img class="aligncenter size-full wp-image-2868" title="MacPorts-step7" src="/wp-content/uploads/2012/01/MacPorts-step7.png" alt="" width="751" height="554" /></a>После успешной установки программы необходимо обязательно закрыть окно терминала (клавиша cmd + q). И повторно открыв его, выполнив в нем следующую команду:</p>
<p><strong>sudo port -v selfupdate</strong></p>
<pre>
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  42.00 bytes/sec
total size is 3226624  speedup is 30729.75
receiving file list ... done

sent 36 bytes  received 76 bytes  44.80 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  42.40 bytes/sec
total size is 48513536  speedup is 457674.87
receiving file list ... done

sent 36 bytes  received 77 bytes  45.20 bytes/sec
total size is 512  speedup is 4.53
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
Adding port math/atlas

Total number of ports parsed:	1
Ports successfully parsed:	1
Ports failed:			0
Up-to-date ports skipped:	13520

--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
</pre>
]]></content:encoded>
			<wfw:commentRss>http://macdev.org.ua/instruction/install-macports-lion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

