Remove dead code
							parent
							
								
									441a9f7c09
								
							
						
					
					
						commit
						e79e6d6056
					
				| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
! Copyright (C) 2006, 2008 Slava Pestov
 | 
					! Copyright (C) 2006, 2008 Slava Pestov
 | 
				
			||||||
! See http://factorcode.org/license.txt for BSD license.
 | 
					! See http://factorcode.org/license.txt for BSD license.
 | 
				
			||||||
USING: alien alien.syntax io kernel namespaces core-foundation
 | 
					USING: alien alien.syntax io kernel namespaces core-foundation
 | 
				
			||||||
core-foundation.run-loop core-foundation.arrays
 | 
					 core-foundation.arrays
 | 
				
			||||||
core-foundation.data core-foundation.strings cocoa.messages
 | 
					core-foundation.data core-foundation.strings cocoa.messages
 | 
				
			||||||
cocoa cocoa.classes cocoa.runtime sequences threads init summary
 | 
					cocoa cocoa.classes cocoa.runtime sequences threads init summary
 | 
				
			||||||
kernel.private assocs ;
 | 
					kernel.private assocs ;
 | 
				
			||||||
| 
						 | 
					@ -35,13 +35,6 @@ FUNCTION: void NSBeep ( ) ;
 | 
				
			||||||
: with-cocoa ( quot -- )
 | 
					: with-cocoa ( quot -- )
 | 
				
			||||||
    [ NSApp drop call ] with-autorelease-pool ; inline
 | 
					    [ NSApp drop call ] with-autorelease-pool ; inline
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: next-event ( app -- event )
 | 
					 | 
				
			||||||
    NSAnyEventMask f CFRunLoopDefaultMode 1
 | 
					 | 
				
			||||||
    -> nextEventMatchingMask:untilDate:inMode:dequeue: ;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
: do-event ( app -- ? )
 | 
					 | 
				
			||||||
    dup next-event [ dupd -> sendEvent: -> updateWindows t ] [ drop f ] if* ;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
: add-observer ( observer selector name object -- )
 | 
					: add-observer ( observer selector name object -- )
 | 
				
			||||||
    [
 | 
					    [
 | 
				
			||||||
        [ NSNotificationCenter -> defaultCenter ] 2dip
 | 
					        [ NSNotificationCenter -> defaultCenter ] 2dip
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue