Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Objective-C Plugin Calls Wrong Method



I am creating a simple little Obj-C plugin to do some basic network commands which entails sending some requests and reading responses over a socket, very simple stuff. However, When I call into the plugin from Javascript, it always calls the function that is last in the code.

For example, this was the order of my methods:

...
connect
checkDescription
getList

and every time I would call connect from javascript, I would end up calling getList. I confirmed this by setting breakpoints and doing backtraces in gdb. This is particularly bad because I have to call connect first, before anything can work!

I then added a dummy function to the end of the file:

...
connect
checkDescription
getList
dummy

dummy simply prints to NSLog. Now when I call connect, dummy is called!

I'd appreciate any pointers to what I could be doing wrong.

Thanks!

-jake
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.