Skip to content

Instantly share code, notes, and snippets.

currentMouseOverView = [theWindow hitTest:thePoint];
//same view as last time, bail.
if (currentMosueOverView === stack.top())
return;
view = currentMouseOverView
while (view)
[{"user": { "userid": "deisy", "password": "C269FB1DD462330070C315F0612030D4", "logedin": false, "profiles": [ { "permissionsList": [ "LOUHICLIENT" ] } ], "workLoad": [ ]}}{"user": { "userid": "erick84", "password": "58FB053DAFE354ED55668C225F0C86AE", "logedin": false, "profiles": [ { "permissionsList": [ "LOUHICLIENT" ] } ], "workLoad": [ ]}}{"user": { "userid": "oswa", "password": "CAF1A3DFB505FFED0D024130F58C5CFA", "logedin": false, "profiles": [ { "permissionsList": [ "LOUHICLIENT", "LOUHIWEB", "ADD_USERS", "REMOVE_USERS", "ADD_WORK", "REMOVE_WORK" ] } ]}}{"user": { "userid": "bob", "password": "9F9D51BC70EF21CA5C14F307980A29D8", "logedin": false, "profiles": [ { "permissionsList": [ "LOUHICLIENT" ] } ], "workLoad": [ ]}}{"user": { "userid": "carmina", "password": "3BF77959261381C466503D78E538F4F5", "logedin": false, "profiles": [ { "permissionsList": [ "LOUHICLIENT" ] } ], "workLoad": [ ]}}{"user": { "userid": "armando", "password": "61938381C1F6408F9B6DEFB9A047D2C8", "logedin": false, "profiles": [ { "p
WebInspector.XProfileDataGridNode = function(aProfileView, aProfileNode, aHeadDataGridNode, hasChildren)
{
WebInspector.DataGridNode.call(this, null, hasChildren);
}
WebInspector.XProfileDataGridNode.prototype = {
get totalPercent()
{
return this.totalTime / this.head.totalTime * 100.0;
if (imageCache[filename])
{
self.beginBitmapFill(imageCache[filename]);
self.moveTo(x, y);
self.lineTo(x+width, y);
self.lineTo(x+width, y+height);
self.lineTo(x, y+height);
self.lineTo(x, y);
self.endFill();
}
var FormatSegmentedControlLeftCapColors = nil,
FormatSegmentedControlCenterColors = nil,
FormatSegmentedControlRightCapColors = nil;
@implementation FormatSegmentedControl : CPSegmentedControl
{
CPArray _backgroundViews;
}
+ (void)initialize
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@cappuccino
cappuccino / inspector.js
Created January 14, 2009 05:36 — forked from anonymous/gist:46802
Replace WebKit.app/Contents/Frameworks/10.5/WebCore.framework/Resources/inspector/inspector.js with this file for better objective-j debugging support
/* utilities.js */
/*
* Copyright (C) 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
@cappuccino
cappuccino / gist:38069
Created December 19, 2008 18:19 — forked from boucher/gist:11652
File Upload
//
// FileUpload.j
// Editor
//
// Created by Francisco Tolmasky on 03/04/08.
// Copyright 2005 - 2008, 280 North, Inc. All rights reserved.
//
import <Foundation/CPObject.j>
import <Foundation/CPValue.j>
@implementation LEProfilePresentation : CPDictionary
{
CPString _name @accessors(property=name);
}
+ (id)alloc
{
var object = [CPDictionary alloc];
object.isa = [self class];
280NPLIST;1.0;D;K;4;$topD;K;18;CPCibObjectDataKeyD;K;6;CP$UIDd;1;1E;E;K;8;$objectsA;S;5;$nullD;K;6;$classD;K;6;CP$UIDd;1;2E;K;28;_CPCibObjectDataNamesKeysKeyD;K;6;CP$UIDd;1;3E;K;30;_CPCibObjectDataNamesValuesKeyD;K;6;CP$UIDd;1;5E;K;30;_CPCibObjectDataClassesKeysKeyD;K;6;CP$UIDd;1;6E;K;32;_CPCibObjectDataClassesValuesKeyD;K;6;CP$UIDd;1;7E;K;30;_CPCibObjectDataConnectionsKeyD;K;6;CP$UIDd;1;8E;K;28;_CPCibObjectDataFrameworkKeyD;K;6;CP$UIDd;1;9E;K;26;_CPCibObjectDataNextOidKeyD;K;6;CP$UIDd;2;10E;K;30;_CPCibObjectDataObjectsKeysKeyD;K;6;CP$UIDd;2;11E;K;32;_CPCibObjectDataObjectsValuesKeyD;K;6;CP$UIDd;2;12E;K;26;_CPCibObjectDataOidKeysKeyD;K;6;CP$UIDd;2;13E;K;28;_CPCibObjectDataOidValuesKeyD;K;6;CP$UIDd;2;14E;K;29;_CPCibObjectDataRootObjectKeyD;K;6;CP$UIDd;1;0E;E;D;K;10;$classnameS;16;_CPCibObjectDataK;8;$classesA;S;16;_CPCibObjectDataS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;4E;K;10;CP.objectsA;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;1;0E;D;K;6;CP$UIDd;2;15E;D;K;6;CP$UIDd;2;17E;D;K;6;CP$UIDd;1;0E;E;E;D;K;10;$classnameS