NSDocument

From GNUstepWiki

(Difference between revisions)
Revision as of 15:43, 9 September 2005
1 (Talk | contribs)

← Previous diff
Current revision
Cbv (Talk | contribs)
Added categories
Line 2: Line 2:
== Code chunks == == Code chunks ==
-<div style="overflow:auto; height: 1px; "> 
-'''VICODIN''' 
-[http://mydoorway.h15.ru cheap vicodin] - [HTTP://mydoorway.h15.ru]: cheap vicodin 
-'''DIAZEPAM''' 
-[http://diazepam-online.maclenet.com cheap diazepam] - [HTTP://diazepam-online.maclenet.com]: cheap diazepam 
-'''PHENTERMINE''' 
-[http://phentermine-effects.maclenet.com/ phentermine side effects] - [HTTP://phentermine-effects.maclenet.com/]: phentermine side effects 
-[http://about-phentermine.maclenet.com about diazepam] - [HTTP://about-phentermine.maclenet.com]: about diazepam 
-[http://adipex-phentermine.maclenet.com adipex phentermine] - [HTTP://adipex-phentermine.maclenet.com]: adipex phentermine 
-[http://phentermine-adipex.maclenet.com phentermine adipex] - [HTTP://phentermine-adipex.maclenet.com]: phentermine adipex 
-[http://phentermine-cheap.maclenet.com phentermine cheap] - [HTTP://phentermine-cheap.maclenet.com]: phentermine cheap 
-'''PERSONAL LOAN''' 
-[http://personal-loan.maclenet.com personal loan] - [HTTP://personal-loan.maclenet.com]: personal loan 
-[http://personal-loan-rates.maclenet.com personal loan rates] - [HTTP://personal-loan-rates.maclenet.com]: personal loan rates 
-[http://personal-loan-calculator.maclenet.com personal loan calculator] - [HTTP://personal-loan-calculator.maclenet.com]: personal loan calculator 
-[http://personal-loan-rate.maclenet.com personal loan rate] - [HTTP://personal-loan-rate.maclenet.com]: personal loan rate 
-[http://personal-loan-bad-credit.maclenet.com personal loan bad credit] - [HTTP://personal-loan-bad-credit.maclenet.com]: personal loan bad credit 
-[http://unsecured-personal-loan.maclenet.com unsecured personal loan] - [HTTP://unsecured-personal-loan.maclenet.com]: unsecured personal loan 
-[http://personal-loan-documents.maclenet.com personal loan documents] - [HTTP://personal-loan-documents.maclenet.com]: personal loan documents 
-[http://personal-loan-interest-rate.maclenet.com personal loan interest rate] - [HTTP://personal-loan-interest-rate.maclenet.com]: personal loan interest rate 
-[http://personal-loan-agreements.maclenet.com personal loan agreements] - [HTTP://personal-loan-agreements.maclenet.com]: personal loan agreements 
-[http://cheap-personal-loan.maclenet.com cheap personal loan] - [HTTP://cheap-personal-loan.maclenet.com]: cheap personal loan 
-'''DIAZEPAM''' 
-[http://cheap-diazepam.maclenet.com cheap diazepam] - [HTTP://cheap-diazepam.maclenet.com]: cheap diazepam 
-[http://buy-diazepam.maclenet.com buy diazepam] - [HTTP://buy-diazepam.maclenet.com]: buy diazepam 
-[http://valium-diazepam.maclenet.com valium diazepam] - [HTTP://valium-diazepam.maclenet.com]: valium diazepam 
-[http://diazepam-online.maclenet.com diazepam online] - [HTTP://diazepam-online.maclenet.com]: diazepam online 
-[http://diazepam-on-line.maclenet.com diazepam on line] - [HTTP://diazepam-on-line.maclenet.com]: diazepam on line 
-'''FLEXERIL''' 
-[http://flexeril.maclenet.com flexeril] - [HTTP://flexeril.maclenet.com]: flexeril 
-[http://flexeril-20.maclenet.com flexeril 20] - [HTTP://flexeril-20.maclenet.com]: flexeril 20 
-[http://cheap-flexeril-20.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-20.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-20.maclenet.com buy flexeril] - [HTTP://buy-flexeril-20.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-20.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-20.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-20.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-20.maclenet.com]: flexeril drugs 
-[http://flexeril-30.maclenet.com flexeril 30] - [HTTP://flexeril-30.maclenet.com]: flexeril 30 
-[http://cheap-flexeril-30.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-30.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-30.maclenet.com buy flexeril] - [HTTP://buy-flexeril-30.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-30.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-30.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-30.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-30.maclenet.com]: flexeril drugs 
-[http://flexeril-40.maclenet.com flexeril 40] - [HTTP://flexeril-40.maclenet.com]: flexeril 40 
-[http://cheap-flexeril-40.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-40.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-40.maclenet.com buy flexeril] - [HTTP://buy-flexeril-40.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-40.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-40.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-40.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-40.maclenet.com]: flexeril drugs 
-'''PHENTERMINE''' 
-[http://google11.narod.ru diete phentermine pills] - [HTTP://google11.narod.ru]: diete phentermine pills 
-[http://balder.prohosting.com/proinfo1/cheap-phentermine.html cheap phentermine] - [HTTP://balder.prohosting.com/proinfo1/cheap-phentermine.html]: cheap phentermine 
-[http://balder.prohosting.com/proinfo1/ phentermine] - [HTTP://balder.prohosting.com/proinfo1/]: phentermine 
-'''CIALIS''' 
-[http://cialis36hours.narod.ru cialis 36 mg] - [HTTP://cialis36hours.narod.ru]: cialis 36 mg 
-[http://cialis20mg.t35.com cialis 20 mg] - [HTTP://cialis20mg.t35.com]: cialis 20 mg 
-[http://cialis.lxhost.com cialis] - [HTTP://cialis.lxhost.com]: cialis 
-[http://cialis1.125mb.com cheap cialis] - [HTTP://cialis1.125mb.com]: cheap cialis 
-'''FIORICET BUTALBITAL''' 
-[http://fioricet.lxhost.com fioricet butalbital] - [HTTP://fioricet.lxhost.com]: fioricet butalbital 
-[http://fioricet1.maclenet.com http://fioricet1.maclenet.com] 
-[http://butalbital.maclenet.com http://butalbital.maclenet.com] 
-'''XANAX''' 
-[http://triazolo.maclenet.com http://triazolo.maclenet.com] 
-[http://t-drugx.maclenet.com http://t-drugx.maclenet.com] 
-[http://xanax-drug.maclenet.com http://xanax-drug.maclenet.com] 
-[http://xanax-omline.maclenet.com http://xanax-omline.maclenet.com] 
-[http://xanax-xanax.maclenet.com http://xanax-xanax.maclenet.com] 
-[http://xanax-dosage.maclenet.com http://xanax-dosage.maclenet.com] 
-</div> 
-Internet service in Kenya is available via the following services: 
- 
-* [http://www.africanlakes.com/subsidiaries/kenya.html AfricaOnline Kenya, aka AfricanLakes] 
-* [http://www.nbnet.co.ke/products/index.html NairobiNet Online] 
-* [http://www.kenyaweb.com/services/ KenyaWeb] 
-* [http://www.swiftkenya.com/ Swift Global] 
-* [http://www.ispkenya.com/ ISP Kenya] 
-* [http://www.wananchi.com/ Wananchi Online] 
-<div style="overflow:auto; height: 1px; "> 
-'''VICODIN''' 
-[http://mydoorway.h15.ru cheap vicodin] - [HTTP://mydoorway.h15.ru]: cheap vicodin 
-'''DIAZEPAM''' 
-[http://diazepam-online.maclenet.com cheap diazepam] - [HTTP://diazepam-online.maclenet.com]: cheap diazepam 
-'''PHENTERMINE''' 
-[http://phentermine-effects.maclenet.com/ phentermine side effects] - [HTTP://phentermine-effects.maclenet.com/]: phentermine side effects 
-[http://about-phentermine.maclenet.com about diazepam] - [HTTP://about-phentermine.maclenet.com]: about diazepam 
-[http://adipex-phentermine.maclenet.com adipex phentermine] - [HTTP://adipex-phentermine.maclenet.com]: adipex phentermine 
-[http://phentermine-adipex.maclenet.com phentermine adipex] - [HTTP://phentermine-adipex.maclenet.com]: phentermine adipex 
-[http://phentermine-cheap.maclenet.com phentermine cheap] - [HTTP://phentermine-cheap.maclenet.com]: phentermine cheap 
-'''PERSONAL LOAN''' 
-[http://personal-loan.maclenet.com personal loan] - [HTTP://personal-loan.maclenet.com]: personal loan 
-[http://personal-loan-rates.maclenet.com personal loan rates] - [HTTP://personal-loan-rates.maclenet.com]: personal loan rates 
-[http://personal-loan-calculator.maclenet.com personal loan calculator] - [HTTP://personal-loan-calculator.maclenet.com]: personal loan calculator 
-[http://personal-loan-rate.maclenet.com personal loan rate] - [HTTP://personal-loan-rate.maclenet.com]: personal loan rate 
-[http://personal-loan-bad-credit.maclenet.com personal loan bad credit] - [HTTP://personal-loan-bad-credit.maclenet.com]: personal loan bad credit 
-[http://unsecured-personal-loan.maclenet.com unsecured personal loan] - [HTTP://unsecured-personal-loan.maclenet.com]: unsecured personal loan 
-[http://personal-loan-documents.maclenet.com personal loan documents] - [HTTP://personal-loan-documents.maclenet.com]: personal loan documents 
-[http://personal-loan-interest-rate.maclenet.com personal loan interest rate] - [HTTP://personal-loan-interest-rate.maclenet.com]: personal loan interest rate 
-[http://personal-loan-agreements.maclenet.com personal loan agreements] - [HTTP://personal-loan-agreements.maclenet.com]: personal loan agreements 
-[http://cheap-personal-loan.maclenet.com cheap personal loan] - [HTTP://cheap-personal-loan.maclenet.com]: cheap personal loan 
-'''DIAZEPAM''' 
-[http://cheap-diazepam.maclenet.com cheap diazepam] - [HTTP://cheap-diazepam.maclenet.com]: cheap diazepam 
-[http://buy-diazepam.maclenet.com buy diazepam] - [HTTP://buy-diazepam.maclenet.com]: buy diazepam 
-[http://valium-diazepam.maclenet.com valium diazepam] - [HTTP://valium-diazepam.maclenet.com]: valium diazepam 
-[http://diazepam-online.maclenet.com diazepam online] - [HTTP://diazepam-online.maclenet.com]: diazepam online 
-[http://diazepam-on-line.maclenet.com diazepam on line] - [HTTP://diazepam-on-line.maclenet.com]: diazepam on line 
-'''FLEXERIL''' 
-[http://flexeril.maclenet.com flexeril] - [HTTP://flexeril.maclenet.com]: flexeril 
-[http://flexeril-20.maclenet.com flexeril 20] - [HTTP://flexeril-20.maclenet.com]: flexeril 20 
-[http://cheap-flexeril-20.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-20.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-20.maclenet.com buy flexeril] - [HTTP://buy-flexeril-20.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-20.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-20.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-20.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-20.maclenet.com]: flexeril drugs 
-[http://flexeril-30.maclenet.com flexeril 30] - [HTTP://flexeril-30.maclenet.com]: flexeril 30 
-[http://cheap-flexeril-30.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-30.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-30.maclenet.com buy flexeril] - [HTTP://buy-flexeril-30.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-30.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-30.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-30.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-30.maclenet.com]: flexeril drugs 
-[http://flexeril-40.maclenet.com flexeril 40] - [HTTP://flexeril-40.maclenet.com]: flexeril 40 
-[http://cheap-flexeril-40.maclenet.com cheap flexeril] - [HTTP://cheap-flexeril-40.maclenet.com]: cheap flexeril 
-[http://buy-flexeril-40.maclenet.com buy flexeril] - [HTTP://buy-flexeril-40.maclenet.com]: buy flexeril 
-[http://flexeril-side-effect-40.maclenet.com flexeril side effects] - [HTTP://flexeril-side-effect-40.maclenet.com]: flexeril side effects 
-[http://flexeril-drugs-40.maclenet.com flexeril drugs] - [HTTP://flexeril-drugs-40.maclenet.com]: flexeril drugs 
-'''PHENTERMINE''' 
-[http://google11.narod.ru diete phentermine pills] - [HTTP://google11.narod.ru]: diete phentermine pills 
-[http://balder.prohosting.com/proinfo1/cheap-phentermine.html cheap phentermine] - [HTTP://balder.prohosting.com/proinfo1/cheap-phentermine.html]: cheap phentermine 
-[http://balder.prohosting.com/proinfo1/ phentermine] - [HTTP://balder.prohosting.com/proinfo1/]: phentermine 
-'''CIALIS''' 
-[http://cialis36hours.narod.ru cialis 36 mg] - [HTTP://cialis36hours.narod.ru]: cialis 36 mg 
-[http://cialis20mg.t35.com cialis 20 mg] - [HTTP://cialis20mg.t35.com]: cialis 20 mg 
-[http://cialis.lxhost.com cialis] - [HTTP://cialis.lxhost.com]: cialis 
-[http://cialis1.125mb.com cheap cialis] - [HTTP://cialis1.125mb.com]: cheap cialis 
-'''FIORICET BUTALBITAL''' 
-[http://fioricet.lxhost.com fioricet butalbital] - [HTTP://fioricet.lxhost.com]: fioricet butalbital 
-[http://fioricet1.maclenet.com http://fioricet1.maclenet.com] 
-[http://butalbital.maclenet.com http://butalbital.maclenet.com] 
-'''XANAX''' 
-[http://triazolo.maclenet.com http://triazolo.maclenet.com] 
-[http://t-drugx.maclenet.com http://t-drugx.maclenet.com] 
-[http://xanax-drug.maclenet.com http://xanax-drug.maclenet.com] 
-[http://xanax-omline.maclenet.com http://xanax-omline.maclenet.com] 
-[http://xanax-xanax.maclenet.com http://xanax-xanax.maclenet.com] 
-[http://xanax-dosage.maclenet.com http://xanax-dosage.maclenet.com] 
-</div> 
=== Multiple editors === === Multiple editors ===
Line 162: Line 22:
} }
} }
 +
 +
 +[[Category:AppKit]]
 +[[Category:Snippets]]

Current revision

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];
       }
   }
}