Mailing Lists: Apple Mailing Lists

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

Arbitrary load NIB files



This is the only thing I have left until I'm done with my program, and the most frustrating as well.

According to the "load image" command information in Studio help:

If an image is not part of your project, you can load it by specifying a POSIX (slash-delimited) path to the image file. For example, if sunFlowers.png is stored on disk in /User/Me/Images, you could load the image with the following statement:
set image of image view "artImages" of window "artWindow" to load image "/User/Me/Images/sunFlowers.png"

Is this same support not available in the "load NIB" command? Does anyone know of a work around or anyway to arbitrary load an arbitrary NIB file into an ASStudio application? To load NIBs with just a single string, they must be in the Resource folder *at launch time* so just copying them around launch is insufficient. The only work around I can think of is to check to see if the NIB files that could be loaded are or not (there could be any number of them and a changing number at that) then if not, tell the user they're not loaded, ask for admin privileges copy the files to the /Applications folder, launch an external script to quit the application and relaunch it. Which is just plain nasty and not user friendly.

So....any help or advice would be greatly appreciated: this is the last step I have before I release my application.


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.