<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.gnustep.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mastrlynx</id>
	<title>GNUstepWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.gnustep.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mastrlynx"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.gnustep.org/index.php/Special:Contributions/Mastrlynx"/>
	<updated>2026-08-20T13:39:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://mediawiki.gnustep.org/index.php?title=NSDocument&amp;diff=884</id>
		<title>NSDocument</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.gnustep.org/index.php?title=NSDocument&amp;diff=884"/>
		<updated>2005-08-01T12:42:09Z</updated>

		<summary type="html">&lt;p&gt;Mastrlynx: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NSDocument is an AppKit class used to implement document-based applications. It is subclassed so that instances represent specific &amp;quot;document&amp;quot; types.&lt;br /&gt;
&lt;br /&gt;
== Code chunks ==&lt;br /&gt;
&lt;br /&gt;
=== Multiple editors ===&lt;br /&gt;
&lt;br /&gt;
If your document uses multiple editors and each is represented with a single [[NSWindowController]], you can commit all edits like in the following (obvious) code. Requirement is, that each NSWindowController should implement ''commitEditing''.&lt;br /&gt;
&lt;br /&gt;
 - (void)commitEdits&lt;br /&gt;
 {&lt;br /&gt;
    NSWindowController *controller;&lt;br /&gt;
    NSEnumerator       *enumerator;&lt;br /&gt;
    &lt;br /&gt;
    enumerator = [[self windowControllers] objectEnumerator];&lt;br /&gt;
    &lt;br /&gt;
    while( (controller = [enumerator nextObject]) )&lt;br /&gt;
    {&lt;br /&gt;
        if([controller respondsToSelector:@selector(commitEditing)])&lt;br /&gt;
        {&lt;br /&gt;
            [controller commitEditing];&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
mastrlynx&lt;/div&gt;</summary>
		<author><name>Mastrlynx</name></author>
	</entry>
</feed>