Skip to content

Instantly share code, notes, and snippets.

//
// iDrawAppDelegate.m
// iDraw
//
// Created by Alos on 7/22/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "iDrawAppDelegate.h"
#import "MyViewController.h"
testing
public XYZUser updateUser(XYZUser user) {
PersistenceManager pm = PMF.get().getPersistenceManager();
Transaction tx = pm.currentTransaction();
try {
tx.begin();
XYZUser updatedUser = pm.makePersistent(user);
tx.commit();
return updatedUser;
} catch (RuntimeException ex) {
ex.printStackTrace();
var deleteAlert = [[CPAlert alloc] init];
[deleteAlert setTitle:"Guardar cambios"];
[deleteAlert setWindowStyle:CPHUDBackgroundWindowMask];
[deleteAlert setMessageText:"¿Estas seguro de querer guardar el usuario "+[userField objectValue]+" ?"];
[deleteAlert addButtonWithTitle:"Si"];
[deleteAlert addButtonWithTitle:"No"];
[deleteAlert setDelegate: self];
[deleteAlert runModal];
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*
res-2:cappuccino alos$ NARWHAL_ENGINE=rhino jake sudo-install
(in /Users/alos/Cappuccino)
(in /Users/alos/Cappuccino)
(in /Users/alos/Cappuccino)
setupEnvironment warning: ReferenceError: "NULL" is not defined.
(in /Users/alos/Cappuccino/Objective-J)
setupEnvironment warning: ReferenceError: "NULL" is not defined.
Build took 2 seconds
(in /Users/alos/Cappuccino/CommonJS)
setupEnvironment warning: ReferenceError: "NULL" is not defined.
//
// SFTable.j
// XYZRadio
//
// Created by Alos on 10/2/08.
/*
This file is part of XYZRadio.
XYZRadio is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
public void aMethod()throws IllegalArgumentException{
throw new IllegalArgumentException("lalala");
}
- (void)draggedView:(CPView)dragView endedAt:(CPPoint)aPoint operation:(CPDragOperationNone)operation{
if(aPoint == undefined){
var selectionIndexes = [[self selectionIndexes] firstIndex];
[statementCollectionViewArray removeObjectAtIndex: selectionIndexes];
[self reloadContent];
}
}
/*
AddUserWindow.j
Louhi
Created by Oswa on 13/08/09.
This file is part of Louhi.
Louhi is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License.