 |
 |
Applescript Studio "loadimage:" problem
|
 |
|
 |
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
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
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
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
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
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
|
|
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
|
|
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'."
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Feb 2001
Status:
Offline
|
|
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. 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |