Sanity check: framework Properties overriding build.properties at (Ant) build time?

2009-10-27 Thread Paul Hoadley
Hello, This may be completely normal, but I haven't run into it before. I have a framework with a Resources/Properties file that contains a particular property, say "foo=bar". I have an app that is dependent on that framework. In the app's build.properties, it happens that I have a coinc

Re: Deleting All Objects in a Database

2009-10-27 Thread Cheong Hee (Gmail)
What I did was to drop the tables and create tables again with static data, rather than delete all the objects. This is done all from wo. Isn't this is the same :) Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a utility that deletes all t

Re: Deleting All Objects in a Database

2009-10-27 Thread Johnny Miller
Hi, Can you use Migrations to tear down and recreate the database while unit testing? If so can you please explain how? Thanks, Johnny On Oct 27, 2009, at 3:31 PM, David LeBer wrote: On 2009-10-27, at 9:14 PM, Chuck Hill wrote: On Oct 27, 2009, at 5:57 PM, David LeBer wrote: On 2009-

Re: Deleting All Objects in a Database

2009-10-27 Thread David LeBer
On 2009-10-27, at 9:14 PM, Chuck Hill wrote: On Oct 27, 2009, at 5:57 PM, David LeBer wrote: On 2009-10-27, at 8:29 PM, Chuck Hill wrote: On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote: Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a ut

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Lachlan Deck
On 28/10/2009, at 12:17 PM, Lon Varscsak wrote: Can you execute: OrderItem.newOrderItem(ec, 1, "iMac 27\" Quad-Core 2.66GHz/1TB/4GB", "*0.00" *) and have it shipped to my house? :P throws new EOUtilities.MoreThanOneException when attempting to fetch required client where location like '

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Lon Varscsak
Can you execute: OrderItem.newOrderItem(ec, 1, "iMac 27\" Quad-Core 2.66GHz/1TB/4GB", "*0.00" *) and have it shipped to my house? :P -Lon On Tue, Oct 27, 2009 at 5:51 PM, Ricardo J. Parada wrote: > > The newOrder() and newOrderItem() are just convenience methods I wrote for > creating and in

Re: Deleting All Objects in a Database

2009-10-27 Thread Chuck Hill
On Oct 27, 2009, at 5:57 PM, David LeBer wrote: On 2009-10-27, at 8:29 PM, Chuck Hill wrote: On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote: Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a utility that deletes all the objects from our da

Re: Deleting All Objects in a Database

2009-10-27 Thread David LeBer
On 2009-10-27, at 8:29 PM, Chuck Hill wrote: Hi Joe, On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote: Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a utility that deletes all the objects from our database without having to run our drop

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Ricardo J. Parada
The newOrder() and newOrderItem() are just convenience methods I wrote for creating and inserting into the editing context to test this particular EOF scenario. Then I used the removeFromItems() method generated by the Wonder templates. But I believe that ends up calling removeObjectFro

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Ricardo J. Parada
Very interesting... You are right David. I have confirmed the same too. Adding a call to ec.processRecentChanges() between the add and the remove makes this work as I expected it. Here's the code: EOEditingContext ec = ERXEC.newEditingContext(); Order order = Order.newOrder

Re: Deleting All Objects in a Database

2009-10-27 Thread Chuck Hill
Hi Joe, On Oct 27, 2009, at 4:34 PM, Joe Kramer wrote: Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a utility that deletes all the objects from our database without having to run our drop/create scripts and restart our app every time

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread David LeBer
On 2009-10-27, at 7:52 PM, Chuck Hill wrote: On Oct 27, 2009, at 4:40 PM, Lon Varscsak wrote: Try: Create an Order and OrderItem and insert both into an editing context. Then add the item to the order using order.addObjectToBothSidesOfRelationshipWithKey(item, "items"). Then call editi

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Lon Varscsak
My guess it's the "array" is appropriate but the editingContext insertedObjects is not correct. I won't try to help anymore. :P -Lon On Tue, Oct 27, 2009 at 4:52 PM, Chuck Hill wrote: > > On Oct 27, 2009, at 4:40 PM, Lon Varscsak wrote: > > Try: >> >> Create an Order and OrderItem and insert b

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Chuck Hill
On Oct 27, 2009, at 4:40 PM, Lon Varscsak wrote: Try: Create an Order and OrderItem and insert both into an editing context. Then add the item to the order using order.addObjectToBothSidesOfRelationshipWithKey(item, "items"). Then call editingContext.processRecentChanges() Then removeObject

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Lon Varscsak
Try: Create an Order and OrderItem and insert both into an editing context. Then add the item to the order using order.addObjectToBothSidesOfRelationshipWithKey(item, "items"). *Then call editingContext.processRecentChanges()* Then removeObjectFromBothSidesOfRelationshipWithKey(item, "items") to r

Deleting All Objects in a Database

2009-10-27 Thread Joe Kramer
Hi all, I am trying to make the life of the person doing our acceptance testing easier by creating a utility that deletes all the objects from our database without having to run our drop/create scripts and restart our app every time she wants to start a test from a clean environment. Is there an

Re: removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Ricardo J. Parada
Resending with some typos fixed... :-) Hi, Let's say you have to-many relationship between two entities: Order <-->> OrderItem. The to-many relationship is called "items" and "Owns Desintation" is checked. Test #1: Create an Order and OrderItem and insert both into an editing context.

removeObjectFromBothSidesOfRelationshipWithKey() question

2009-10-27 Thread Ricardo J. Parada
Hi, Let's say you have to-many relationship between two entities: Order <-->> OrderItem. The to-many relationship is called "items". The items to-many is flagged to indicate that the Order owns the destination OrderItem. Test #1: Create an Order and OrderItem and insert both into an e

Re: 2009 Survey Results

2009-10-27 Thread Lars Sonchocky-Helldorf
Am 27.10.2009 um 05:35 schrieb Tavis McDevitt: Thanks to all who responded. My linked list was going to store workflows for a document processing application. I can certainly store it in a set of records with integer attributes for ordering, but will of course have to write the functionali

Re: displaying an integer list

2009-10-27 Thread Alex Johnson
Just to summarize, the problem was that: new NSArray( new int [] { ... } ) translates to the single-object NSArray constructor: NSArray( Object ), whereas: new NSArray( new Integer [] { ... } ) translates to the object-array constructor: NSArray( Object [] ), because an i

Re: displaying an integer list

2009-10-27 Thread Jeffrey Simpson
Just a performance hint. You don't want to use "new Integer(2000)". Use "Integer.valueOf(2000)". Integer.valueOf allows for the cacheing of values. appliedYear is an Integer. I've added a formatter = "", but not help. I tried #1 but it requires a "new Integer(2000)"

Re: 2009 Survey Results

2009-10-27 Thread Bojan Volcansek
Dear Theodore, thank you very much - I have updated the link. I hope Tavis will not have anything against me helping him. sincerely yours Bojan On 27-Oct-09, at 11:14 AM, Theodore Petrosky wrote: check the links on the page... Message: 9 |Date: Mon, 26 Oct 2009 21:35:47 -0700 (PDT) |From:

Re: 2009 Survey Results

2009-10-27 Thread Theodore Petrosky
check the links on the page... Message: 9 |Date: Mon, 26 Oct 2009 21:35:47 -0700 (PDT) |From: Tavis McDevitt |Subject: Re: 2009 Survey Results |To: webobjects-dev@lists.apple.com |Message-ID: <349667.24031...@web58101.mail.re3.yahoo.com> |Content-Type: text/plain; charset="iso-8859-1" |To try an

Issue with AjaxModalDialog and AjaxSubmitButton

2009-10-27 Thread Pierre Schambacher
Hi everyone, I've got a strange behavior and I think it could be a bug. Here is the situation, I've got a component, that we will name MyComponent, like this: In an other component, i've got this Until there, no problem but I need to create MyComponent programmatically, so t

Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005

2009-10-27 Thread Freddie Tilley
> The cascade is working but the ordering is wrong.  SQL Server can't handle > deferred constraints.  The easiest solution is to drop the FK constraint. >  The other solution is to order the delete operations and that is NOT easily > done. Thx, the easy way worked. You were right about SQLServer

Re: [OT] Pre-selecting a printer?

2009-10-27 Thread Johan Henselmans
On 26 okt 2009, at 02:09, Pascal Robert wrote: > We have an app that use CUPS to print labels. The framework use JIPSI : > > http://www.lohndirekt.de/software/jipsi_quickstart_drucksoftware.html > > Disclaimer : I didn't setup the CUPS server and didn't work on the app, I > just know that we h