2008-01-09 01:36:11 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								USING:  debugger  quotations  help.markup  help.syntax  strings  alien  
						 
					
						
							
								
									
										
										
										
											2008-12-12 02:11:37 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								core-foundation core-foundation.strings core-foundation.arrays ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-01-09 01:36:11 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								IN:  cocoa.application  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <NSString>  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "str"  string  } { "alien"  alien } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Allocates an autoreleased "  { $snippet "CFString"  } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ <NSString> <CFString> CF>string } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <NSArray>  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "seq"  "a sequence of "  { $link alien } " instances"  } { "alien"  alien } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Allocates an autoreleased "  { $snippet "CFArray"  } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ <NSArray> <CFArray> } related-words
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  with-autorelease-pool  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Sets up a new "  { $snippet "NSAutoreleasePool"   } ", calls the quotation and frees the pool."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  NSApp  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "app"  "an "  { $snippet "NSApplication"  } } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Pushes the current "  { $snippet "NSApplication"  } " singleton."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  with-cocoa  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Sets up an autorelease pool, initializes the "  { $snippet "NSApplication"  } " singleton, and calls the quotation."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-10-02 11:53:12 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  cocoa-app  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Initializes Cocoa, calls the quotation, and starts the Cocoa event loop."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								HELP:  add-observer  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "observer"  "an "  { $snippet "NSObject"  } } { "selector"  string  } { "name"  "an "  { $snippet "NSString"  } } { "object"  "an "  { $snippet "NSObject"  } } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Registers an observer with the "  { $snippet "NSNotificationCenter"  } " singleton."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  remove-observer  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "observer"  "an "  { $snippet "NSObject"  } } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Unregisters an observer from the "  { $snippet "NSNotificationCenter"  } " singleton."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  install-delegate  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "receiver"  "an "  { $snippet "NSObject"  } } { "delegate"  "an Objective C class"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Sets the receiver's delegate to a new instance of the delegate class."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  objc-error  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $error-description "Thrown by the Objective C runtime when an error occurs, for example, sending a message to an object with an unrecognized selector."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ARTICLE: "cocoa-application-utils"  "Cocoa application utilities" 
							 
						 
					
						
							
								
									
										
										
										
											2008-10-02 11:53:12 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Utilities:"  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection NSApp }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection add-observer }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection remove-observer }
							 
						 
					
						
							
								
									
										
										
										
											2008-10-02 11:53:12 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection install-delegate }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Combinators:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection cocoa-app }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection with-autorelease-pool }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection with-cocoa } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								IN:  cocoa.application  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ABOUT: "cocoa-application-utils"