Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Mac OS X's Preferences System (and More!)
Subject:   Missing Retain
Date:   2001-08-25 11:54:48
From:   johnts
I entered the changes (without the preferences part), and when I ran it when i clicked Add, all I got was the spinning CD of death. I killed it and noticed that the final awakeFromNib: method on the first page didn't have the [recordsFile retain]. I added it and it works now.


The strange part is, I can't find the saved file! I look in my ~/Library/Preferences folder, but it's not there! When I re-run, the values are loaded, just have to find out from where!

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • Michael Beam photo Missing Retain
    2001-08-25 15:44:56  Michael Beam | O'Reilly Author [View]

    Thanks for catching that one! It'll get fixed on Monday too. That's weird that you don't see the file. Did you download the project i posted with the article and see if you could find the file it produces? BTW, are we talking about the file from the first part of the article,or the file created by NSUSerDefaults?

    Mike
    • Missing Retain
      2001-08-25 22:04:35  johnts [View]

      I don't know what happened, but the file (the one in ~/Library/Preferences) just appeared. It's there now, but I don't know why it took a little while for it to appear. I even went into the Terminal and looked for it, just in case the Finder was just not updating.
      • Michael Beam photo Missing Retain
        2001-08-26 01:25:32  Michael Beam | O'Reilly Author [View]

        Huh. That's bizarre. Glad things are working for you now...

        Mike
        • Derrick Story photo Missing Retain -- Original Code Correct; Published Code Mangled in Production
          2001-08-27 11:11:25  Derrick Story | O'Reilly AuthorO'Reilly Blogger [View]

          I just went through Mike's original document and compared it to what's published. Mike's original code was correct, and we managed to mangle it during our production process. We'll have it fixed up again by Monday aft. Everything should run smoothly after that. We'll also take a peek at what happened. Sorry about that folks!
          • Derrick Story photo Missing Retain -- All Clean
            2001-08-27 14:16:29  Derrick Story | O'Reilly AuthorO'Reilly Blogger [View]

            OK, I think I have everything nice and tidy.