G'day listers
Thanks to Shane Stanleys perseverance and suggestions with me , I've resolved my problem.
I was using…
on setTheSavedString() --etc, etc, set anEntry to {} set end of anEntry to {theActiveColumn:theActiveStoreVariable,theStartDateColumn:theStartDateStoreVariable,theTypeColumn:theTypeStoreVariable,theDayStoreColumn:theDaysStoreVariable,theMonthsColumn:theMonthsStoreVariable,theWeeksColumn:theWeeksStoreVariable,theTextStoreColumn:theTextStoreVariable,theSpeakColumn:theSpeakStoreVariable,theVoiceColumn:theVoiceStoreVariable,theiTunesColumn:theiTunesStoreVariable,thePlaylistColumn:thePlaylistStoreVariable,thePlayListRandomColumn:thePlaylistRandomStoreVariable,theVolumeColumn:theVolumeStoreVariable,theDisplayFlagColumn:theDisplayFlagVariable,theMessageDisplayStoreColumn:theMessageDisplayStoreVariable} return anEntry end setTheSavedString
to set up my array to store, and whilst it worked to ADD an object, it failed on INSERT an object.
I changed it to
set anEntry to {theActiveColumn:theActiveStoreVariable,theStartDateColumn:theStartDateStoreVariable,theTypeColumn:theTypeStoreVariable,theDayStoreColumn:theDaysStoreVariable,theMonthsColumn:theMonthsStoreVariable,theWeeksColumn:theWeeksStoreVariable,theTextStoreColumn:theTextStoreVariable,theSpeakColumn:theSpeakStoreVariable,theVoiceColumn:theVoiceStoreVariable,theiTunesColumn:theiTunesStoreVariable,thePlaylistColumn:thePlaylistStoreVariable,thePlayListRandomColumn:thePlaylistRandomStoreVariable,theVolumeColumn:theVolumeStoreVariable,theDisplayFlagColumn:theDisplayFlagVariable,theMessageDisplayStoreColumn:theMessageDisplayStoreVariable} return anEntry
and the tell theArrayController to addObjects_(anEntry) failed, but setting this…
set anEntry to {} set end of anEntry to my setTheSavedString() tell theArrayController to addObjects_(anEntry)
worked. I don't pretend to know why the difference, all I know is that
set anEntry2 to my setTheSavedString() tell theArrayController to insertObject_atArrangedObjectIndex_(anEntry2, storeEditRow ) works now.
Thanks Shane
Regards
Santa
|