This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function mainRunLoop() | |
| { | |
| track_1(); | |
| [CPApp nextEventMaskMask:blah inMode:CPDefaultRUnLoopMode callback:mainRunLoop]; | |
| } | |
| function track_1() | |
| { | |
| track_2(); | |
| [CPApp nextEventMaskMask:blah inMode:CPDefaultRUnLoopMode callback:track_1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)postEvent:(CPEvent)anEvent | |
| { | |
| if (_eventListeners.length) | |
| { | |
| if (_eventListeners[_eventListeners.length - 1]._mask & (1 << [anEvent type])) | |
| { | |
| var eventListener = _eventListeners.pop(); | |
| _currentMode = eventListener.mode(); | |
| eventListener._callback(anEvent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)run { | |
| NSAutoreleasePool *pool=[NSAutoreleasePool new]; | |
| [self finishLaunching]; | |
| [pool release]; | |
| _isRunning=YES; | |
| do { | |
| pool = [NSAutoreleasePool new]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| method("returner", # | |
| { | |
| return 5; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| method 'returner' # | |
| { | |
| return 5; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (var i = 0, count = [externalConnections count]; i < count; i++) | |
| { | |
| var thisConnection = externalConnections[i], | |
| cachedConnection = externalConnectionCache[[thisConnection objectForKey:"index"]]; | |
| if ([[self class] documentForObject:[cachedConnection destination]] === self) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| can we just do image.src = "thatURL"; image.onerror = function() { image.src = "thatURL+RANDOM"; image.onerror = function() { for sure no go; } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image = new Image(); | |
| var imageLoaded = false; | |
| image.onload = function() { imageLoaded = true; } | |
| image.src = dataURL; | |
| while (!imageLoaded) | |
| sleep(10); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag | |
| { | |
| if (itemIdentifier == @"cheese") | |
| {NSLog(@"asking for it"); | |
| if (!item) | |
| { | |
| item = [[X alloc] initWithItemIdentifier:itemIdentifier]; | |
| [item setLabel:@"HELLO THERE"]; | |
| [item setPaletteLabel:@"HELLO THERE"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ObjectiveJ = { }; | |
| #define wrap(filename) \ | |
| (function (global, exports) \ | |
| { \ | |
| var undefined; | |
| #include filename \ | |
| })(window, ObjectiveJ) |