Re: Mysterious NULL Coming From NSUserDefaults

2008-07-07 Thread Alex Wait
I knew that naming my variables like that was a bad idea. :) Thanks! I changed the names and updated what needed to be updated because of the name changes and it works now! w00t! Thanks again! Alex On Sun, Jul 6, 2008 at 10:52 PM, Boaz Stuller [EMAIL PROTECTED] wrote: Well, I see a couple

Mysterious NULL Coming From NSUserDefaults

2008-07-06 Thread Alex Wait
I've been enjoying NSUserDefaults when going through the Hillegeass book. I've decided to do a small app that has two colors it stores. I get these colors from a colorwell via Preference Pane. I have bounded the values of the wells to backGroundWell and lineWell in IB. I have the appropriately

Re: Mysterious NULL Coming From NSUserDefaults

2008-07-06 Thread Alex Wait
Indeed. Both the setters and getters are being called. I looked in the plist file for my app and I see BgColor and LineColor as values with a bunch of digits/hex for its value. On Sun, Jul 6, 2008 at 10:13 PM, Thomas Mueller [EMAIL PROTECTED] wrote: Hi, Are the setters actually being called?

Re: Mysterious NULL Coming From NSUserDefaults

2008-07-06 Thread Alex Wait
Sorry. forgot something. I should add this: I tried reading NSColorPanel from the file (it's a NSString) and I WAS able to read that just fine. I think it has something to do with NSKeyedArchive/NSKeyedUnarchiver On Sun, Jul 6, 2008 at 10:40 PM, Alex Wait [EMAIL PROTECTED] wrote: Indeed. Both

Re: Mysterious NULL Coming From NSUserDefaults

2008-07-06 Thread Boaz Stuller
Well, I see a couple problems here 1) Even though you're getting directly passed a color in your setters, you're ignoring that and trying to find out the color from the wells. That's bad form for many reasons, and if those backGroundWell and lineWell variables weren't hooked up correctly, that