• 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: Problem selecting correct row in sorted table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem selecting correct row in sorted table


  • Subject: Re: Problem selecting correct row in sorted table
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 16 Aug 2011 13:03:29 +1000

Shane, thanks for your answer, but that doesn't work either.

I think I'm doing something fundamentally wrong, but being new at this, don't know what.

I'm taking the liberty of posting my app in this…

http://www.4shared.com/file/WLnGbCw1/Santas_Alarm_Clock.html

and if anyone could offer me suggestions as to where I've stuffed up, I'd be most grateful

Regards

Santa


On 15/08/2011, at 10:00 PM, Shane Stanley wrote:

> On Aug 15, 2011, at 11:43 AM, Brian Christmas wrote:
>>
>> tell theArrayController to set tempRow1 to  (santasAlarmClockTable's clickedRow()) as integer
>
>
> This doesn't make sense. If you want to get the index of the clicked row, you ask the table view *or* the array controller -- not both, like you're trying here. the "tell theArrayController to" is redundant and misleading.
>
> But if you want an index you can use with your array controller, or with bound data, you should get the index from the array controller, not the table view, so you get the index according to the arranged objects. You probably want the array controller's selectionIndex().
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>

 _______________________________________________
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

References: 
 >Problem selecting correct row in sorted table (From: Brian Christmas <email@hidden>)

  • Prev by Date: Problem selecting correct row in sorted table
  • Next by Date: Multitasking ASObjC Application
  • Previous by thread: Problem selecting correct row in sorted table
  • Next by thread: Multitasking ASObjC Application
  • Index(es):
    • Date
    • Thread