Loading a window from nib

Hi,
let me try to explain what i want. I have an empty nib file and i've added a panel to it that is used as a sheet. Now normally what i wold do with multiple windows is as follows:
a) user performs some action to activate the new window
b) the window is instantiated and shown until the user closes it
c) some action is performed and the window is destroyed
How could i do that in cocoa? I don't need any explanation on how to use sheets, all i need is pointers on how to instantiate a panel from the nib and then release it. I'm currently using nsbundle's loadNibNamed, but this instantiates the panel immediately. Is there any way to instantiate it manually and destroy it when not needed any longer? Ideal solution would be a if the window was read from the nib every time instead of loading the nib to memory.

Hi,
this is why Cocoa/Objective-C code tends to get less spaghetti. Try to follow a strict MVC design paradigm and you will be happy whenever you need to adjust the code. More code often is a good thing, especially if you need flexibility.
Delegates and owners (as it is the case of a NIB) are powerful solutions to write real OO code. Only the window controller of this window is responsible for how it should behave etc.
Of course you can have multiple windows in a single NIB and connect them via IBOutlets to one class. So you could control the window from one controller - especially if it is more a panel like window, that rarely pops open.
Volker

Similar Messages

  • SOS!! SOS!! HELP ME!!! The mobo won't load/boot windows from the SCSI Drive!!! HELP!!!

    Ok so i got the board and the crucial RAM with a new enermax 450W power supply. I am running the 1MB A64 3400+ CG on this board.
    I am using the Seagate cheetah 15.3K SCSI drive with a LSI 21320 SCSI controller
    (http://www.lsilogic.com/products/ultra320_host_bus_adapters/lsi21320.html )
    I am also running a IDE drive on the primary IDE channel set as slave.
    I went to the bios and changed the boot order to use the SCSI HD as the first boot device and proceed to intall windows XP. I pressed F6 to install the SCSI drivers and everything went fine until the reboot after all the files has been copied. I would get an error message saying something like:
    "NTLDR cannot find boot drive etc"
    I have no idea what to do...i tried everything and i am 100% sure that its not my SCSI HD or SCSI card.
    PLZZZZ HELP ME!!!!!!! PLZZZ HELP!!!!!

    Found it set your boot order to bootable add in card first in the screen shown here courtesy of HardOCP : http://www.hardocp.com/image.html?image=MTA4MjM1MDg3NWxrOFNyWHJRcTNfMl8yNl9sLmdpZg==
    That should do ya.
    Also be sure that the LSI controller is configured to use the Seagate drive to boot from. There is usually an option of which channel to boot from in the HBA BIOS.

  • When I connect my iTouch to my PC (windows 7) an error message is displayed reading "iTunes was unable to load dataclass information from sync services. Reconnect or try again later".

    When I connect my iTouch to my PC (windows 7) an error message is displayed reading "iTunes was unable to load dataclass information from sync services. Reconnect or try again later". I have completely uninstalled and then reinstalled iTunes. I have also completely reset my iTouch to factory defaults. I have even followed all the advice provided previously to other forum member with the same problem. Nothing seems to work. Please help me someone.

    I'm getting the same problem with both my IPad 4 and iPhone 5
    Just started a few weeks back, Since then I have had two Itunes updates.
    Is this something Apple is aware of and trying to fix?

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

  • Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to

    Hi, I have just loaded Lightroom 5 from the disc onto my Mac.  every time i try and launch the application, it goes to the registration/licence window.  i have input the data five times already.  When Lr5 launches the update window appears, when i try to do anything the following message comes up: - An error occrred when attempting to change modules.  What do i need to do to fix this?

    Masher please use the uninstaller located in the Applications/Utilities/Adobe Installers folder.  Once Photoshop Lightroom is removed then please download Lightroom 5.5 from Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.5 and reinstall.

  • I cant sync my iphone 5s on windows itunes, keep getting error message unable to load dataclass information from sync services.

    i can not sync my iphone 5s on itunes on windows. keep getting error message "unable to load dataclass information from sync services" when plugging in my phone.
    I have tried uninstalling itunes and re-installing it.
    Turning off firewall and antivirus.
    Has anyone had this before and if so how did you over come this issue?
    Thanks in advance

    Hey troyboi12345,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue, follow this article.
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    http://support.apple.com/kb/ts2690
    Have a nice day,
    Mario

  • How do I install windows from USB on Macbook pro 3,1

    How do I install windows from USB on Macbook pro 3,1 ?
    My Superdrive is far from super anymore, So I managed to make an extern drive with both Snow Leopard Partition, Lion Partition (Since I thought Boot Camp 4,1 would bypass my problem), and Time Machine partition, Since I got 1. USB drive that works.
    - My general issue is that Boot camp Refuse to see the USB drive - (Many "how to"´s though show how they install windows perfectly through the USB port, but they use airbooks!, and somehow the Macbook will not ?)
    I fix that issue with >> rEFIt <<, that suddenly makes it possible for the Mac to see the USB drive, and partitions.
    Which was very strange since I could use an extern HD with the whole installation to start up wipe the whole disk, and then use my extern drive with partitions to install Snow Leopard and get everything as before with timemachine. Very smart with timemachine, but very lucky that I have a extern drive that runs the whole system and that I made the partitionsdrive before. DVD-drives are the past!
    Point: So the original system could see the Snow Leopard installation USB disk, but boot camp cannot find the USB drive ?????????
    After rEFIt I booted and then I got this error:
    Starting bootmgr.efi
    Error: Unsupported while loading bootmgr.efi
    I read it could be a problem with the Windows software, so I purchased an extern DVD drive, Used Disk Utility to make an image (.DMG), then used another program to convert the .dmg to .ISO.
    Then downloaded a trialversion of vmWare fusion, and installed windows from the iso. Everything worked brilliant, except and that is why I want to use boot camp, Running windows in another program while running the mac system is a little hacky and slow.
    Point: Nothing is wrong with the windows software, and windows runs fine.
    I then downloaded the Windows DVD / USB Tool, reformatted a USB drive as Master Boot Partition, MS-Dos Fat partition, then after lots of struggling got Vmware, windows to recognise the USB drive. And installed the windows software on the USB drive, as all the walkthroughs recommend.
    Then I tried for "fun"! to just install windows form the extern USB drive, and with rEFIt it will see the drive and start to do something, but then when it starts to boot, the screen just turns into black and nothing happens, and you can see the drive does NOTHING. (I think it is because I only have 1 USB drive and the Extern DVD drive does not get enough power, but again the mac refuse to see the USB drive unless it is a Snow Leopard installation USB-drive!
    Well trying to install Windows Ultimate 64 Bit, which worked great in vmware, because that program installed from the .ISO file that I had on the desktop, but trying with Boot Camp did not get anywhere, what kind of **** program is this boot camp anyway!?, but then I try the new USB disk with windows made from windows, thorugh rEFIt, it sees the disk and then starts and then I get this ERROR:
    rEFIt - Booting Legacy OS
    Starting legacy loader
    Using load option ´USB´
    Error: Not found returned from legacy loader
    Error: Not found from LocateDevicePath
    (x 9 times)
    Error: Load Error while (re)opening our installation volume
    The firmware refused to boot from the selected volume. Note that external hard drives are not well-supported by Apple´s firmware for legacy OS booting
    (Hey Apple please send out a updated firmware that fix this issue?!)
    So how do I do it ? - or is the only option to fix the partition running the system from the extern disk. Format the whole drive in 2 from the "bottom" and install windows and then afterwards install Mac on the other partition ?  Or just run windows on the mac and forget about mac software ? What a stupid solution...

    There are strings in the pliist file to add other Macs so that you can use some USB-DVD drives.
    This is 5 page thread, so a little more 'meat' to it:
    https://discussions.apple.com/thread/3410900?start=60&tstart=0
    And on PC booting Windows from a USB DVD to do the install is usually a piece of cake, sometimes you just need to specify that USB in the BIOS boot order and sometimes select via F12 (or another Fkey) and that is it.
    What you have here seems to be everything and everyone is excluded unless there is a  mac-model device ID string that specifies yes.  An unnecessary hurdle.

  • Boot message: problem with hard drive detected. Slow loading of windows 7

    Good Day
    I am having a problem with my hard drive, everytime it boots these days it starts with a message: Warning: a problem with the hard drive has been detected, followed by an extremely slow loading of windows. then once in windows it gives me Anothet message
    the messsage says hard drive failure imminent you should back up you data etc.
    My specs are:
    Intel core 2 duo e8400 3.0 ghz
    4 gig ddr3 transcend
    1 tb seagate 7200.12
    giga byte nvidia 9800 gt 1 gig ddr3
    Please help lots of data.

    Another option:
    Take your hard drive out and slave it into another KNOWN WORKING PC.
    Back-up your data immediately. Slow boot usually indicates that the drive is going to die. (Check your warranty!)
    Then, run "chkdsk /r" from the host PC to check the failing drive. (It is good to match OSes if you can.)
    MCSE: 6771498

  • A fix for the Mozilla Firefox SSL Certificate Validation Security Weakness vulnerability? This appears to be an issue with not revalidating certificates when loading HTTPS pages from cache.

    We have to close vulnerabilities for PCI & Cybertrust certification. We have upgraded users running Firefox to version 7.0.1 but we are still receiving the message: Mozilla Firefox SSL Certificate Validation Security Weakness. Researching the issue, it appears to be related to certificates not being revalidated when loading HTTPS pages from cache. The bug report I found is:
    Bug 660749 - Firefox doesn't (re)validate certificates when loading a HTTPS page from the cache

    cookies.squite answer is Today at 5:15 PM .
    New profile, same problem.
    We've already established it is not a add-ons problem but obviously there will be less add-ons in this new profile to help exclude.
    Since there is two PC profiles on the PC, I tried the second profile, same problem. Used the RESET FF function on the second PC profile...same thing...even followed the instruct for uninstall &re-install...same problem.
    (3) different virus scanners, no hard core problems.
    Suspect how I have something in Windows setup that no one else is using?

  • "Reopen all windows from last session" unavailable

    Safari was loading web pages very slowly, so I closed 2 windows, each with multiple tabs, and then quit Safari. I reopened Safari, went to History, but the "Reopen all windows from last session" option was greyed out. How can I restore my tabs?
    Thanks,
    Audrey

    Unfortunately no, but there is a free Safari extension that offers this feature.
    Glims for Safari | www.MacHangout.com
    Once Glims is installed, you can access the settings in Safari > Preferences > Extensions then select the General tab then toggle: Restore Tabs and Launch on.
    Other handy features as well.
    And you can have Glims check for updates automatically.

  • Some pages blank after "Reopen All Windows From Last Session"

    Hi there,
    For several months now I have been having a strange problem. "Reopen All Windows From Last Session" works, but only partially. If I have e.g. 14 tabs open in 4 windows and quit/crash Safari, then when Safari relaunches and I reopen all windows, an arbitrary number of them will turn blank. There will be nothing in the URL bar for those tabs and the tab will load as "Untitled" and a blank page.
    This morning I lost 5 tabs this way. In the past I've lost up to 21 of 23. I have never lost all of them; often I lose nothing at all.
    If I then use plutil to convert the LastSession.plist file to XML and examine it, it will have a null string where the missing URLs should be ("<string></string>"). I did so right before I posted, and everything looks reasonable while Safari is running - no obvious file corruption.
    (And for the "use fewer tabs" crowd, I use this Mac to work tech support and have to have a large number of constantly shifting resources open simultaneously. Is the convenience of carrying them over from session to session too much to ask?)

    Today I shut Safari down after saving two copies of ~/Library/Safari/LastSession.plist to the desktop and converting one to xml*. I reviewed that file; only one URL was blanked out, and I saved that URL manually into a Stickie for later retrieval.
    After I quit Safari, I saved two more copies of LastSession.plist and converted one to xml*. There was no change whatsoever from the pre-Safari-quit state. 28 good URLs and 1 blank, across 6 pages.
    I booted up Safari. Result? 10 blank tabs out of 29. So this means:
    - 1 lost during normal operation before program quit
    - 0 lost as a result of program quit
    - 9 lost as a result of program startup
    - 9 http: URLs
    - 1 https: URL
    - (n.b. there were 2 more https: URLs which saved and reloaded correctly)
    I will now quit Safari, restore a saved .plist file into its directory, and try to reproduce it.
    * .plist files are by default stored in a binary format. If you want to read what's inside a .plist file as part of your own troubleshooting, save a copy of the file and run the plutil command from within Terminal:
    plutil -convert xml1 -e pxml FILENAME
    (replace FILENAME with the full name and path of the file you saved)
    This will give you a file named FILENAME.pxml in the same location that you can read with TextEdit or any of the command-line text editing commands.
    Message was edited by: Baxil

  • ITunes was unable to load dataclass information from Sync Services

    Hi,
    I have Iphone 3GS with the latest version 3.1.3 and iTunes 9.1. After i uograded my iPhone to the latest version i am not able to sync with the iTunes and receive the message "iTunes was unable to load dataclass information from Sync Services, Reconnect or Try later". I am using Windows XP with Symantec Endpoint protection.
    I have tried following steps to troubleshoot the problem but all my attempts have failed,
    1. Uninstall iTunes by Removing, iTunes, QuickTime, BonJour, iPhone congiguration Utility and Bonjour. Remove all the iTunes and related folder from the C:/ drive
    2. Restart the computer and intall the latest version of iTunes and Quicktime
    3. Restore the iPhone to the factory settings using iTunes
    4. Restart the system as well as hard Boot the iPhone (Hold Start and Wake/Sleep Button)before connecting again
    5. Repeat the Steps 1 and 2 after restoring the iPhone
    I am still getting the same error and now I can't even open the first page for iPhone in iTunes when I connect it to my computer. All my content is still in iTunes but everything is lost on the iPhone.
    I searched the Apple support and they talk about problem with the Symantec Endpoint. I have the latest version of Symantec endpoint way above what is mentioned on the Apple support page.
    Can someone please help me, it seems restore worked for most of the people facing this issue, but for me even restore is not working.
    With Regards,
    Ankur

    I got a present of an itouch. This is my first time back to apple after 5 years. I cant get my itouch to sync due to dataclass error on Windows XP pro. I have installed the latest version of itunes 9.2.1.
    WHAT IS THE POINT IN OWNING A DEVICE FOR PLAYING MUSIC WHEN YOU CANT LOAD THE MUSIC !!!!!
    Does anyone have a solution or alternatively (shock horror) Apple could actually get its AR*E in gear and fix the problem. I would also suggest that Apple would post a friggen solution on its website, but no that may be too much to ask.
    very frustrated. any help gratefully received otherwise the touch gets thrown out.
    thanks

  • ITunes was unable to load dataclass information from Sync Services-Solution

    Hello all. I recently upgraded to iTunes 9.1.1.12 on a laptop with Windows XP Pro and the latest iPhone OS (as of May 16,2010). Right after that, I started getting the "iTunes was unable to load dataclass information from Sync Services" error message. After I dismissed that window, it would go ahead and indicate that it was synching for a minute or two, and then indicate (in iTunes) that it was backing up the iPhone. This will run forever unless cancelled and the phone would not synch.
    After reading various solutions that worked for others (install Mobile Me, reinstall itunes, run diagnostics, all with numerous reboots in between), this is what worked for me:
    1) Open up Windows Services, and stop the Apple Mobile Device and iPod Service, and mark them as manual (as opposed to Automatic).
    2) Deinstall iTunes
    3) Delete the c:\program files\common files\apple folder (and all sub folders within). This is where the services are stored, and when I did all of these steps without doing this step, it didn't fix my problem. By deleting this folder, you insure that the iTunes install reinstalls these. You should see the services that were stopped in step 1, running again after the install is done. Note: I don't use Safari or QuickTime on my laptop, so I can't say whether or not this step would have any impact on those apps.
    4) Reinstall iTunes.
    5) Connect the iphone to your computer.
    6) At this point, I still got the dataclass error, so I immediately cancelled the synch.
    7) Run the diagnostics for the iphone (connectivity and synch).
    8) At this point, two DOS windows launched, and I did get another error about being able connect to the synch server.
    9) Closed the error message and disconnected the iphone (the phone at this point did not indicate that a synch was occurring).
    10) Reconnected the iphone and, voila, it's been working fine ever since.
    Hope this helps someone else out until Apple deals with the 9.1.1.12 (and .11) issues with synching.

    Either do Windows Control Panel → Administrative Tools and then picking "Services" or typing "Services.msc" in the Run command on Start menu.

  • ITunes 10.5.3, Unable to Load Class Data from Sync Services, Crashes Repeatedly

    Ever since iTunes 10.5.3 on my Windows 7 x64 box, I've been having serious problems keeping iTunes running:
    1)  Any time I connect my iPhone or iPad, or any time they attempt to sync over WiFi, I get the 'Unable to load class data from sync services' error.  It's worth mention that the iPhone or iPad do actually then proceed to sync correctly, and all media / data is synchronized successfully, as far as I've been able to tell.  I've reset sync history, restored the iPhone and iPad, manually moved the SyncServices directory, set both the iPhone and iPad up as new, completely uninstalled iTunes and the mobile device software, re-installed, and *nothing* I do fixes this issue or even seems to impact it.  Uninstalling iTunes 10.5.3 and reinstalling iTunes 10.5.2 resolves this error.
    2)  iTunes 10.5.3 has serious crashing problems on my machine, though I've searched through forums and found a lot of other people with the problem.  In my case, sporadically as iTunes access the iTunes store (for example, I can always make it happen by subscribing to the Diggnation podcast and telling it to refresh the podcast), I get a full application crash which generates the following event in the event log:
    Faulting application name: iTunes.exe, version: 10.5.3.3, time stamp: 0x4f14cc3d
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
    Exception code: 0x80000003
    Fault offset: 0x0001280c
    Faulting process id: 0x564
    Faulting application start time: 0x01cce78789dc009a
    Faulting application path: D:\Program Files (x86)\iTunes\iTunes.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: ecc77400-537a-11e1-b809-00248c196007
    Again, uninstalling iTunes 10.5.3 and re-installing iTunes 10.5.2 fixes this issue as well, but I really shouldn't have to do that.  Is there any actual solution to these problems other than dowgrading to an older version?
    Yes, I'm running current malware protection (and my system is clean) and yes, I've already checked any other obvious culprits to make sure I don't just have a corrupt library or file somewhere that's causing it.  My Windows 7 install is completely up to date from a Windows Update perspective and also from a driver perspective (even including the motherboard and chipset drivers).  I made sure to do a system file integrity check (sfc /scannow) and it confirmed my install of Windows isn't suspect, but beyond all that I was able to reproduce these failures on a completely separate machine running Windows 7 x64, without any of my media library or data on it -- iTunes 10.5.3 just seems to be bad news on Windows 7 x64 for me, even though I know there are definitely people are using it successfully.  I don't get any other application crashes for any other applications, and I've never had an issue like this with any previous version of iTunes...
    Last but not least, in case it matters, I'm running iOS 5.0.1 on both the iPhone4 and the iPad2.  The iPhone4 is the GSM AT&T model and the iPad2 is the CDMA Verizon model.

    OK, I've given up.  Uninstalled iTunes 10.5.3 permanently.  It's a shame, 10.5.2 works perfectly but 10.5.3 is a complete and total cluster for me.
    Anyone with the same problems who hasn't done this already, just uninstall iTunes and the Apple Mobile Device Service in your Add/Remove Programs, then re-install iTunes 10.5.2.  You won't lose your library or any settings or apps, it will just go back to working again.
    I wish Apple would acknowledge this so that I'd at least know it would be fixed in the future.

  • "Unable to load dataclass information from Sync Services"  Any ideas?

    I upgraded to iTunes 7.7 last night and now I get an annoying constant stream of errors that read "AppleMobileDeviceHelper has stopped working". Multiple reinstalls have not stopped it.
    Against my better judgement, I upgraded my phone to 2.0. Found out that I lost everything on my phone. It is activated and will work but I cannot sync it with iTunes. All I get is a message stating, "iTunes was unable to load dataclass information from Sync Services. Reconnect or try again later."
    iTunes won't recognize my phone. I can move songs and stuff to it by drop and drag but if I click the "iPhone" in iTunes, nothing happens. I put my phone in recovery mode. iTunes linked to it and reinstalled 2.0 but I still get the same problem.
    I'm real frustrated and Apple has not posted anything about this problem.
    Does anyone have any ideas on what is the going on? Is my phone nerfed?

    Try disabling your firewall, virus SW, and if it still won't sync, I would try disabling the communications services one by one until it clears. When I'm troubleshooting this sort of problem, I first look into the system reports (MY Computer, (right-click) manage, event viewer, Windows Logs, and look into each of the sub log sections for the error. This will often point you in the right direction. If this fails, I do a clean boot with all extraneous run-times and services disabled. usually the problem will be solved. I then start turning on the various run-time routines and services until I find the culprit.
    My attitude about this is that I won't waste my time chasing problems like this unless they are critical. Paying $$$ for a 3G iPhone and then having to troubleshoot the SW is not my cup of tea. I only pursued this because my wife and both kids got 3G's but I have them running both XP and Vista. One Vista machine synced OK, but mine would not. Intellectual curiosity led to find out why.
    Lysimakus

Maybe you are looking for