Windows and Nib files

Hi
I have three windows in my MainMenu.nib file
#import <Cocoa/Cocoa.h>
@interface learnWindowsAppDelegate : NSObject <NSApplicationDelegate>
NSWindow *window;
NSWindow *Awindow;
NSWindow *Bwindow;
IBOutlet NSButton *open;
IBOutlet NSButton *close;
@property (retain) IBOutlet NSWindow *window;
@property (retain) IBOutlet NSWindow *Awindow;
@property (retain) IBOutlet NSWindow *Bwindow;
- (IBAction)Open:(id)sender;
- (IBAction)Close:(id)sender;
when i build and run the project windows A and B appear
I can close then by using Open and close button - but how would i stop them appearing when you run the project
i.e only see them if you click Open or close them via the Close button
Regards
Tony

If you don't want a window to be visible initially, change the window's behavior in Interface Builder. Select the window in Interface Builder and open its identity inspector by choosing Tools > Attributes Inspector. Deselect the Visible At Launch checkbox.

Similar Messages

  • Windows and bat files

    Hi
    I've made some bat files to compile java sources and run the program.
    After the termination of the program i want the bat file to stop and let me see the messages on console but it closes automatically.
    I tried put pause at the end of the bat file but it does not work.
    Just after finish the java program the console exits and never executes the pause command.
    Why ?
    how Can I do ?

    I tried this one windows XP and it worked fine:
    Test program: public class Test {
        public static void main(String[] args) {
         System.out.println("Test program running");
         System.exit(1);
    }Batch file (called runtest.bat): java -classpath c:\temp Test
    pauseThen I created a shortcut to "runtest.bat". It opened a console window and paused with this output: C:\temp>java -classpath c:\temp Test
    Test program running
    C:\temp>pause
    Press any key to continue . . .How are you running the batch file? Is it from a shortcut on Windows, or from a third party tool, like an editor?
    What is the command line you're using to run the batch file?
    Tim

  • Moved from Mac to Windows and DNxHD files will not relink

    Hi, as I have benn having problems getting '1080p/25 DNxHD 36' files to play smoothly on Mac I have booted into windows and thought I would give it a go.  I installed the Avid Codec pack and launched the project.
    It came up with the relink dialog and I started selecting the files (bit annoying, what if it was a big project, would I have to spend a day just relinking). I select the first file and got a error saying 'canont link media' and 'The selected file canot be relinked because its type (audio) does not match the original file's type (audio and video)'. so I clicked cancel. I played the file in windows and it had audio and video.  I then tried importing it in premiere and it thinks it is audio only;(.
    Any ideas?
    Ben

    If you attempt to start a new project and import one of those files does it allow you to simply import them?

  • MARS - NFS on Unix Services for Windows and deleting files

    Hello !
    I've prepared NFS server on W2k3 server with Unix Services for Windows installed. It works OK, the only problem is moveing/deleting files and folders. It seems like a problem with permissions for anonymous user. Does anybody have similar experience ?

    If you receive the following error message "Error ./pnarchiver Thread 2051:PN-0102:SQL error: ORA-01005: null password given; logon denied" then there is a Problem with archiving to NFS server. The directories for the archiving are properly created on the server but those directories remain empty. The workaround is that an inter operability issue exists between MARS and CygWin NFS server running on Windows 2003 server. To work around such inter operability issues, replace the NFS server with Microsoft Windows Services for Unix.

  • Resize windows and manage files in save/open dialogs?

    1. How to resize windows by dragging any border or corner?
    2. How to manage files via a Save/SaveAs or Open dialog (rename, delete, copy other files, etc...)?
    My search on these two things only comes up with comparisons and debates about Win vs Mac. Not relevant to the questions! I already run Win XP in Fusion when I have to for work. I don't want to run Windows; I just want to eliminate a couple Mac shortcomings since Apple hasn't. Yet. Maybe it has to do with patents...
    Anyway, does anybody know of a utility or other way to enable these functions in Mac OS 10? (I've tried Pathfinder; it doesn't quite do the trick.)

    I believe you will find a couple of third-party utilities that provide some enhancements for windows. As for file dialogs I can only recommend Default Folder X. You will find these at VersionTracker or MacUpdate.

  • Maxdor OneTouch 4 Plus formatting for windows and Mac files

    Is it possible to format/partition a Maxdor OneTouch 4 Plus for accept both Mac and Windows files? If yes, how is it done?

    I'll give your suggestion a try - as soon as I can get the program to load. What am I doing wrong? I plugged in the Maxtor per their instructions. My Mac recognizes the icon on my desktop and I can open it. However, the "Mac OneTouch" icon does not open either by double clicking or by choosing "File", "Open". The user's manual opens and i've followed it's instructions as well as gone to the Seagate website and used their installation tutorial. What more should i do before I return the thing?

  • Windows and Office files related to MS Forms

    After installing some video-applications, Excel (old version: Office97) won't start showing a userform anymore. The command to show the userform initiates Excel to crash instantly. Problemsignature (in Dutch):
    Probleemhandtekening:
      Gebeurtenisnaam van probleem:    BEX
      Naam van de toepassing:    EXCEL.EXE
      Versie van toepassing:    8.0.0.3612
      Tijdstempel van toepassing:    32b0d09e
      Naam van foutmodule:    StackHash_aeca
      Versie van foutmodule:    0.0.0.0
      Tijdstempel van foutmodule:    00000000
      Uitzonderingsmarge:    PCH_9E_FROM_ntdll+0x0003CEEC
      Uitzonderingscode:    c0000005
      Uitzonderingsgegevens:    00000008
      Versie van besturingssysteem:    6.3.9600.2.0.0.768.101
      Landinstelling-id:    1043
      Aanvullende informatie 1:    aeca
      Aanvullende informatie 2:    aeca907265c4b042ef2459b377175aa8
      Aanvullende informatie 3:    f11d
      Aanvullende informatie 4:    f11de824c7832f8b45fe54a2406056bf
    Uninstalling the video-applications, reinstalling Office and even systemrecovery weren't of any help.
    Can anybody tell me which
    Office files
    Windows files (W8.1)
    Windows registry entries
    are related to MS Forms and can be the cause of this trouble?
    Thanks a lot for helping me out of this!

    Folder
    mail \server name
    IMAPMail\server name
    Deleting the server name folders removes any residual mail for an account.
    Note deleting such a folder for an active account is something of a disaster.
    see http://kb.mozillazine.org/Recovering_deleted_mail_accounts not what you ask, but explains folder naming a little

  • "Your Mac OS X start up disk has no more space available for application memory. To avoid problems with your computer, quit any applications you are not using. Closing windows and removing files from your start up disk will also help -  ????

    I am still having trouble with my iMac since I last spoke with you guys about 2 weeks ago. Sorry to take so long to get back to you (things were a little wonky around here). Anyway, I did try running in Safe Mode, as Bob suggested but I continued to have the same problems. Strangely, the original message did not reappear, and has not popped up since the first time I wrote about it. However, the computer is still showing all the same problems. It is running slow, stalling in the middle of games, Youtube etc. I'm getting really sick of seeing that spinning color wheel every time I turn it on. Any advice you can give will be greatly appreciated & thank you all for all the tips and advice with my first posting.
    JT

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion's Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • Portable Hard drive formating for use with windows and mac operating system

    Just bought a verbatim sure fire 500g 800 firewire portable hard drive for my new macbook pro. I have not did bootcamp yet because I am deciding on wether to use Vista or the new windows 7 that will be coming out soon. The drive is already formated HFS+, how do I format the drive so I can write both windows and mac files to it. Help!!!

    how do I format the drive so I can write both windows and mac files to it.
    Either format it to MS-DOS from the DIsk Utility, or install a tool such as MacDrive into Windows and keep the drive in its current format, or install the NTFS-3G driver into Mac OS X and format the drive to NTFS in Windows.
    (45687)

  • Can't find Originals and Modified files in finder

    Just upgraded to iPhoto 9 and find that the Original and Modified folders are missing. I can find them when I get file info from a photo in iphoto and they seem to be subfiles of the iphoto app. However in finder, they are not accessible. Am I missing something?

    With iPhoto 7 (iLife 08) the old iPhoto Library Folder became a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    There is never a need for the user to browse the Library via the Finder or any other app. Any time you do you risk damaging the Library.
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 Only*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and 10.5* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    All of the above are a: faster and b: safer than rooting through the old Library folders.
    Regards
    TD

  • Can i create a home window without using a NIB file

    I hate interface builder, it is a really counter-intuitive piece of junk. Please don't try to convince me otherwise I prefer to do it all in code. Right now i have my whole product running dynamically, creating all the interface objects programmatically as my positioning is all calculated on the fly.
    However I still have one NIB file (MainWindow.NIB) that creates the home window and somehow links to my AppDelegate class, which is the startup class for my app. I see that my main.c routine calls UIApplicationMain() which somehow loads the main nib (hidden magic here), and then eventually my AppDelegate() method which is of calss UIWindow() gets called with an initialize() call followed by applicationDidFinishLaunching() call and off we go.
    Can I create the window dynamically by not using NIBs? Now that we have ipad and iphone to contend with, I would want to create a window that is either 320 x 480 or 768 x 1024 depending on what machine I am on. I would like to get rid of the NIB because I don't understand the wiring stuff and I tried to make a NIB myself but now get a cryptic error message, and anyway the NIB has a fixed size and my app wants to be dynamic now that we have two screen sizes.
    The second part of the question is how do you know what kind of machine you are on? I don't see a Gestalt() routine like in the old mac days so you can tell what machine it is.

    There are always less-informed people who think that a STATIC development tool is somehow more powerful than a flexible dynamic interface computed as one goes. The idea of a static screen form that you control dates back the 80's; modern interfaces are DYNAMIC and interface builder cannot construct those; sure it can perhaps help you lay out things, but if the user turns on certain features then new controls are visible. We have built products with over 500 controls in them and as only perhaps 25 are needed at any one time the software rearranges the screen in the most optimal form at all times. The more advanced the product the more one chafes at a static design tool.

  • Main window ptr. from separate NIB file

    Hi All,
    This sounds like the simple kind of job a programmer would do everyday, but I haven't been able to figure it out yet.
    My NSObject app has the usual main window and MainMenu.nib file, and my user-defaults are kept in an NSWindowController subclass complete with its own separate Preferences.nib file. It does the job but I'd prefer to attach the prefs window to the main window as a sheet rather than present it as a separate pane.
    Assuming this is possible, I'd at least need a pointer to the main window to start with. How can I get the main window's pointer from within this separate nib file, please?
    Thanks in advance
    Ernie

    Thanks guys. I've figured this out now!
    Ernie

  • Duplicate windows from single nib file?

    I've got a Window inside a Nib file that I want to display multiple copies of, but I have no idea how I would pull this off.
    I've tried existing suggestions of placing the window in a seperate nib file with the File's owner set to the NSWindowController class, and then creating multiple instances of this class with the initWithWindowNibName call, however for some reason this seems to fall short when I add a WebView to the window, as it no longer displays a window when I call the showWindow method.
    Is there a better alternative to achieve what I'm looking for?

    Any update on this ability?  We create many in house videos that need to be encoded to 14 different
    bitrates for use with Flash Media Server as dynamic http streams.
    Currently when I am ready to export a finished sequence, I will pick my first preset and queue it in AME.  Then I duplicate that thirteen times, setting each of the new thirteen queued items to their appropriate bitrates.  Then I have to change each of the output names to be "filename_bitrate.flv".
    This process is much slower when queued in AME than if I exported each individually from PP.  I just don't have the time to manually export each version.
    I have also started noticing that some of the last few projects won't render beyond the quality of the first queued item.  Do I need to render the largest bitrate file first?
    Any indication from Adobe on the correct workflow to create multiple bitrate files to be consumed by FMS as dynamic http streams would be appreciated.
    The link above is dead.  Does anyone have an updated link to the document above?

  • Info window and file sizes

    I've been transitioning into Lion for about half a day now and most new features are welcome.  However I can't figure out why the info window displays the size of a file in bytes then displays it in Gigabytes, megabytes etc.  How on earth is this easier to read?  Is this perhaps a bug and not an improvement??
    For Example:
    Lion: 7,043,089,832 bytes (7.07 GB on disk) for 13,115 items
    Snow Leopard:  7.07 GB on disk (7,043.......bytes)
    I apologize if it seems very nitpicky but it takes about two seconds more to figure out the files attributes (and I use the info window quite a bit).
    I suppose I could open the infowindow nib file with interface builder and swap them (the filesize templates) but a hassle...anyone else annoyed/confused with this new layout??
    Thanks!
    ASIDE FROM THE SMALL ANOYANCES, LION IS FANTASTIC!

    typod16 wrote:
    For Example:
    Yes I understood the ⌘-i   part,  I did not grok the copy and paste in red part. 
    Thanks the  example pics was a great help.
    In all honesty it looks the same to me as always,  but I will take your word on it.
    I see it as a non issue.
    There are many instances of the nuances of calculating differences if you want to be pedantic:
    df -h
    vs
    df -H
    DESCRIPTION
         The df utility displays statistics about the amount of free disk space on
         the specified filesystem or on the filesystem of which file is a part.
         Values are displayed in 512-byte per block counts.  If neither a file or
         a filesystem operand is specified, statistics for all mounted filesystems
         are displayed (subject to the -t option below).
         The following options are available:
         -a      Show all mount points, including those that were mounted with the
                 MNT_IGNORE flag.
         -b      Use 512-byte blocks rather than the default.  Note that this
                 overrides the BLOCKSIZE specification from the environment.
         -g      Use 1073741824-byte (1-Gbyte) blocks rather than the default.
                 Note that this overrides the BLOCKSIZE specification from the
                 environment.
         -H      "Human-readable" output.  Use unit suffixes: Byte, Kilobyte,
                 Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
                 number of digits to three or less using base 10 for sizes.
         -h      "Human-readable" output.  Use unit suffixes: Byte, Kilobyte,
                 Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
                 number of digits to three or less using base 2 for sizes.
         -i      Include statistics on the number of free inodes.
         -k      Use 1024-byte (1-Kbyte) blocks rather than the default.  Note
                 that this overrides the BLOCKSIZE specification from the environ-
                 ment.

  • Failed to load window nib file

    I am currently building an Application, and I want to use sereval windows. But if I want to open the second window, I ways get this command line message:
    2011-05-18 20:41:14.069 iLearnVocab[11773:903] -[AddVocabulary loadWindow]: failed to load window nib file 'Add Vocabulary'.
    The compiler sais No Issues. In the Application, there is a button, in the main window, that opens the second Window. At first, I tried, to create an empty XIB and add an NSPanel. After that I tried to use a XIB with a window, but it doesn't really matter. The problem is the same. I tried several things, that might cause this problem. File`s owner is set to an Window Controller, that was made for this window and the name of the window in the code seems to be correct. A Controller, that is responsible for sereval other things (such as  table view or all the other buttons) has this method if the button, which should open the Window is pushed:
    - (IBAction)addVocabulary:(id)sender {
        if (!addVocabularyController) {
            addVocabularyController = [[AddVocabularyController alloc] init];
        NSLog(@"addVocabularyController: %@", addVocabularyController);
        [addVocabularyController showWindow:self];
    I also added an outlet of the window (or panel) to the controller. While hunting this bug, I was looking in Aaron Hillegass "Cocoa programming for Mac OS X" for help. I followed every step how to add an additional window, but it didn't worked in my project. Hillegass example project worked, when I was building it. I did everything like it was done in the example project, but it somehow doesn`t work.
    It would be really great if you could help me, thanks, Elefantosque

    Elefantosque wrote:
    I am currently building an Application, and I want to use sereval windows. But if I want to open the second window, I ways get this command line message:
    2011-05-18 20:41:14.069 iLearnVocab[11773:903] -[AddVocabulary loadWindow]: failed to load window nib file 'Add Vocabulary'.
    - (IBAction)addVocabulary:(id)sender {
        if (!addVocabularyController) {
            addVocabularyController = [[AddVocabularyController alloc] init];
        NSLog(@"addVocabularyController: %@", addVocabularyController);
        [addVocabularyController showWindow:self];
    The error says 'Add Vocabulary' (with a space) - you seem to be using (?) an XIB named 'AddVocabulary' ...?
    What is the name of your XIB, exactly?

Maybe you are looking for

  • How to enter numbers in Arabic?

    Hi All, How to write numbers in arabic? (how will you in normal papers....assume 123 to be in the arabic numerals here). Should it be: | -123| (or) | 123-| Thanks, Jana

  • Error ocurred during initialization of VM. Unable to load native library...

    Hi, I´m trying to install Oracle 9i on a PC with Suse 9.2. when I put the first CD it comes with this error: Initializing Java Virtual Machine from /tmp/OraInstall2006-05-04_11-13-11PM/jre/bin/java. Please wait... Error occurred during initialization

  • Difference between ECC 6.0 and earlier versions

    Hi, one of the difference between ECC 6.0 and earlier versions is that instead 'WS_UPLOAD'  and 'WS_DOWNLOAD' in ECC we should use 'GUI_UPLOAD' and 'GUI_DOWNLOAD'  respectively. (of course SPDD and SPRO tcodes is known by everone i suppose) Similarly

  • Export Controller stopped working

    I am so lost here, can not open Quicktime I get this error, and I have tried to uninstall and reinstall in every mode I can and its still comes up, Please someone help me... Product Export Controller Problem Stopped working Date 1/27/2011 3:40 PM Sta

  • Document 60000030482 cannot be reversed due to clearing reset

    Hello Freinds, Has anybody faced this error during FP09. Document 60000030482 cannot be reversed due to clearing reset There are some documents which are stuck in clarification list. Please can anyone help me to rectify this error. Regards, Charvi