Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Applescript Studio "loadimage:" problem

Applescript Studio "loadimage:" problem
Thread Tools
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Feb 16, 2003, 12:11 AM
 
I'm trying to build an applescript studio app that will load an external image into an NSImage View box. I guess applescript studio doesn't support this directly at the moment but apple has an example called "Support" that's supposed to accomplish the same thing by calling the obj-C method "loadimage:". The thing is, even when attampting to add an image by building and running Apple's example, I get this error:

"Support[1088] *** -[NSApplication addImage:]: selector not recognized".

Any ideas on this one...? It just seems odd to me that Apple's own example doesn't work. I must be doing something wrong.

Thanks,

Brandon
     
BKuchta  (op)
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Feb 24, 2003, 02:22 AM
 
Can someone compile Apple's example "Support" and see if they can properly add an image. At least that will let me know if it's just me. I'm running 10.2.4 BTW.

Thanks,

Brandon
     
BKuchta  (op)
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Mar 30, 2003, 07:29 PM
 
Come on guys... help me out. This is the devoloper forum so you all have the devoloper tools... right? Someone try to compile the applescript studio example "support" and see if you can add an image... cause I can't.

Much thanks,

Brandon
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 30, 2003, 07:55 PM
 
If nobody else does, I'll try it tomorrow when I get back to my Jag computer. "Support" doesn't seem to be on 10.1.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 31, 2003, 03:32 PM
 
The Support example does indeed seem to contain an imaginary method. How bizarre.

But if what you want is to load an image, NSImage has methods for doing that (e.g. imageNamed:, initWithContentsOfFile:).

EDIT: Actually, now that I look at it, the imaginary method shouldn't make much difference. I don't know why it's there. The method returns the image anyway--which appears to be the point--and there's no need to call this "addImage:" noise.
(Last edited by Chuckit; Mar 31, 2003 at 03:51 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
BKuchta  (op)
Junior Member
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 1, 2003, 02:12 AM
 
Hmm.. so you were actually able to get the support app to load an image? I cannot get it to work and therefore have no basis for troubleshooting. Maybe I need to reinstall.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2