• 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
call method from objective c in an applescript class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call method from objective c in an applescript class


  • Subject: call method from objective c in an applescript class
  • From: "droom.dp" <email@hidden>
  • Date: Wed, 14 Aug 2013 21:37:20 +0200

I'm working on a asoc appliction and try to introduce as much as possible pure objective c.
I have an applescript class which is bind up thru an arrayController to a table view.
The way Shane Stanley explains in his book: AppleScriptObjC Explored 4.0.0.
I have an handler in it which updates de table view:
(theLogData is bind up to the arrayController)

on hLogger__(myLogList,myLogCounter)

set myLogCounter to myLogCounter + 1 as integer

if myLogCounter is 1 then

set my theLogData to myLogList

else

set theLogDataArray to theLogData as list

theLogDataArray's addObjectsFromArray_(myLogList)

set my theLogData to theLogDataArray

end if

myLogTableView's reloadData()

end hLogger_


When this handler is called between different applescript classes the table view is updated very well.

Once I access the handler (method) from an objective c class, I do not get a warning, I see that the handler is accessed and the parameters are passed, but the table is not updated at all.

I call the method by this:


[NSClassFromString(@"myAppLog") hNewLogger:myLogList:myLogCounter];


What am I doing wrong ?

Kind Regards,

Droom

 _______________________________________________
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

  • Follow-Ups:
    • Re: call method from objective c in an applescript class
      • From: Shane Stanley <email@hidden>
  • Next by Date: Re: call method from objective c in an applescript class
  • Next by thread: Re: call method from objective c in an applescript class
  • Index(es):
    • Date
    • Thread