IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label undefined. Show all posts
Showing posts with label undefined. Show all posts

Saturday, February 2, 2013

Apple script editor keeps rejecting my custom command as undefined parameter? What am I doing wrong?

I am trying to make an application apple scriptable. I have created a scripting definition by copying mail.sdef and modifying it to suit my needs as the documentation recommends. My app suite at this point only has one command in it. Here is the definition:

name="NAZone" code="NAZN" description="Classes and commands for the Zone application">

 

  name="accountLogin" code="zONeLgIn" description="Triggers account login.">

            class="LoginCommand"/>

  name="loginName" code="naun" type="text" optional="no" description="Specify the username for the account that you wish to log into">

  key="LoginName"/>

 

            name="passwordStr" code="napw" type="text" optional="no" description="Specify the account password you wish to log into">

  key="PasswordStr"/>

 

 

 

 

 

 

 

I am not sure what is wrong with my definition above, but AppleScript Editor keeps complaining: "Expected end of line but found identifier." at the statement where command is invoked. Here is how my test sript looks like:

tell application "NAZone"

    launch

          try

          accountlogin loginName "test@mail.com" passwordStr "abcdef12345"

          on error errStr number errNum

          display dialog errStr & errNum

          end try

end tell

 

AppleScript Editor complains anything following the command name. I don't think my command is somehow recognized.

I new to making applications scriptable as well as apple scripting.


View the original article here

Re: Apple script editor keeps rejecting my custom command as undefined parameter? What am I doing wrong?

Does your app show up in the Applescript Dictionary and if so what does it show for it?


View the original article here

Re: Apple script editor keeps rejecting my custom command as undefined parameter? What am I doing wrong?

Does your app show up in the Applescript Dictionary and if so what does it show for it?


View the original article here

Apple script editor keeps rejecting my custom command as undefined parameter? What am I doing wrong?

I am trying to make an application apple scriptable. I have created a scripting definition by copying mail.sdef and modifying it to suit my needs as the documentation recommends. My app suite at this point only has one command in it. Here is the definition:

name="NAZone" code="NAZN" description="Classes and commands for the Zone application">

 

  name="accountLogin" code="zONeLgIn" description="Triggers account login.">

            class="LoginCommand"/>

  name="loginName" code="naun" type="text" optional="no" description="Specify the username for the account that you wish to log into">

  key="LoginName"/>

 

            name="passwordStr" code="napw" type="text" optional="no" description="Specify the account password you wish to log into">

  key="PasswordStr"/>

 

 

 

 

 

 

 

I am not sure what is wrong with my definition above, but AppleScript Editor keeps complaining: "Expected end of line but found identifier." at the statement where command is invoked. Here is how my test sript looks like:

tell application "NAZone"

    launch

          try

          accountlogin loginName "test@mail.com" passwordStr "abcdef12345"

          on error errStr number errNum

          display dialog errStr & errNum

          end try

end tell

 

AppleScript Editor complains anything following the command name. I don't think my command is somehow recognized.

I new to making applications scriptable as well as apple scripting.


View the original article here

Friday, January 25, 2013

Undefined symbols for architecture x86_64

I'm trying to run following code in mac os x mount lion (64 bit) but the curl library is not designed for same.

Please help how can i run this

 

C++ Application Code

 

#include

#include

#include

#include

size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) {

    size_t written;

    written = fwrite(ptr, size, nmemb, stream);

    return written;

}

 

int main() {

    std::string tempname = "temp";

    CURL *curl;

    CURLcode res;

    curl = curl_easy_init();

    if(curl) {

        FILE *fp = fopen(tempname.c_str(),"wb");

        curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com");

        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);

        curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);

        res = curl_easy_perform(curl);

        curl_easy_cleanup(curl);

        fclose(fp);

        fp = fopen(tempname.c_str(),"rb");

        fseek (fp , 0 , SEEK_END);

        long lSize = ftell (fp);

        rewind(fp);

        char *buffer = new char[lSize+1];

        fread (buffer, 1, lSize, fp);

        buffer[lSize] = 0;

        fclose(fp);

        std::string content(buffer);

        delete [] buffer;

    }

}

 

Error:

 

Undefined symbols for architecture x86_64:

  "_curl_easy_cleanup", referenced from:

      _main in main.o

  "_curl_easy_init", referenced from:

      _main in main.o

  "_curl_easy_perform", referenced from:

      _main in main.o

  "_curl_easy_setopt", referenced from:

      _main in main.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


View the original article here

Undefined symbols for architecture x86_64

I'm trying to run following code in mac os x mount lion (64 bit) but the curl library is not designed for same.

Please help how can i run this

 

C++ Application Code

 

#include

#include

#include

#include

size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) {

    size_t written;

    written = fwrite(ptr, size, nmemb, stream);

    return written;

}

 

int main() {

    std::string tempname = "temp";

    CURL *curl;

    CURLcode res;

    curl = curl_easy_init();

    if(curl) {

        FILE *fp = fopen(tempname.c_str(),"wb");

        curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.com");

        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);

        curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);

        res = curl_easy_perform(curl);

        curl_easy_cleanup(curl);

        fclose(fp);

        fp = fopen(tempname.c_str(),"rb");

        fseek (fp , 0 , SEEK_END);

        long lSize = ftell (fp);

        rewind(fp);

        char *buffer = new char[lSize+1];

        fread (buffer, 1, lSize, fp);

        buffer[lSize] = 0;

        fclose(fp);

        std::string content(buffer);

        delete [] buffer;

    }

}

 

Error:

 

Undefined symbols for architecture x86_64:

  "_curl_easy_cleanup", referenced from:

      _main in main.o

  "_curl_easy_init", referenced from:

      _main in main.o

  "_curl_easy_perform", referenced from:

      _main in main.o

  "_curl_easy_setopt", referenced from:

      _main in main.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


View the original article here

Wednesday, January 2, 2013

Re: javascript open() function returns undefined

Don't listen to him he's just drinking the koolaid. there are several instances in which safari fails to conform like other more complient browsers. As for your dialog problem. are you testing on an iOS device or on OSX? That's where I would start my hunt for a solution. But as for an answer I don't have one right off the top of my head.


View the original article here

Re: javascript open() function returns undefined

Don't listen to him he's just drinking the koolaid. there are several instances in which safari fails to conform like other more complient browsers. As for your dialog problem. are you testing on an iOS device or on OSX? That's where I would start my hunt for a solution. But as for an answer I don't have one right off the top of my head.


View the original article here

javascript open() function returns undefined

The javascript function open() specs like "fullscreen", "width", "height", seem not to work under Safari while they do under Firefox, Opera and even Explorer. So, I open a popup with : Win=open("","","") and then , I use Win.resizeTo(,) where and was evaluated previously . But I obtain the message : "TypeError : 'undefined' is not an object (evaluating Win.resizeTo)".

 

I found several problems with Safari (performance different from other browsers), and up to now, I managed to get round the problem. But in this case, I go blank !!!

Please, can you help me to produce a code visible by Safarists ;o)

 




View the original article here

Re: javascript open() function returns undefined

Don't listen to him he's just drinking the koolaid. there are several instances in which safari fails to conform like other more complient browsers. As for your dialog problem. are you testing on an iOS device or on OSX? That's where I would start my hunt for a solution. But as for an answer I don't have one right off the top of my head.


View the original article here