• 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
Table checkboxes problems.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Table checkboxes problems.


  • Subject: Table checkboxes problems.
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 09 Aug 2011 14:41:01 +1000

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


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

This email sent to email@hidden

  • Prev by Date: insert object update
  • Next by Date: Table checkboxes problems.
  • Previous by thread: Re: Table checkboxes problems.
  • Next by thread: Table checkboxes problems.
  • Index(es):
    • Date
    • Thread