CINXE.COM

Objective-C – Уикипедия

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="bg" dir="ltr"> <head> <meta charset="UTF-8"> <title>Objective-C – Уикипедия</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )bgwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t."," \t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"],"wgRequestId":"8f144071-0edb-41a2-a805-7222007681a0","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Objective-C","wgTitle":"Objective-C","wgCurRevisionId":11221353,"wgRevisionId":11221353,"wgArticleId":92924,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Шаблон Webarchive с препратки към Wayback Machine","Езици за програмиране"],"wgPageViewLanguage":"bg","wgPageContentLanguage":"bg","wgPageContentModel":"wikitext","wgRelevantPageName":"Objective-C","wgRelevantArticleId":92924,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject": "wikipedia","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"bg","pageLanguageDir":"ltr","pageVariantFallbacks":"bg"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":5000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q188531","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={ "ext.gadget.WatchlistTopSectionWidgetFix":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.QRpediaFix","ext.gadget.EditToolbar","ext.gadget.EditToolbar-menu-page_elements","ext.gadget.EditToolbar-menu-thematic_templates","ext.gadget.EditToolbar-menu-article_templates","ext.gadget.EditToolbar-menu-talk_templates","ext.gadget.EditToolbar-menu-other_templates","ext.gadget.OpenStreetMap","ext.gadget.Switcher" ,"ext.gadget.ParsePhabLinks","ext.gadget.Mwbot","ext.gadget.UploadRedirectToCommons","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=bg&amp;modules=ext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=bg&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=bg&amp;modules=ext.gadget.WatchlistTopSectionWidgetFix&amp;only=styles&amp;skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=bg&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Objective-C – Уикипедия"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//bg.m.wikipedia.org/wiki/Objective-C"> <link rel="alternate" type="application/x-wiki" title="Редактиране" href="/w/index.php?title=Objective-C&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Уикипедия (bg)"> <link rel="EditURI" type="application/rsd+xml" href="//bg.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://bg.wikipedia.org/wiki/Objective-C"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.bg"> <link rel="alternate" type="application/atom+xml" title="Емисия на Atom за Уикипедия" href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9F%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BD%D0%B8_%D0%BF%D1%80%D0%BE%D0%BC%D0%B5%D0%BD%D0%B8&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Objective-C rootpage-Objective-C skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Направо към съдържанието</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Сайт"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Главно меню" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Главно меню</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Главно меню</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">преместване към страничната лента</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">скриване</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Навигация </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0" title="Началната страница [z]" accesskey="z"><span>Начална страница</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A1%D0%BB%D1%83%D1%87%D0%B0%D0%B9%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0" title="Зареждане на случайна страница [x]" accesskey="x"><span>Случайна статия</span></a></li> </ul> </div> </div> <div id="p-Полезно" class="vector-menu mw-portlet mw-portlet-Полезно" > <div class="vector-menu-heading"> Полезно </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-recentchanges" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9F%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BD%D0%B8_%D0%BF%D1%80%D0%BE%D0%BC%D0%B5%D0%BD%D0%B8" title="Списък на последните промени в уикито [r]" accesskey="r"><span>Последни промени</span></a></li><li id="n-Общи-разговори" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%B8"><span>Общи разговори</span></a></li><li id="n-Обсъждани-статии" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%90%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D0%B8_%D0%B1%D0%B5%D1%81%D0%B5%D0%B4%D0%B8"><span>Обсъждани статии</span></a></li><li id="n-Администратори" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%97%D0%B0%D1%8F%D0%B2%D0%BA%D0%B8_%D0%BA%D1%8A%D0%BC_%D0%B0%D0%B4%D0%BC%D0%B8%D0%BD%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%BE%D1%80%D0%B8%D1%82%D0%B5"><span>Администратори</span></a></li><li id="n-Изтривания" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A1%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B8_%D0%B7%D0%B0_%D0%B8%D0%B7%D1%82%D1%80%D0%B8%D0%B2%D0%B0%D0%BD%D0%B5"><span>Изтривания</span></a></li><li id="n-За-контакти" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%97%D0%B0_%D0%BA%D0%BE%D0%BD%D1%82%D0%B0%D0%BA%D1%82%D0%B8"><span>За контакти</span></a></li> </ul> </div> </div> <div id="p-Включете_се!" class="vector-menu mw-portlet mw-portlet-Включете_се" > <div class="vector-menu-heading"> Включете се! </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Защо?" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9A%D0%BE%D0%B9_%D1%81%D1%8A%D0%B7%D0%B4%D0%B0%D0%B2%D0%B0_%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F"><span>Защо?</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9F%D1%8A%D1%80%D0%B2%D0%B8_%D1%81%D1%82%D1%8A%D0%BF%D0%BA%D0%B8" title="Място, където може да се информирате"><span>Помощ</span></a></li><li id="n-Картинки" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:10_%D0%BD%D0%B5%D1%89%D0%B0,_%D0%BA%D0%BE%D0%B8%D1%82%D0%BE_%D1%82%D1%80%D1%8F%D0%B1%D0%B2%D0%B0_%D0%B4%D0%B0_%D1%81%D0%B5_%D0%B7%D0%BD%D0%B0%D1%8F%D1%82_%D0%B7%D0%B0_%D0%BA%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D0%BA%D0%B8%D1%82%D0%B5_%D0%B2_%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F"><span>Картинки</span></a></li><li id="n-Поведение" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9F%D0%BE%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5"><span>Поведение</span></a></li><li id="n-Изпробване" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9F%D1%8F%D1%81%D1%8A%D1%87%D0%BD%D0%B8%D0%BA"><span>Изпробване</span></a></li><li id="n-Нова-статия" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%92%D1%8A%D0%BB%D1%88%D0%B5%D0%B1%D0%BD%D0%B8%D0%BA"><span>Нова статия</span></a></li> </ul> </div> </div> <div id="p-Общувайте" class="vector-menu mw-portlet mw-portlet-Общувайте" > <div class="vector-menu-heading"> Общувайте </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Блог-на-общността" class="mw-list-item"><a href="https://blog.wikimedia.bg/" rel="nofollow"><span>Блог на общността</span></a></li><li id="n-Фейсбук-страница" class="mw-list-item"><a href="https://www.facebook.com/WikipediaBG" rel="nofollow"><span>Фейсбук страница</span></a></li><li id="n-Фейсбук-група" class="mw-list-item"><a href="https://www.facebook.com/groups/WikipediaBG" rel="nofollow"><span>Фейсбук група</span></a></li><li id="n-🎮-Дискорд" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%94%D0%B8%D1%81%D0%BA%D0%BE%D1%80%D0%B4"><span>🎮 Дискорд</span></a></li><li id="n-Телеграм" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A2%D0%B5%D0%BB%D0%B5%D0%B3%D1%80%D0%B0%D0%BC"><span>Телеграм</span></a></li><li id="n-IRC" class="mw-list-item"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:IRC"><span>IRC</span></a></li><li id="n-GitHub" class="mw-list-item"><a href="https://github.com/wikimedia-bg" rel="nofollow"><span>GitHub</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Уикипедия" src="/static/images/mobile/copyright/wikipedia-wordmark-bg.svg" style="width: 7.5em; height: 1.3125em;"> <img class="mw-logo-tagline" alt="Свободната енциклопедия" src="/static/images/mobile/copyright/wikipedia-tagline-bg.svg" width="120" height="12" style="width: 7.5em; height: 0.75em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A2%D1%8A%D1%80%D1%81%D0%B5%D0%BD%D0%B5" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Претърсване на Уикипедия [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Търсене</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Търсене в Уикипедия" aria-label="Търсене в Уикипедия" autocapitalize="sentences" title="Претърсване на Уикипедия [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Специални:Търсене"> </div> <button class="cdx-button cdx-search-input__end-button">Търсене</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Лични инструменти"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Облик"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Облик" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Облик</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_bg.wikipedia.org&amp;uselang=bg" class=""><span>Направете дарение</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A1%D1%8A%D0%B7%D0%B4%D0%B0%D0%B2%D0%B0%D0%BD%D0%B5_%D0%BD%D0%B0_%D1%81%D0%BC%D0%B5%D1%82%D0%BA%D0%B0&amp;returnto=Objective-C" title="Насърчаваме Ви да си създадете сметка и да влезете, въпреки че не е задължително." class=""><span>Създаване на сметка</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A0%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B8%D1%80%D0%B0%D0%BD%D0%B5_%D0%B8%D0%BB%D0%B8_%D0%B2%D0%BB%D0%B8%D0%B7%D0%B0%D0%BD%D0%B5&amp;returnto=Objective-C" title="Препоръчваме Ви да влезете, въпреки, че не е задължително. [o]" accesskey="o" class=""><span>Влизане</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Допълнителни опции" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Лични инструменти" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Лични инструменти</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Потребителско меню" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_bg.wikipedia.org&amp;uselang=bg"><span>Направете дарение</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A1%D1%8A%D0%B7%D0%B4%D0%B0%D0%B2%D0%B0%D0%BD%D0%B5_%D0%BD%D0%B0_%D1%81%D0%BC%D0%B5%D1%82%D0%BA%D0%B0&amp;returnto=Objective-C" title="Насърчаваме Ви да си създадете сметка и да влезете, въпреки че не е задължително."><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Създаване на сметка</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A0%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B8%D1%80%D0%B0%D0%BD%D0%B5_%D0%B8%D0%BB%D0%B8_%D0%B2%D0%BB%D0%B8%D0%B7%D0%B0%D0%BD%D0%B5&amp;returnto=Objective-C" title="Препоръчваме Ви да влезете, въпреки, че не е задължително. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Влизане</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Страници за излезли от системата редактори <a href="/wiki/%D0%9F%D0%BE%D0%BC%D0%BE%D1%89:%D0%92%D1%8A%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5" aria-label="Научете повече за редактирането"><span>научете повече</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9C%D0%BE%D0%B8%D1%82%D0%B5_%D0%BF%D1%80%D0%B8%D0%BD%D0%BE%D1%81%D0%B8" title="Списък на промените, направени от този IP адрес [y]" accesskey="y"><span>Приноси</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9C%D0%BE%D1%8F%D1%82%D0%B0_%D0%B1%D0%B5%D1%81%D0%B5%D0%B4%D0%B0" title="Дискусия относно редакциите от този адрес [n]" accesskey="n"><span>Беседа</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Сайт"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Съдържание" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Съдържание</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">преместване към страничната лента</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">скриване</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Начало</div> </a> </li> <li id="toc-Предистория" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Предистория"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Предистория</span> </div> </a> <ul id="toc-Предистория-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Примерен_код" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Примерен_код"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Примерен код</span> </div> </a> <button aria-controls="toc-Примерен_код-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Превключване на подраздел Примерен код</span> </button> <ul id="toc-Примерен_код-sublist" class="vector-toc-list"> <li id="toc-Hello,_world!" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Hello,_world!"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Hello, world!</span> </div> </a> <ul id="toc-Hello,_world!-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Външни_препратки" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Външни_препратки"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Външни препратки</span> </div> </a> <ul id="toc-Външни_препратки-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Съдържание" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Скриване/показване на съдържанието" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Скриване/показване на съдържанието</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Objective-C</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Към статията на друг език. Налична на 45 езика" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-45" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">45 езика</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%B3%D9%8A-%D8%A7%D9%84%D9%83%D8%A7%D8%A6%D9%86%D9%8A%D8%A9" title="سي-الكائنية – арабски" lang="ar" hreflang="ar" data-title="سي-الكائنية" data-language-autonym="العربية" data-language-local-name="арабски" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Objective-C" title="Objective-C – азербайджански" lang="az" hreflang="az" data-title="Objective-C" data-language-autonym="Azərbaycanca" data-language-local-name="азербайджански" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/Objective-C" title="Objective-C – беларуски" lang="be" hreflang="be" data-title="Objective-C" data-language-autonym="Беларуская" data-language-local-name="беларуски" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%85%E0%A6%AC%E0%A6%9C%E0%A7%87%E0%A6%95%E0%A7%8D%E0%A6%9F%E0%A6%BF%E0%A6%AD_%E0%A6%B8%E0%A6%BF" title="অবজেক্টিভ সি – бенгалски" lang="bn" hreflang="bn" data-title="অবজেক্টিভ সি" data-language-autonym="বাংলা" data-language-local-name="бенгалски" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Objective-C" title="Objective-C – каталонски" lang="ca" hreflang="ca" data-title="Objective-C" data-language-autonym="Català" data-language-local-name="каталонски" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Objective-C" title="Objective-C – чешки" lang="cs" hreflang="cs" data-title="Objective-C" data-language-autonym="Čeština" data-language-local-name="чешки" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Objective-C" title="Objective-C – датски" lang="da" hreflang="da" data-title="Objective-C" data-language-autonym="Dansk" data-language-local-name="датски" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Objective-C" title="Objective-C – немски" lang="de" hreflang="de" data-title="Objective-C" data-language-autonym="Deutsch" data-language-local-name="немски" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Objective-C" title="Objective-C – гръцки" lang="el" hreflang="el" data-title="Objective-C" data-language-autonym="Ελληνικά" data-language-local-name="гръцки" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Objective-C" title="Objective-C – английски" lang="en" hreflang="en" data-title="Objective-C" data-language-autonym="English" data-language-local-name="английски" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Objective-C" title="Objective-C – есперанто" lang="eo" hreflang="eo" data-title="Objective-C" data-language-autonym="Esperanto" data-language-local-name="есперанто" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Objective-C" title="Objective-C – испански" lang="es" hreflang="es" data-title="Objective-C" data-language-autonym="Español" data-language-local-name="испански" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%A2%D8%A8%D8%AC%DA%A9%D8%AA%DB%8C%D9%88-%D8%B3%DB%8C" title="آبجکتیو-سی – персийски" lang="fa" hreflang="fa" data-title="آبجکتیو-سی" data-language-autonym="فارسی" data-language-local-name="персийски" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Objective-C" title="Objective-C – фински" lang="fi" hreflang="fi" data-title="Objective-C" data-language-autonym="Suomi" data-language-local-name="фински" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Objective-C" title="Objective-C – френски" lang="fr" hreflang="fr" data-title="Objective-C" data-language-autonym="Français" data-language-local-name="френски" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Objective-C" title="Objective-C – галисийски" lang="gl" hreflang="gl" data-title="Objective-C" data-language-autonym="Galego" data-language-local-name="галисийски" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/Objective-C" title="Objective-C – иврит" lang="he" hreflang="he" data-title="Objective-C" data-language-autonym="עברית" data-language-local-name="иврит" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Objective-C" title="Objective-C – унгарски" lang="hu" hreflang="hu" data-title="Objective-C" data-language-autonym="Magyar" data-language-local-name="унгарски" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/Objective-C" title="Objective-C – арменски" lang="hy" hreflang="hy" data-title="Objective-C" data-language-autonym="Հայերեն" data-language-local-name="арменски" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Objective-C" title="Objective-C – италиански" lang="it" hreflang="it" data-title="Objective-C" data-language-autonym="Italiano" data-language-local-name="италиански" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Objective-C" title="Objective-C – японски" lang="ja" hreflang="ja" data-title="Objective-C" data-language-autonym="日本語" data-language-local-name="японски" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/Objective-C" title="Objective-C – грузински" lang="ka" hreflang="ka" data-title="Objective-C" data-language-autonym="ქართული" data-language-local-name="грузински" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kk mw-list-item"><a href="https://kk.wikipedia.org/wiki/Objective-C" title="Objective-C – казахски" lang="kk" hreflang="kk" data-title="Objective-C" data-language-autonym="Қазақша" data-language-local-name="казахски" class="interlanguage-link-target"><span>Қазақша</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EC%98%A4%EB%B8%8C%EC%A0%9D%ED%8B%B0%EB%B8%8C-C" title="오브젝티브-C – корейски" lang="ko" hreflang="ko" data-title="오브젝티브-C" data-language-autonym="한국어" data-language-local-name="корейски" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/Objective-C" title="Objective-C – киргизки" lang="ky" hreflang="ky" data-title="Objective-C" data-language-autonym="Кыргызча" data-language-local-name="киргизки" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%92%E0%B4%AC%E0%B5%8D%E0%B4%9C%E0%B4%95%E0%B5%8D%E0%B4%9F%E0%B5%80%E0%B4%B5%E0%B5%8D-%E0%B4%B8%E0%B4%BF" title="ഒബ്ജക്ടീവ്-സി – малаялам" lang="ml" hreflang="ml" data-title="ഒബ്ജക്ടീവ്-സി" data-language-autonym="മലയാളം" data-language-local-name="малаялам" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Objective-C" title="Objective-C – нидерландски" lang="nl" hreflang="nl" data-title="Objective-C" data-language-autonym="Nederlands" data-language-local-name="нидерландски" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Objective-C" title="Objective-C – норвежки (букмол)" lang="nb" hreflang="nb" data-title="Objective-C" data-language-autonym="Norsk bokmål" data-language-local-name="норвежки (букмол)" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Objective-C" title="Objective-C – полски" lang="pl" hreflang="pl" data-title="Objective-C" data-language-autonym="Polski" data-language-local-name="полски" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Objective-C" title="Objective-C – португалски" lang="pt" hreflang="pt" data-title="Objective-C" data-language-autonym="Português" data-language-local-name="португалски" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/Objective-C" title="Objective-C – руски" lang="ru" hreflang="ru" data-title="Objective-C" data-language-autonym="Русский" data-language-local-name="руски" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Objective-C" title="Objective-C – Simple English" lang="en-simple" hreflang="en-simple" data-title="Objective-C" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Objective-C" title="Objective-C – словашки" lang="sk" hreflang="sk" data-title="Objective-C" data-language-autonym="Slovenčina" data-language-local-name="словашки" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Objective-C" title="Objective-C – словенски" lang="sl" hreflang="sl" data-title="Objective-C" data-language-autonym="Slovenščina" data-language-local-name="словенски" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/Objective-C" title="Objective-C – сръбски" lang="sr" hreflang="sr" data-title="Objective-C" data-language-autonym="Српски / srpski" data-language-local-name="сръбски" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Objective-C" title="Objective-C – шведски" lang="sv" hreflang="sv" data-title="Objective-C" data-language-autonym="Svenska" data-language-local-name="шведски" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%92%E0%AE%AA%E0%AF%8D%E0%AE%9A%E0%AF%86%E0%AE%95%E0%AF%8D%E0%AE%9F%E0%AE%BF%E0%AE%B5%E0%AF%8D_%E0%AE%9A%E0%AE%BF" title="ஒப்செக்டிவ் சி – тамилски" lang="ta" hreflang="ta" data-title="ஒப்செக்டிவ் சி" data-language-autonym="தமிழ்" data-language-local-name="тамилски" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/Objective-C" title="Objective-C – таджикски" lang="tg" hreflang="tg" data-title="Objective-C" data-language-autonym="Тоҷикӣ" data-language-local-name="таджикски" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%AD%E0%B9%87%E0%B8%AD%E0%B8%9A%E0%B9%80%E0%B8%88%E0%B8%81%E0%B8%97%E0%B8%B5%E0%B8%9F-%E0%B8%8B%E0%B8%B5" title="ภาษาอ็อบเจกทีฟ-ซี – тайски" lang="th" hreflang="th" data-title="ภาษาอ็อบเจกทีฟ-ซี" data-language-autonym="ไทย" data-language-local-name="тайски" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Objective-C" title="Objective-C – турски" lang="tr" hreflang="tr" data-title="Objective-C" data-language-autonym="Türkçe" data-language-local-name="турски" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/Objective-C" title="Objective-C – украински" lang="uk" hreflang="uk" data-title="Objective-C" data-language-autonym="Українська" data-language-local-name="украински" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Objective-C" title="Objective-C – виетнамски" lang="vi" hreflang="vi" data-title="Objective-C" data-language-autonym="Tiếng Việt" data-language-local-name="виетнамски" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Objective-C" title="Objective-C – китайски" lang="zh" hreflang="zh" data-title="Objective-C" data-language-autonym="中文" data-language-local-name="китайски" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/Objective-C" title="Objective-C – Minnan" lang="nan" hreflang="nan" data-title="Objective-C" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Objective-C" title="Objective-C – кантонски" lang="yue" hreflang="yue" data-title="Objective-C" data-language-autonym="粵語" data-language-local-name="кантонски" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q188531#sitelinks-wikipedia" title="Редактиране на междуезиковите препратки" class="wbc-editpage">Редактиране</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Именни пространства"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Objective-C" title="Преглед на основната страница [c]" accesskey="c"><span>Статия</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%91%D0%B5%D1%81%D0%B5%D0%B4%D0%B0:Objective-C&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="Беседа за страницата (страницата не съществува) [t]" accesskey="t"><span>Беседа</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Промяна на езиковия вариант" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">български</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Прегледи"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Objective-C"><span>Преглед</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Objective-C&amp;veaction=edit" title="Редактиране на страницата [v]" accesskey="v"><span>Редактиране</span></a></li><li id="ca-edit" class="collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Objective-C&amp;action=edit" title="Редактиране на изходния код на страницата [e]" accesskey="e"><span>Редактиране на кода</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Objective-C&amp;action=history" title="Предишни версии на страницата [h]" accesskey="h"><span>История</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Инструменти" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Инструменти</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Инструменти</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">преместване към страничната лента</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">скриване</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Допълнителни опции" > <div class="vector-menu-heading"> Действия </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Objective-C"><span>Преглед</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Objective-C&amp;veaction=edit" title="Редактиране на страницата [v]" accesskey="v"><span>Редактиране</span></a></li><li id="ca-more-edit" class="collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Objective-C&amp;action=edit" title="Редактиране на изходния код на страницата [e]" accesskey="e"><span>Редактиране на кода</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Objective-C&amp;action=history"><span>История</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Основни </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9A%D0%B0%D0%BA%D0%B2%D0%BE_%D1%81%D0%BE%D1%87%D0%B8_%D0%BD%D0%B0%D1%81%D0%B0%D0%BC/Objective-C" title="Списък на всички страници, сочещи насам [j]" accesskey="j"><span>Какво сочи насам</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A1%D0%B2%D1%8A%D1%80%D0%B7%D0%B0%D0%BD%D0%B8_%D0%BF%D1%80%D0%BE%D0%BC%D0%B5%D0%BD%D0%B8/Objective-C" rel="nofollow" title="Последните промени на страници, сочени от тази страница [k]" accesskey="k"><span>Свързани промени</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/MediaWiki:Uploadtext" title="Качи файлове [u]" accesskey="u"><span>Качване на файл</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B8" title="Списък на всички специални страници [q]" accesskey="q"><span>Специални страници</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Objective-C&amp;oldid=11221353" title="Постоянна препратка към тази версия на страницата"><span>Постоянна препратка</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Objective-C&amp;action=info" title="Повече за тази страница"><span>Информация за страницата</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%A6%D0%B8%D1%82%D0%B8%D1%80%D0%B0%D0%BD%D0%B5&amp;page=Objective-C&amp;id=11221353&amp;wpFormIdentifier=titleform" title="Информация за начините за цитиране на тази страница"><span>Цитиране на статията</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:UrlShortener&amp;url=https%3A%2F%2Fbg.wikipedia.org%2Fwiki%2FObjective-C"><span>Кратък URL адрес</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:QrCode&amp;url=https%3A%2F%2Fbg.wikipedia.org%2Fwiki%2FObjective-C"><span>Изтегляне на QR код</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Отпечатване/изнасяне </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:Book&amp;bookcmd=book_creator&amp;referer=Objective-C"><span>Създаване на книга</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:DownloadAsPdf&amp;page=Objective-C&amp;action=show-download-screen"><span>Изтегляне като PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Objective-C&amp;printable=yes" title="Версия за печат на страницата [p]" accesskey="p"><span>Версия за печат</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> В други проекти </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Objective-C" hreflang="en"><span>Общомедия</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q188531" title="Препратка към свързания обект от хранилището за данни [g]" accesskey="g"><span>Обект в Уикиданни</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Облик"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Облик</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">преместване към страничната лента</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">скриване</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">от Уикипедия, свободната енциклопедия</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="bg" dir="ltr"><p><b>Objective-C</b>, известен още като <b>ObjC</b> и <b>Objective C</b>, е <a href="/wiki/%D0%9E%D0%B1%D0%B5%D0%BA%D1%82%D0%BD%D0%BE_%D0%BE%D1%80%D0%B8%D0%B5%D0%BD%D1%82%D0%B8%D1%80%D0%B0%D0%BD%D0%BE_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B8%D1%80%D0%B0%D0%BD%D0%B5" title="Обектно ориентирано програмиране">обектно ориентиран</a>, <a href="/w/index.php?title=%D0%A0%D0%B5%D1%84%D0%BB%D0%B5%D0%BA%D1%82%D0%B8%D0%B2%D0%B5%D0%BD&amp;action=edit&amp;redlink=1" class="new" title="Рефлективен (страницата не съществува)">рефлективен</a> <a href="/wiki/%D0%95%D0%B7%D0%B8%D0%BA_%D0%B7%D0%B0_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B8%D1%80%D0%B0%D0%BD%D0%B5" title="Език за програмиране">език за програмиране</a> с динамична типизация. <b>ObjC</b> е създаден от Брад Кокс за корпорацията StepStone през <a href="/wiki/1980" title="1980">1980</a> година. През <a href="/wiki/1988" title="1988">1988</a> е възприет като език за програмиране на <a href="/wiki/NEXTSTEP" title="NEXTSTEP">NEXTSTEP</a> а през <a href="/wiki/1992" title="1992">1992</a> започва да се разпространява под <a href="/wiki/GNU" class="mw-redirect" title="GNU">GNU</a> лиценз заедно с компилатора <a href="/w/index.php?title=GCC&amp;action=edit&amp;redlink=1" class="new" title="GCC (страницата не съществува)">GCC</a>. Основно се използва като език за програмиране при <a href="/wiki/Mac_OS_X" class="mw-redirect" title="Mac OS X">Mac OS X</a> и <a href="/w/index.php?title=GNUstep&amp;action=edit&amp;redlink=1" class="new" title="GNUstep (страницата не съществува)">GNUstep</a>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Предистория"><span id=".D0.9F.D1.80.D0.B5.D0.B4.D0.B8.D1.81.D1.82.D0.BE.D1.80.D0.B8.D1.8F"></span>Предистория</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Objective-C&amp;veaction=edit&amp;section=1" title="Редактиране на раздел: Предистория" class="mw-editsection-visualeditor"><span>редактиране</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Objective-C&amp;action=edit&amp;section=1" title="Edit section&#039;s source code: Предистория"><span>редактиране на кода</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Objective-C е създаден основно от Брад Кокс и Том Лов в тяхната компания Степстоун, в началото на 80-те години на 20 век. И двамата са запознати със <a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a>, докато работят в центъра по програмни технологии на ITT Inc. Най-ранните разработки с Objective-C са създадени по това време. </p><p>В началото на 80-те години на ХХ век структурното програмиране се възприема като широко застъпена практика при разработването на софтуер с цел да се „разбие“ програмния код на по-малки и по-лесни за поддържане части. С течение на времето обаче, размерите на програмния код започват да нарастват и това води да появата на така наречения <a href="/wiki/%D0%A1%D0%BF%D0%B0%D0%B3%D0%B5%D1%82%D0%B8_%D0%BA%D0%BE%D0%B4" title="Спагети код">спагети код</a> и <a href="/w/index.php?title=%D0%9F%D0%BE%D0%B2%D1%82%D0%BE%D1%80%D0%BD%D0%B0_%D0%B8%D0%B7%D0%BF%D0%BE%D0%BB%D0%B7%D0%B2%D0%B0%D0%B5%D0%BC%D0%BE%D1%81%D1%82&amp;action=edit&amp;redlink=1" class="new" title="Повторна използваемост (страницата не съществува)">повторна използваемост</a> на вече съществуващия код. </p><p>По това време на обектно ориентираното <a href="/wiki/%D0%9F%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B8%D1%80%D0%B0%D0%BD%D0%B5" title="Програмиране">програмиране</a> се гледа като на едно от възможните решения на този проблем. В същност по това време Smalltalk до голяма степен предлага известна функционалност в това отношение (някои от сложните решения в света тогава са базирани на Smalltalk). </p><p>Основният недостатък на Smalltalk е, че той е базиран на <a href="/wiki/%D0%92%D0%B8%D1%80%D1%82%D1%83%D0%B0%D0%BB%D0%BD%D0%B0_%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D0%B0" title="Виртуална машина">виртуална машина</a>, която има огромни за времето си хардуерни изисквания. Това става причина за по-нататъшните успехи на <b>ObjC</b>. </p><p>Официалното описание на <b>ObjC</b> (в неговата първоначална форма) може да се намери в книгата на Брад Кокс „Object-Oriented Programming, An Evolutionary Approach“ (1986). Кокс се опитва да покаже, че проблемът с <a href="/w/index.php?title=%D0%9F%D0%BE%D0%B2%D1%82%D0%BE%D1%80%D0%BD%D0%B0_%D0%B8%D0%B7%D0%BF%D0%BE%D0%BB%D0%B7%D0%B2%D0%B0%D0%B5%D0%BC%D0%BE%D1%81%D1%82&amp;action=edit&amp;redlink=1" class="new" title="Повторна използваемост (страницата не съществува)">повторната използваемост</a> на програмния код е нещо повече от просто въпрос на синтаксис на даден език за програмиране, но до голяма степен той остава неразбран. </p> <div class="mw-heading mw-heading2"><h2 id="Примерен_код"><span id=".D0.9F.D1.80.D0.B8.D0.BC.D0.B5.D1.80.D0.B5.D0.BD_.D0.BA.D0.BE.D0.B4"></span>Примерен код</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Objective-C&amp;veaction=edit&amp;section=2" title="Редактиране на раздел: Примерен код" class="mw-editsection-visualeditor"><span>редактиране</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Objective-C&amp;action=edit&amp;section=2" title="Edit section&#039;s source code: Примерен код"><span>редактиране на кода</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Hello,_world!"><span id="Hello.2C_world.21"></span>Hello, world!</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Objective-C&amp;veaction=edit&amp;section=3" title="Редактиране на раздел: Hello, world!" class="mw-editsection-visualeditor"><span>редактиране</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Objective-C&amp;action=edit&amp;section=3" title="Edit section&#039;s source code: Hello, world!"><span>редактиране на кода</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Тази програма извежда на екрана следното съобщение: <a href="/wiki/Hello,_world!" class="mw-redirect" title="Hello, world!">Hello, world</a> </p> <div class="mw-highlight mw-highlight-lang-objc mw-content-ltr" dir="ltr"><pre><span></span><span class="cp">#import &lt;Foundation/Foundation.h&gt;</span> <span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">argv</span><span class="p">[])</span> <span class="p">{</span> <span class="k">@autoreleasepool</span><span class="p">{</span> <span class="n">NSLog</span><span class="w"> </span><span class="p">(</span><span class="s">@&quot;Hello, World!&quot;</span><span class="p">);</span> <span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> </pre></div> <div class="mw-heading mw-heading2"><h2 id="Външни_препратки"><span id=".D0.92.D1.8A.D0.BD.D1.88.D0.BD.D0.B8_.D0.BF.D1.80.D0.B5.D0.BF.D1.80.D0.B0.D1.82.D0.BA.D0.B8"></span>Външни препратки</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Objective-C&amp;veaction=edit&amp;section=4" title="Редактиране на раздел: Външни препратки" class="mw-editsection-visualeditor"><span>редактиране</span></a><span class="mw-editsection-divider"> | </span><a href="/w/index.php?title=Objective-C&amp;action=edit&amp;section=4" title="Edit section&#039;s source code: Външни препратки"><span>редактиране на кода</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="http://www.toodarkpark.org/computers/objc/">Object-Oriented Programming and The Objective-C Language</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20041018235301/http://www.toodarkpark.org/computers/objc/">Архив на оригинала от</a> 2004-10-18 в <a href="/wiki/Wayback_Machine" class="mw-redirect" title="Wayback Machine">Wayback Machine</a>.</li> <li><a rel="nofollow" class="external text" href="http://www.geom.uiuc.edu/docs/W3Kit/Overview/ObjectiveC.html">A 10-Minute Introduction to Objective-C</a></li> <li><a rel="nofollow" class="external text" href="http://objectivelib.sourceforge.net/">ObjectiveLib: variant of a Standard Template Library</a></li> <li><a rel="nofollow" class="external text" href="http://virtualschool.edu/objectivec/">Objective-C by Brad Cox</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120204044211/http://virtualschool.edu/objectivec/">Архив на оригинала от</a> 2012-02-04 в <a href="/wiki/Wayback_Machine" class="mw-redirect" title="Wayback Machine">Wayback Machine</a>.</li> <li><a rel="nofollow" class="external text" href="http://www.faqs.org/faqs/computer-lang/Objective-C/faq/">Objective-C FAQ</a></li> <li><a rel="nofollow" class="external text" href="http://www.foldr.org/~michaelw/objective-c/">Objective-C: Links, Resources, Stuff</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20060615145345/http://www.foldr.org/~michaelw/objective-c/">Архив на оригинала от</a> 2006-06-15 в <a href="/wiki/Wayback_Machine" class="mw-redirect" title="Wayback Machine">Wayback Machine</a>.</li> <li><a rel="nofollow" class="external text" href="news://comp.lang.objective-c">Objective-C mailing list</a></li> <li><a rel="nofollow" class="external text" href="http://www.gnustep.org">GNUstep Project Homepage</a></li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐57488d5c7d‐qj8wl Cached time: 20241128035525 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.032 seconds Real time usage: 0.151 seconds Preprocessor visited node count: 59/1000000 Post‐expand include size: 1508/2097152 bytes Template argument size: 0/2097152 bytes Highest expansion depth: 3/100 Expensive parser function count: 1/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 1019/5000000 bytes Lua time usage: 0.007/10.000 seconds Lua memory usage: 829530/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 25.502 1 -total 99.36% 25.340 3 Шаблон:Webarchive --> <!-- Saved in parser cache with key bgwiki:pcache:92924:|#|:idhash:canonical and timestamp 20241128035525 and revision id 11221353. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Взето от „<a dir="ltr" href="https://bg.wikipedia.org/w/index.php?title=Objective-C&amp;oldid=11221353">https://bg.wikipedia.org/w/index.php?title=Objective-C&amp;oldid=11221353</a>“.</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%BD%D0%B8:%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D0%B8" title="Специални:Категории">Категория</a>: <ul><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%95%D0%B7%D0%B8%D1%86%D0%B8_%D0%B7%D0%B0_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B8%D1%80%D0%B0%D0%BD%D0%B5" title="Категория:Езици за програмиране">Езици за програмиране</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Скрита категория: <ul><li><a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_Webarchive_%D1%81_%D0%BF%D1%80%D0%B5%D0%BF%D1%80%D0%B0%D1%82%D0%BA%D0%B8_%D0%BA%D1%8A%D0%BC_Wayback_Machine" title="Категория:Шаблон Webarchive с препратки към Wayback Machine">Шаблон Webarchive с препратки към Wayback Machine</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> Последната промяна на страницата е извършена на 13 декември 2021 г. в 11:59 ч.</li> <li id="footer-info-copyright">Текстът е достъпен под лиценза <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.bg">Creative Commons Признание-Споделяне на споделеното</a>; може да са приложени допълнителни условия. За подробности вижте <a class="external text" href="https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use/bg">Условия за ползване</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Поверителност</a></li> <li id="footer-places-about"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%97%D0%B0_%D0%BA%D0%BE%D0%BD%D1%82%D0%B0%D0%BA%D1%82%D0%B8">За контакт с Уикипедия</a></li> <li id="footer-places-disclaimers"><a href="/wiki/%D0%A3%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%9F%D1%80%D0%B5%D0%B4%D1%83%D0%BF%D1%80%D0%B5%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5">Предупреждение</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Кодекс на поведение</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">За разработчици</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/bg.wikipedia.org">Статистика</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Използване на „бисквитки“</a></li> <li id="footer-places-mobileview"><a href="//bg.m.wikipedia.org/w/index.php?title=Objective-C&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Мобилен изглед</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-57488d5c7d-qj8wl","wgBackendResponseTime":315,"wgPageParseReport":{"limitreport":{"cputime":"0.032","walltime":"0.151","ppvisitednodes":{"value":59,"limit":1000000},"postexpandincludesize":{"value":1508,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":3,"limit":100},"expensivefunctioncount":{"value":1,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1019,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 25.502 1 -total"," 99.36% 25.340 3 Шаблон:Webarchive"]},"scribunto":{"limitreport-timeusage":{"value":"0.007","limit":"10.000"},"limitreport-memusage":{"value":829530,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-57488d5c7d-qj8wl","timestamp":"20241128035525","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Objective-C","url":"https:\/\/bg.wikipedia.org\/wiki\/Objective-C","sameAs":"http:\/\/www.wikidata.org\/entity\/Q188531","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q188531","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"\u0424\u043e\u043d\u0434\u0430\u0446\u0438\u044f \u0423\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u044f","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2006-06-11T17:23:48Z","dateModified":"2021-12-13T11:59:38Z"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10