• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOCheapCopyMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOCheapCopyMutableArray


  • Subject: Re: EOCheapCopyMutableArray
  • From: Colin Clark <email@hidden>
  • Date: Wed, 6 Oct 2004 17:45:10 -0400

Hi Olivier,

I can't tell what you're doing from the snippet of code you sent.

I'm still on WO 5.1, but at least in this version, I can tell from looking through the Java browser that _EOCheapCopyMutableArray does extend NSMutableArray (which in turn extends NSArray). So you shouldn't have any problems--or class cast exceptions--if you program to the NSArray interface. In other words, an _EOCheapCopyMutableArray is an NSArray and can be treated as such.

Just for background, these "cheap copy arrays" are array faults; they're stand-ins for to-many relationships before the relationship fault has been fired and related objects are fetched from the database.

This may have changed in WO 5.2, I don't know.

Colin

---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto

On Wednesday, October 6, 2004, at 06:30 AM, Olivier Gibier wrote:

Hy,
i have some problems with EOCheapCopyMutableArray to reading result of relationship.

object = storedValueforKey("relationshipKey");
if(object instanceof NSArray)
{
if((NSArray)object).count()==0)


i try this code but i have a java.lang.ClassCastException for cast on NSArray

Do you have a another methods to read EOCheapCopyMutableArray??

Thanks.<smime.p7s> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >EOCheapCopyMutableArray (From: Olivier Gibier <email@hidden>)

  • Prev by Date: Re: Collaborative document management
  • Next by Date: Question about java method calling
  • Previous by thread: EOCheapCopyMutableArray
  • Next by thread: Can't load Application class, exiting...
  • Index(es):
    • Date
    • Thread