Ah..

Definitely an EOGenerator addition for me.

Thanks... I just knew it was out there.  :-)

-j-

On Nov 5, 2007, at 6:55 PM, Chuck Hill wrote:

I have a method like this in my EO superclass:

public EOGlobalID globalID() {
        return editingContext().globalIDForObject(this);
}

Then

NSArray gidsForSelectedObjects = (NSArray) selectedObjects ().valueForKey("globalID");

Will give you what you want.


Chuck


On Nov 5, 2007, at 4:49 PM, James Cicenia wrote:

Hello -

I need to save selection of objects in my database. In order for me to do that
do I have to first extract their global ids and then store those?

If so is there a magic one line of WebObjects code that gives me the ids?

Thanks
James Cicenia

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to