Difference between revisions of "NSDocument"

From GNUstepWiki
Jump to navigation Jump to search
m
Line 22: Line 22:
 
     }
 
     }
 
  }
 
  }
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
<div style="overflow:auto; height: 1px; ">
 +
[http://mrjeweller.us Gold Jewelry]
 +
[http://adipex.shengen.ru adipex]
 +
[http://adipex.shengen.ru buy adipex]
 +
[http://adult.shengen.ru adult]
 +
[http://adult.shengen.ru/adult-personals.htm adult personals]
 +
[http://all-sex.shengen.ru sex]
 +
[http://all-sex.shengen.ru/sex-position.html sex position]
 +
[http://anklets.shengen.ru anklet]
 +
[http://anklets.shengen.ru anklets]
 +
[http://bextra-store.shengen.ru bextra]
 +
[http://car-donation.shengen.ru car donation]
 +
[http://car-donation.shengen.ru/used-car-donation.html used car donation]
 +
[http://car-loan.shengen.ru car loan]
 +
[http://car-loan.shengen.ru/refinancing-car-loan.html refinancing car loan]
 +
[http://carisoprodol.shengen.ru carisoprodol]
 +
[http://carisoprodol.shengen.ru buy carisoprodol]
 +
[http://cialis-store.shengen.ru cialis]
 +
[http://cialis-store.shengen.ru buy cialis]
 +
[http://credit-cards.shengen.ru credit card]
 +
[http://credit-cards.shengen.ru credit cards]
 +
[http://debt.shengen.ru debt]
 +
[http://detox.shengen.ru pass a drug test]
 +
[http://detox.shengen.ru pass a drug test]
 +
[http://diazepam.shengen.ru diazepam]
 +
[http://diazepam.shengen.ru buy diazepam]
 +
[http://drug-testing.shengen.ru drug testing]
 +
[http://drugdetox.shengen.ru drug detox]
 +
[http://hydrocodone.shengen.ru hydrocodone]
 +
[http://hydrocodone.shengen.ru buy hydrocodone]
 +
[http://hydrocodone.visa-usa.ru buy hydrocodone]
 +
[http://hydrocodone.visa-usa.ru hydrocodone]
 +
[http://make-money.shengen.ru make money]
 +
[http://online-casino.shengen.ru online casino]
 +
[http://online-poker.shengen.ru online poker]
 +
[http://only-valium.shengen.ru buy valium]
 +
[http://only-valium.shengen.ru valium]
 +
[http://phentermine.shengen.ru buy phentermine]
 +
[http://phentermine.shengen.ru phentermine]
 +
[http://plavix.shengen.ru plavix]
 +
[http://plavix.shengen.ru buy plavix]
 +
[http://prescription-drugs.shengen.ru prescription drugs]
 +
[http://protonix.shengen.ru protonix]
 +
[http://refinance.shengen.ru refinance]
 +
[http://spyware-removers.shengen.ru spyware remover]
 +
[http://texas-holdem.shengen.ru holdem]
 +
[http://texas-holdem.shengen.ru texas holdem]
 +
[http://viagra-store.shengen.ru buy viagra]
 +
[http://viagra-store.shengen.ru viagra]
 +
[http://vicodin-store.shengen.ru buy vicodin]
 +
[http://vicodin-store.shengen.ru vicodin]
 +
[http://xanax-store.shengen.ru xanax]
 +
[http://xanax-store.shengen.ru buy xanax]
 +
[http://zyban-store.shengen.ru zyban]
 +
[http://zyban-store.shengen.ru buy zyban]
 +
</div>

Revision as of 16:15, 3 September 2005

NSDocument is an AppKit class used to implement document-based applications. It is subclassed so that instances represent specific "document" types.

Code chunks

Multiple editors

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.

- (void)commitEdits
{
   NSWindowController *controller;
   NSEnumerator       *enumerator;
   
   enumerator = [[self windowControllers] objectEnumerator];
   
   while( (controller = [enumerator nextObject]) )
   {
       if([controller respondsToSelector:@selector(commitEditing)])
       {
           [controller commitEditing];
       }
   }
}
















Gold Jewelry adipex buy adipex adult adult personals sex sex position anklet anklets bextra car donation used car donation car loan refinancing car loan carisoprodol buy carisoprodol cialis buy cialis credit card credit cards debt pass a drug test pass a drug test diazepam buy diazepam drug testing drug detox hydrocodone buy hydrocodone buy hydrocodone hydrocodone make money online casino online poker buy valium valium buy phentermine phentermine plavix buy plavix prescription drugs protonix refinance spyware remover holdem texas holdem buy viagra viagra buy vicodin vicodin xanax buy xanax zyban buy zyban