1 USING: debugger quotations help.markup help.syntax strings alien
2 core-foundation core-foundation.strings core-foundation.arrays ;
6 { $values { "str" string } { "alien" alien } }
7 { $description "Allocates an autoreleased " { $snippet "CFString" } "." } ;
9 { <NSString> <CFString> CF>string } related-words
12 { $values { "seq" "a sequence of " { $link alien } " instances" } { "alien" alien } }
13 { $description "Allocates an autoreleased " { $snippet "CFArray" } "." } ;
15 { <NSArray> <CFArray> } related-words
17 HELP: with-autorelease-pool
18 { $values { "quot" quotation } }
19 { $description "Sets up a new " { $snippet "NSAutoreleasePool" } ", calls the quotation and frees the pool." } ;
22 { $values { "app" "an " { $snippet "NSApplication" } } }
23 { $description "Pushes the current " { $snippet "NSApplication" } " singleton." } ;
26 { $values { "quot" quotation } }
27 { $description "Sets up an autorelease pool, initializes the " { $snippet "NSApplication" } " singleton, and calls the quotation." } ;
30 { $values { "quot" quotation } }
31 { $description "Initializes Cocoa, calls the quotation, and starts the Cocoa event loop." } ;
34 { $values { "observer" "an " { $snippet "NSObject" } } { "selector" string } { "name" "an " { $snippet "NSString" } } { "object" "an " { $snippet "NSObject" } } }
35 { $description "Registers an observer with the " { $snippet "NSNotificationCenter" } " singleton." } ;
38 { $values { "observer" "an " { $snippet "NSObject" } } }
39 { $description "Unregisters an observer from the " { $snippet "NSNotificationCenter" } " singleton." } ;
41 HELP: install-delegate
42 { $values { "receiver" "an " { $snippet "NSObject" } } { "delegate" "an Objective C class" } }
43 { $description "Sets the receiver's delegate to a new instance of the delegate class." } ;
46 { $error-description "Thrown by the Objective C runtime when an error occurs, for example, sending a message to an object with an unrecognized selector." } ;
48 ARTICLE: "cocoa-application-utils" "Cocoa application utilities"
51 { $subsection add-observer }
52 { $subsection remove-observer }
53 { $subsection install-delegate }
55 { $subsection cocoa-app }
56 { $subsection with-autorelease-pool }
57 { $subsection with-cocoa } ;
60 ABOUT: "cocoa-application-utils"