public
Description: Examples from the new 3rd edition of Cocoa Programming for Mac OS X, ported to Nu
Homepage: http://programming.nu/posts/2008/05/23/cocoa-programming-with-nu
Clone URL: git://github.com/timburks/cocoa-programming-with-nu.git
Fixed a couple spots where Cocoa constants weren't accessed in the 
clearest way.
jsyedidia (author)
Tue May 27 22:34:09 -0700 2008
commit  7aedc2febe8624873e01cf5268e34edd8a6abcc0
tree    0cb4246df37f30359ea04007cb79d3de81428f38
parent  3e78a300d8c8b93e2350e8828a4859b9aa9a34a2
...
50
51
52
53
 
54
55
56
...
50
51
52
 
53
54
55
56
0
@@ -50,7 +50,7 @@
0
 
0
      (- (id) tableView: (id) tv objectValueForTableColumn: (id) tc row: (int) row is
0
         (set dict (NSSpeechSynthesizer attributesForVoice:(@voiceList row)))
0
- (dict objectForKey:(NuBridgedConstant constantWithName:"NSVoiceName" signature:"@"))))
0
+ (dict objectForKey:NSVoiceName)))
0
 
0
 (set SHOW_CONSOLE_AT_STARTUP nil)
0
 
...
102
103
104
105
106
107
108
109
110
111
112
 
113
114
115
...
102
103
104
 
105
106
107
108
109
110
 
111
112
113
114
0
@@ -102,14 +102,13 @@
0
   }
0
 }
0
 
0
-/*
0
 - (void)changeKeyPath:(NSString *)keyPath
0
        ofObject:(id)obj
0
        toValue:(id)newValue
0
 {
0
   [obj setValue:newValue forKeyPath:keyPath];
0
 }
0
-*/
0
+
0
 - (void)observeValueForKeyPath:(NSString *)keyPath
0
            ofObject:(id)obj
0
             change:(NSDictionary *)change
...
14
15
16
17
 
18
19
20
21
 
22
23
24
...
14
15
16
 
17
18
19
20
 
21
22
23
24
0
@@ -14,11 +14,11 @@
0
         (NSLog "startObservingPerson: #{person}")
0
         (person addObserver:self
0
                  forKeyPath:"personName"
0
- options:0x02
0
+ options:NSKeyValueObservingOptionOld
0
                     context:nil)
0
         (person addObserver:self
0
                  forKeyPath:"expectedRaise"
0
- options:0x02
0
+ options:NSKeyValueObservingOptionOld
0
                     context:nil))
0
                     
0
     (- (void) stopObservingPerson: (id) person is

Comments

    No one has commented yet.