Changeset 6733
- Timestamp:
- Jun 15, 2007, 4:26:36 AM (17 years ago)
- File:
-
- 1 edited
-
branches/ide-1.0/ccl/examples/cocoa-defaults.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ide-1.0/ccl/examples/cocoa-defaults.lisp
r6723 r6733 133 133 (unless (%null-ptr-p newval) 134 134 (set name (#/retain (#/unarchiveObjectWithData: ns:ns-unarchiver newval)))))))) 135 136 ;;; Return an NSDictionary describing the "default" values of the defaults. 137 (defun cocoa-defaults-initial-values () 138 (let* ((defaults (cocoa-defaults)) 139 (dict (make-instance 'ns:ns-mutable-dictionary 140 :with-capacity (length defaults)))) 141 (dolist (d defaults dict) 142 (#/setObject:forKey: dict 143 (case (cocoa-default-type d) 144 (:color (#/archivedDataWithRootObject: 145 ns:ns-archiver 146 (cocoa-default-value d))) 147 (t 148 (%make-nsstring (format nil "~a" (cocoa-default-value d))))) 149 (objc-constant-string-nsstringptr (cocoa-default-string d))))))
Note:
See TracChangeset
for help on using the changeset viewer.
