Changeset 60
- Timestamp:
- 06/17/06 00:29:38 (2 years ago)
- Files:
-
- 1 modified
-
NEWT0/trunk/contrib/NewtObjC/example/objc.newt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
NEWT0/trunk/contrib/NewtObjC/example/objc.newt
r31 r60 39 39 40 40 local NSCalendarDate := GetObjCClass("NSCalendarDate"); 41 foreach s, v in NSCalendarDate._proto._proto._proto do42 Print( s & "\n" );41 // foreach s, v in NSCalendarDate._proto._proto._proto do 42 // Print( s & "\n" ); 43 43 local theDate := NSCalendarDate:calendarDate(); 44 44 local theDescription := theDate:description(); … … 75 75 // I'll use libc's sleep for that purpose. 76 76 local libc := OpenNativeLibrary("libc"); 77 libc:Def ineGlobalFn({77 libc:DefGlobalFn('|libc.sleep|, { 78 78 name: "sleep", 79 symbol: '|libc.sleep|,80 79 args: ['uint32], 81 80 result: 'uint32}); … … 88 87 repeat 89 88 |libc.sleep|(1); 90 until (theSound:isPlaying() <>kObjCFalse);89 until (theSound:isPlaying() = kObjCFalse); 91 90 end; 92 91
