public
Description: A popular sample Cocoa application rewritten in Nu. Original code by Aaron Hillegass, ported to Nu by Tim Burks.
Homepage: http://programming.nu/posts/2007/12/12/nupagepacker
Clone URL: git://github.com/timburks/nupagepacker.git
Replacing NULL with nil.
timburks (author)
Sat Dec 01 22:18:48 -0800 2007
commit  b056c97ca901999e31ab5df0373003e259321bdc
tree    d73192e417ac3f1cc0f8bda5ec1768c3aeb918ed
parent  7ff74fa0d3c6e551994039c2bb43c93c9f07ed93
...
132
133
134
135
 
136
137
138
...
140
141
142
143
 
144
145
146
...
152
153
154
155
 
156
157
158
...
199
200
201
202
 
203
204
205
...
266
267
268
269
 
270
271
272
...
609
610
611
612
 
613
614
615
...
132
133
134
 
135
136
137
138
...
140
141
142
 
143
144
145
146
...
152
153
154
 
155
156
157
158
...
199
200
201
 
202
203
204
205
...
266
267
268
 
269
270
271
272
...
609
610
611
 
612
613
614
615
0
@@ -132,7 +132,7 @@
0
      (- (id) hitTest:(NSPoint) aPoint is
0
         (if (PointInRect aPoint (self frame))
0
             (then self)
0
- (else NULL))) ;; in the most hard-won conclusion of this project, this should be NULL and not nil.
0
+ (else nil))) ;; in the most hard-won conclusion of this project, this should be NULL and not nil.
0
      
0
      (- (BOOL) shouldDelayWindowOrderingForEvent:(id) theEvent is YES)
0
      
0
@@ -140,7 +140,7 @@
0
      
0
      (- (int) draggingSourceOperationMaskForLocal:(BOOL) flag is NSDragOperationCopy)
0
      
0
- (- (id) menuForEvent:(id) e is NULL)
0
+ (- (id) menuForEvent:(id) e is nil)
0
      
0
      (- (void) mouseDown:(id) e is
0
         (NSApp preventWindowOrdering)
0
@@ -152,7 +152,7 @@
0
         
0
         ;; Is this a significant distance from the mouseDown?
0
         (unless (< (distanceSquaredBetweenPoints start current) 52.0)
0
- (set dragStart (self convertPoint:start fromView:NULL))
0
+ (set dragStart (self convertPoint:start fromView:nil))
0
                 (set imageSize ($dragImage size))
0
                 (set dragStart (list (- (dragStart first) (/ (imageSize first) 3.0))
0
                                      (- (dragStart second) (/ (imageSize second) 3.0))))
0
@@ -199,7 +199,7 @@
0
         (unless (eq pi oldInfo)
0
                 ((@undoManager prepareWithInvocationTarget:self) replacePageInfoAt:i withPageInfo:oldInfo)
0
                 (@pageInfos replaceObjectAtIndex:i withObject:pi)
0
- ((NSNotificationCenter defaultCenter) postNotificationName:"PackModelChangedNotification" object:self userInfo:NULL)))
0
+ ((NSNotificationCenter defaultCenter) postNotificationName:"PackModelChangedNotification" object:self userInfo:nil)))
0
      
0
      (- (void) setImageRep:(id) r pageOfRep:(int) repPage forPage:(int) viewPage is
0
         (set pi ((PageInfo alloc) init))
0
@@ -266,7 +266,7 @@
0
             (then
0
                  (set str (NSString stringWithContentsOfFile:currentPath
0
                                encoding:NSUTF8StringEncoding
0
- error:NULL))
0
+ error:nil))
0
                  (if str
0
                      (then
0
                           (set atts (self textAttributes))
0
@@ -609,7 +609,7 @@
0
                       page)))
0
      
0
      (- (int) pageForPointInWindow:(NSPoint) p is
0
- (set x (self convertPoint:p fromView:NULL))
0
+ (set x (self convertPoint:p fromView:nil))
0
         (self pageForPoint:x))
0
      
0
      (- (int) draggingEntered:(id) sender is

Comments

    No one has commented yet.