<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=Target-Action-Paradigm</id>
	<title>Target-Action-Paradigm - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=Target-Action-Paradigm"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Target-Action-Paradigm&amp;action=history"/>
	<updated>2026-04-21T08:11:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Target-Action-Paradigm&amp;diff=3905&amp;oldid=prev</id>
		<title>Mm: Created page with &#039;Die Hauptkommunikation von Objekten in Objective-C (2.0) beruht auf einem Nachrichten-System das &quot;Target-Action&quot; bezeichnet wird.   == Target / Action ==  &lt;source lang=&quot;objc&quot;&gt; [m…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=Target-Action-Paradigm&amp;diff=3905&amp;oldid=prev"/>
		<updated>2010-02-18T16:09:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Die Hauptkommunikation von Objekten in Objective-C (2.0) beruht auf einem Nachrichten-System das &amp;quot;Target-Action&amp;quot; bezeichnet wird.   == Target / Action ==  &amp;lt;source lang=&amp;quot;objc&amp;quot;&amp;gt; [m…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Die Hauptkommunikation von Objekten in Objective-C (2.0) beruht auf einem Nachrichten-System das &amp;quot;Target-Action&amp;quot; bezeichnet wird. &lt;br /&gt;
&lt;br /&gt;
== Target / Action ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
[myObject setName:@&amp;quot;Hello World.&amp;quot;];&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;myObject&amp;lt;/tt&amp;gt; ist das Objekt zu dem die Nachricht gesendet wird (&amp;#039;&amp;#039;&amp;#039;target&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* &amp;lt;tt&amp;gt;setName:&amp;lt;/tt&amp;gt; ist die Methode die in diesem Objekt aufgerufen wird (&amp;#039;&amp;#039;&amp;#039;action&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
So kann man z.B. bei User Interface Elementen die Aktion und das Target per Code festlegen (in der Regel passiert das aber durch die Verbindungen im Interface Builder:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;objc&amp;quot;&amp;gt;[myButton setAction:@selector(buttonPressed:)];&lt;br /&gt;
[myButton setTarget:self];&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Selektoren ==&lt;br /&gt;
Ein Selektor (Dateityp SEL) ist übrigens eine Referenz zu einer Methode.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;objc&amp;quot;&amp;gt;&lt;br /&gt;
// die Methode&lt;br /&gt;
-(void)setName:(NSString*)newName;&lt;br /&gt;
// der Selektor (SEL selector)&lt;br /&gt;
@selector(setName:)&lt;br /&gt;
// z.B. gebraucht bei&lt;br /&gt;
[myObject setAction:@selector(setName:)];&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/CommunicateWithObjects.html Apple Developer Coca Fundamentals: Communicating With Objects]&lt;br /&gt;
&lt;br /&gt;
{{Template:iPhoneDev}}&lt;/div&gt;</summary>
		<author><name>Mm</name></author>
	</entry>
</feed>