Re: NSData could not cast to Long

2012-06-25 Thread Alexander Spohr
What is your question here? Why a java.lang.Long is not a com.webobjects.foundation.NSData? Answer: Because casting does not magically turn a Long into an NSData maybe? Your array contains Longs, not NSDatas. atze PS. please read the text of the exception yourself. Am 25.06.2012 um 1

NSData could not cast to Long

2012-06-25 Thread Ron X
hi4all NSMutableArray currentArtistID = (NSMutableArray) validArtistsIDs.valueForKey("CURRENT_ARTIST_ID"); byte[] bytes = currentArtistID.get(i).bytes(); << there get an exception if i write int concreteCurrentArtistID = new Integer(new String(currentArtistID.get(i).bytes())); i get the same e